[xmlsec] Error in xmlSecCryptoAppInit()
Aleksey Sanin
aleksey at aleksey.com
Thu Nov 1 07:13:10 PST 2007
Sounds like you don't have openssl libraries in the LD_LIBRARY_PATH.
Aleksey
Sam Lee wrote:
> Hi all,
>
> I got a problem in executing the xmlsec library with openssl under
> Centos 5.
>
> [root at saml examples]# gcc -g -D__XMLSEC_FUNCTION__=__FUNCTION__
> -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -I/usr/local/include/xmlsec1
> -I/usr/local/include/libxml2 -I/usr/local/include
> -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_CRYPTO=\"openssl\"
> -DUNIX_SOCKETS -g -L/usr/local/lib -ldl -lxmlsec1 -lxslt -lxml2 -lz
> -lm sign1.c -o sign1
>
> [root at saml examples]# ./sign1 sign1-tmpl.xml rsakey.pem
> XMLSEC_CRYPTO_DYNAMIC_LOADING = 1
> XMLSEC_CRYPTO = openssl
> xmlSecCryptoDLGetLibraryFunctions returns 0
> func=xmlSecOpenSSLAppDefaultKeysMngrAdoptKey:file=app.c:line=1255:obj=unknown:subj=mngr
> != NULL:error=100:assertion:
> Error: crypto initialization failed.
>
> I traced and found that the error came from the function
> xmlSecCryptoAppInit().
> Do I miss something in configuration?
>
>
> ------------------------------------------------------------------------
> ¹ïYahoo! Mail ¦³¥ô¦ó·N¨£©Î«Øij¡A½Ð *Ápµ¸§ÚÌ*
> <http://help.yahoo.com/fast/help/hkc/mail/cgi_feedback>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
More information about the xmlsec
mailing list