xmlsec1: Include xmlsec/parser.h for xmlSecParserSetDefaultOptions()

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2023-01-19 15:14:59 -08:00
parent 6826c98f6d
commit e4a2dfb8d9
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,43 @@
From 30e1afe60820c18c89cd10e9dcb7208ad5676d1d Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 19 Jan 2023 15:06:35 -0800
Subject: [PATCH] xmldsigverify: Include xmlsec/parser.h
this ensures that xmlSecParserSetDefaultOptions definition is made
available
Fixes
| xmldsigverify.c:275:5: error: call to undeclared function 'xmlSecParserSetDefaultOptions'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
| xmlSecParserSetDefaultOptions(XML_PARSE_NOENT | XML_PARSE_NOCDATA |
| ^
Upstream-Status: Submitted [https://github.com/lsh123/xmlsec/pull/463]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
examples/xmldsigverify.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/examples/xmldsigverify.c b/examples/xmldsigverify.c
index ed538c70..ff68120e 100644
--- a/examples/xmldsigverify.c
+++ b/examples/xmldsigverify.c
@@ -25,6 +25,7 @@
#include <xmlsec/xmldsig.h>
#include <xmlsec/crypto.h>
+#include <xmlsec/parser.h>
/* #define XMLDSIGVERIFY_DEFAULT_TRUSTED_CERTS_FOLDER "/etc/httpd/conf/ssl.crt" */
#define XMLDSIGVERIFY_DEFAULT_TRUSTED_CERTS_FOLDER "/var/www/cgi-bin/keys-certs.def"
#define XMLDSIGVERIFY_KEY_AND_CERTS_FOLDER "/var/www/cgi-bin/keys-certs"
@@ -36,7 +37,7 @@ int verify_request(xmlSecKeysMngrPtr mngr);
int url_decode(char *buf, size_t size);
int
-main(int , char **) {
+main() {
xmlSecKeysMngrPtr mngr;
#ifndef XMLSEC_NO_XSLT
xsltSecurityPrefsPtr xsltSecPrefs = NULL;
--
2.39.1

View File

@ -20,6 +20,7 @@ SRC_URI = "http://www.aleksey.com/xmlsec/download/${BP}.tar.gz \
file://0001-nss-nspr-fix-for-multilib.patch \
file://run-ptest \
file://ensure-search-path-non-host.patch \
file://0001-xmldsigverify-Include-xmlsec-parser.h.patch \
"
SRC_URI[sha256sum] = "5f8dfbcb6d1e56bddd0b5ec2e00a3d0ca5342a9f57c24dffde5c796b2be2871c"