[xmlsec] solve unload openssl problems

Aleksey Sanin aleksey at aleksey.com
Thu Jul 26 10:19:29 PDT 2018


Make sure that the xmlsec1-openssl library and other dependencies
can be found.

Aleksey

On 7/25/18 7:29 PM, J Gsealy wrote:
> Hi all:
> 
>        I want to add new algorithm to xmlsec (EC algorithm with new
> curve, and new digest algorithm),
> 
> the openssl have modified yet, and use normally.But when I add algorithm
> to xmlsec, and add new
> 
> element <ECKeyValue> and <PublicKey>. I have modified include file
> <app.h>, <private.h>, <string.h>,
> 
> <openssl/crypto.h>, <openssl/symbols.h>. And C file app.c, dl.c,
> string.c, openssl/crypto.c, openssl/signature.c .
> 
> Compile can pass, but can’t load “xmlsec1-openssl”.
> 
> There are error info:
> 
> ------------------------------------------------------------------------
> 
> loading "library openssl"...
> 
> name:openssl, filename:libxmlsec1-openssl,
> function:xmlSecCryptoGetFunctions_openssl....
> 
> func=xmlSecCryptoDLLibraryCreate:file=dl.c:line=138:obj=unknown:subj=lt_dlopenext:error=7:io
> function failed:name="libxmlsec1-openssl"; errno=2
> 
> func=xmlSecCryptoDLGetLibraryFunctions:file=dl.c:line=444:obj=unknown:subj=xmlSecCryptoDLLibraryCreate:error=1:xmlsec
> library function failed:crypto=openssl
> 
> func=xmlSecCryptoDLLoadLibrary:file=dl.c:line=401:obj=unknown:subj=xmlSecCryptoDLGetLibraryFunctions:error=1:xmlsec
> library function failed:
> 
> Error: unable to load xmlsec-openssl library. Make sure that you have
> 
> this it installed, check shared libraries path (LD_LIBRARY_PATH)
> 
> envornment variable or use "--crypto" option to specify different
> 
> crypto engine.
> 
> Error: initialization failed
> 
> func=xmlSecCryptoShutdown:file=app.c:line=71:obj=unknown:subj=unknown:error=9:feature
> is not implemented:details=cryptoShutdown
> 
> Error: xmlSecCryptoShutdown failed
> 
> Error: xmlsec crypto shutdown failed.
> 
> ------------------------------------------------------------------------
> 
> Which area should I change?
> 
>  
> 
> Thanks.
> 
>  
> 
> Gsealy
> 
> 
> 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
> 


More information about the xmlsec mailing list