[xmlsec] Re: get errors messages into a a file

Aleksey Sanin aleksey at aleksey.com
Mon Sep 25 09:14:06 PDT 2006


You probably want to use a custom errors callback

http://www.aleksey.com/xmlsec/api/xmlsec-errors.html#XMLSECERRORSSETCALLBACK

Aleksey

pierre le mouellic wrote:
> Hi,
> 
> I use your library XML Security in order to sign a file. My problem is : 
> how can I get errors messages into a const char* variable ? This is in 
> order to put your messages into a log file.
> 
> I'm not talking about messages like :
> fprintf(stderr, "Error: wrong number of arguments.\n"); 
> that we can find into your examples, but messages like : 
> func=xmlSecOpenSSLAppKeyLoadBIO:file=app.c:line=243:obj=unknown:subj=PEM_read_bio_PrivateKey 
> and PEM_read_bio_PUBKEY:error=4:crypto library function failed:
> 
> Thanks for your great job
> 
> Pierre Le Mouëllic
> Paris, France
> 


More information about the xmlsec mailing list