summaryrefslogtreecommitdiff
path: root/security/libpki/files/patch-src_pki__config.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/libpki/files/patch-src_pki__config.c')
-rw-r--r--security/libpki/files/patch-src_pki__config.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/security/libpki/files/patch-src_pki__config.c b/security/libpki/files/patch-src_pki__config.c
new file mode 100644
index 000000000000..776340729adf
--- /dev/null
+++ b/security/libpki/files/patch-src_pki__config.c
@@ -0,0 +1,22 @@
+--- src/pki_config.c.orig 2024-08-12 07:36:06.493686000 +0200
++++ src/pki_config.c 2024-08-12 07:40:19.265530000 +0200
+@@ -17,6 +17,7 @@
+
+ #define PKI_DEF_CONF_DIRS_SIZE 2
+ #define LIBXML_MIN_VERSION 20600
++#define LIBXML_212_VERSION 21200
+
+ #if LIBXML_VERSION < LIBXML_MIN_VERSION
+ #define xmlErrorPtr void *
+@@ -30,7 +31,11 @@
+ #endif
+ */
+
++#if LIBXML_VERSION >= LIBXML_212_VERSION
++void logXmlMessages( void *userData, const xmlError *error ) {
++#else
+ void logXmlMessages( void *userData, xmlErrorPtr error ) {
++#endif
+ #if LIBXML_VERSION >= LIBXML_MIN_VERSION
+ PKI_log_err( "XML I/O Error: %s", error->message);
+ #else