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