[xmlsec] "soft error" when calling xmlSecDSigValidate

Aleksey Sanin aleksey at aleksey.com
Thu Feb 6 15:34:41 PST 2003

Please check section 3.1 of the FAQ:
The xmlSecDSigVerify returns -1 if there is a critical error (i.e. 
something really
bad happens like wrong XML structure). "Signature is not valid" is a 
*valid* result of this operation. In this case, we return 0 to indicate 
that there is
no critical errors and in the same time, we don't verify the signature 
result is not "ok".


Meg Morgan wrote:

>I hit this error while checking a signature, but the return
>value is 0 so it doesn't really fail.  
>xmldsig.c: 1493
>if((!sign) && (ref->result != xmlSecTransformStatusOk)) {
>            xmlSecError(XMLSEC_ERRORS_HERE,
>                        " ");
>            /* "soft" error */
>            res = 0;
>            goto done;
>What does this really mean?
>Sorry to ask so many questions today ...

More information about the xmlsec mailing list