Use either xmlSecDSigCtxCreate/xmlSecDSigCtxDestroy or xmlSecDSigCtxInitialize/xmlSecDSigCtxFinalize depending on whether you create it on the heap or on the stack.
Aleksey On 12/5/17 4:15 AM, Ranier VF wrote: > Hi, > I'm around one problem with sign xml with function: xmlSecDSigCtxSign > func=xmlSecDSigCtxSign:file=..\src\xmldsig.c:line=274:obj=unknown:subj=dsigCtx-> > result == NULL:error=100:assertion: > > On first sign, all is ok, the xml is correctly signed. > On second sign, the error is raised. > > Question: whats is the correct way to reset dsigCtx, without destroing it? > In case, I'm reusing struct dsigCtx. > > Thank you. > > Best regards, > > Ranier Vilela > _______________________________________________ > xmlsec mailing list > [email protected] > http://www.aleksey.com/mailman/listinfo/xmlsec > _______________________________________________ xmlsec mailing list [email protected] http://www.aleksey.com/mailman/listinfo/xmlsec
