diff options
| -rw-r--r-- | meta-oe/recipes-support/xmlsec1/xmlsec1/0001-xmldsigverify-Include-xmlsec-parser.h.patch | 43 | ||||
| -rw-r--r-- | meta-oe/recipes-support/xmlsec1/xmlsec1_1.2.37.bb | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/xmlsec1/xmlsec1/0001-xmldsigverify-Include-xmlsec-parser.h.patch b/meta-oe/recipes-support/xmlsec1/xmlsec1/0001-xmldsigverify-Include-xmlsec-parser.h.patch new file mode 100644 index 0000000000..4347e925a3 --- /dev/null +++ b/meta-oe/recipes-support/xmlsec1/xmlsec1/0001-xmldsigverify-Include-xmlsec-parser.h.patch | |||
| @@ -0,0 +1,43 @@ | |||
| 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 | |||
diff --git a/meta-oe/recipes-support/xmlsec1/xmlsec1_1.2.37.bb b/meta-oe/recipes-support/xmlsec1/xmlsec1_1.2.37.bb index bd9c584dfd..a3da770943 100644 --- a/meta-oe/recipes-support/xmlsec1/xmlsec1_1.2.37.bb +++ b/meta-oe/recipes-support/xmlsec1/xmlsec1_1.2.37.bb | |||
| @@ -20,6 +20,7 @@ SRC_URI = "http://www.aleksey.com/xmlsec/download/${BP}.tar.gz \ | |||
| 20 | file://0001-nss-nspr-fix-for-multilib.patch \ | 20 | file://0001-nss-nspr-fix-for-multilib.patch \ |
| 21 | file://run-ptest \ | 21 | file://run-ptest \ |
| 22 | file://ensure-search-path-non-host.patch \ | 22 | file://ensure-search-path-non-host.patch \ |
| 23 | file://0001-xmldsigverify-Include-xmlsec-parser.h.patch \ | ||
| 23 | " | 24 | " |
| 24 | 25 | ||
| 25 | SRC_URI[sha256sum] = "5f8dfbcb6d1e56bddd0b5ec2e00a3d0ca5342a9f57c24dffde5c796b2be2871c" | 26 | SRC_URI[sha256sum] = "5f8dfbcb6d1e56bddd0b5ec2e00a3d0ca5342a9f57c24dffde5c796b2be2871c" |
