[xmlsec] RE: Need urgent help for verify
Jürgen Heiss
jheiss at Mesonic.com
Wed May 31 08:00:10 PDT 2006
Does really now one have any idea?
Hi,
I use the following code to verify a signed file.
The problem is now, the xmlSecDSigCtxVerify crahses if the certificate isn't installed on my machine!?!
How can I check this file? Can I excract the certificate and load it into a xmlSecKeysMngrPtr?
thanks for any help.
<some code>
if(xmlSecDSigCtxInitialize(&dsigCtx, gKeysMngr) < 0)
return (V_INTERNAL);
if(xmlSecAppPrepareDSigCtx(&dsigCtx) < 0)
{
xmlSecDSigCtxFinalize(&dsigCtx);
return V_INTERNAL;
}
/* parse template and select start node */
data = xmlSecAppXmlDataCreate(filename, xmlSecNodeSignature, xmlSecDSigNs);
if(data == NULL)
{
xmlSecDSigCtxFinalize(&dsigCtx);
if(data != NULL)
xmlSecAppXmlDataDestroy(data);
return V_INTERNAL;
}
/* sign */
start_time = clock();
if(xmlSecDSigCtxVerify(&dsigCtx, data->startNode) < 0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.aleksey.com/pipermail/xmlsec/attachments/20060531/7eb32080/attachment-0002.htm
More information about the xmlsec
mailing list