From: José Bollo Date: Tue, 10 Nov 2015 14:39:04 +0000 (+0100) Subject: Improves initialisation of xmlsec library X-Git-Tag: 2.0.2~174 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=1edc2a74a818a61b2958e7f9796222b13114971c;p=src%2Fapp-framework-main.git Improves initialisation of xmlsec library Testing XMLSEC_CRYPTO_DYNAMIC_LOADING to call (or not) xmlSecCryptoDLLoadLibrary is mandatory, not optional. Signed-off-by: José Bollo --- diff --git a/wgtpkg-xmlsec.c b/wgtpkg-xmlsec.c index 5c65217..b2c2e50 100644 --- a/wgtpkg-xmlsec.c +++ b/wgtpkg-xmlsec.c @@ -132,6 +132,13 @@ int xmlsec_init() goto end; } +#ifdef XMLSEC_CRYPTO_DYNAMIC_LOADING + if(xmlSecCryptoDLLoadLibrary(XMLSEC_CRYPTO) < 0) { + syslog(LOG_ERR, "xmlSecCryptoDLLoadLibrary %s failed.", XMLSEC_CRYPTO); + goto end; + } +#endif + if(xmlSecCryptoAppInit(NULL) < 0) { syslog(LOG_ERR, "xmlSecCryptoAppInit failed."); goto end;