From 44495eda366a8327a2f337114587440bfc7cd41a Mon Sep 17 00:00:00 2001 From: Jarvis Date: Thu, 22 Oct 2026 04:36:17 +0000 Subject: [PATCH] fix: build against libxml2 2.12 and later --- src/saml.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/saml.c b/src/saml.c index 501e2d4..dc69b20 100644 --- a/src/saml.c +++ b/src/saml.c @@ -41,7 +41,12 @@ const char* SAML_STATUS_VERSION_MISMATCH = "urn:oasis:names:tc:SAML:2.0:status:V static int DEBUG_ENABLED = 1; static void ingoreGenericError(void* ctx, const char* msg, ...) {}; +/* libxml2 2.12 made the error passed to xmlStructuredErrorFunc const */ +#if LIBXML_VERSION >= 21200 +static void ingoreStructuredError(void* userData, const xmlError* error) {}; +#else static void ingoreStructuredError(void* userData, xmlError* error) {}; +#endif static void saml_log(char* msg) {