Re: [xmlsec] "soft error" when calling xmlSecDSigValidate

2003-02-06 Thread Meg Morgan
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

Re: [xmlsec] "soft error" when calling xmlSecDSigValidate

2003-02-06 Thread Aleksey Sanin
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 retur

[xmlsec] "soft error" when calling xmlSecDSigValidate

2003-02-06 Thread Meg Morgan
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,

[Fwd: [xmlsec] Question about loading external DTD]

2003-02-06 Thread Meg Morgan
Oops, forgot the list again ... --- Begin Message --- That was the magic key I needed - setting xmlDoValidityCheckingDefaultValue to 0 worked. Although I'm not sure where it had been set to 1 - I'll try to track that down. I see it initialized to 0 in the xml code. Hmmm. Thank you! On anot

Re: [xmlsec] Question about loading external DTD

2003-02-06 Thread Aleksey Sanin
The document is validated during parsing only if you ask libxml to do so by setting parsing context "validate" member to 1 or by setting global variable "xmlDoValidityCheckingDefaultValue" to 1. Can you check the value of this variable before the call to xmlParseMemory? I would also suggest to step

Re: [xmlsec] Question about loading external DTD

2003-02-06 Thread Meg Morgan
The error is during xmlParseMemory: Entity: line 2: validity error: Validation failed: no DTD found ! http://www.w3.org/2001/04/xmlenc#";> ^ I have attached the encrypted data and the dtd. I appreciate your help. meg Aleksey Sanin wrote:

Re: [xmlsec] Question about loading external DTD

2003-02-06 Thread Aleksey Sanin
I am not sure I clear understand your question. At which point you get "validity errors"? During "xmlParseMemory" call? During "xmlParseDTD"? It's very difficult to help you w/o having the file and DTD. I would suggest to print out the file from memory just before "xmlParseMemory" call and look at

Re: [xmlsec] Question about loading external DTD

2003-02-06 Thread Meg Morgan
I'll try to phrase my question better today: I am not using the command line utility, I am generating encrypted data in memory and then attempting to decrypt it. It does decrypt fine, but I get the annoying "validity error" message in my output. I get this message before I get a chance to tell i