[xmlsec] "soft error" when calling xmlSecDSigValidate
Meg Morgan
meg at votehere.net
Thu Feb 6 15:38:55 PST 2003
Thank you - I will look at the faqs.
Aleksey Sanin wrote:
>
> Please check section 3.1 of the FAQ:
> http://www.aleksey.com/xmlsec/faq.html
> 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
> possible
> *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
> because
> result is not "ok".
>
> Aleksey
>
> 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,
> > XMLSEC_ERRORS_R_DSIG_INVALID_REFERENCE,
> > " ");
> > /* "soft" error */
> > res = 0;
> > goto done;
> >}
> >
> >
> >What does this really mean?
> >
> >Sorry to ask so many questions today ...
> >meg
> >
> >
> >
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Meg Morgan 425/450-2754
meg at votehere.net http://www.votehere.net
More information about the xmlsec
mailing list