[xmlsec] RE: Need urgent help for verify
Aleksey Sanin
aleksey at aleksey.com
Wed May 31 08:23:21 PDT 2006
No. Please, provide the stack trace for the crash.
Aleksey
Jürgen Heiss wrote:
> 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)
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec
More information about the xmlsec
mailing list