From 67dfa7e70c4f4b21caa758b3a6992257f001b238 Mon Sep 17 00:00:00 2001 From: Daniel Kita Date: Wed, 13 Sep 2023 12:35:51 +0200 Subject: [PATCH] Disable xmlNanoHTTP xmlNanoHTTP causes errors so it's disabled in scope of pqc. Change-Id: Ibba5e14afa0bce0751bed67aa969b12243695c72 --- src/io.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/io.c b/src/io.c index a6d593c..f5815d7 100644 --- a/src/io.c +++ b/src/io.c @@ -24,9 +24,9 @@ #include #include -#ifdef LIBXML_HTTP_ENABLED -#include -#endif /* LIBXML_HTTP_ENABLED */ +//#ifdef LIBXML_HTTP_ENABLED +//#include +//#endif /* LIBXML_HTTP_ENABLED */ #ifdef LIBXML_FTP_ENABLED #include @@ -165,9 +165,9 @@ xmlSecIOInit(void) { xmlNanoFTPInit(); #endif /* LIBXML_FTP_ENABLED */ -#ifdef LIBXML_HTTP_ENABLED - xmlNanoHTTPInit(); -#endif /* LIBXML_HTTP_ENABLED */ +//#ifdef LIBXML_HTTP_ENABLED +// xmlNanoHTTPInit(); +//#endif /* LIBXML_HTTP_ENABLED */ ret = xmlSecIORegisterDefaultCallbacks(); if(ret < 0) { @@ -187,9 +187,9 @@ xmlSecIOInit(void) { void xmlSecIOShutdown(void) { -#ifdef LIBXML_HTTP_ENABLED - xmlNanoHTTPCleanup(); -#endif /* LIBXML_HTTP_ENABLED */ +//#ifdef LIBXML_HTTP_ENABLED +// xmlNanoHTTPCleanup(); +//#endif /* LIBXML_HTTP_ENABLED */ #ifdef LIBXML_FTP_ENABLED xmlNanoFTPCleanup(); @@ -264,14 +264,14 @@ xmlSecIORegisterDefaultCallbacks(void) { return(-1); } -#ifdef LIBXML_HTTP_ENABLED - ret = xmlSecIORegisterCallbacks(xmlIOHTTPMatch, xmlIOHTTPOpen, - xmlIOHTTPRead, xmlIOHTTPClose); - if(ret < 0) { - xmlSecInternalError("xmlSecIORegisterCallbacks(http)", NULL); - return(-1); - } -#endif /* LIBXML_HTTP_ENABLED */ +//#ifdef LIBXML_HTTP_ENABLED +// ret = xmlSecIORegisterCallbacks(xmlIOHTTPMatch, xmlIOHTTPOpen, +// xmlIOHTTPRead, xmlIOHTTPClose); +// if(ret < 0) { +// xmlSecInternalError("xmlSecIORegisterCallbacks(http)", NULL); +// return(-1); +// } +//#endif /* LIBXML_HTTP_ENABLED */ #ifdef LIBXML_FTP_ENABLED ret = xmlSecIORegisterCallbacks(xmlIOFTPMatch, xmlIOFTPOpen, -- 2.7.4