[xmlsec] Using xmlsec-examples (Win32 applications, based on sign1..c, sign2.c and encrypt1.c etc)

Aleksey Sanin aleksey at aleksey.com
Wed May 2 07:28:40 PDT 2007


Actually... Could you please dump the template right before
encryption? I.e. add "xmlDocDump(stdout, doc);" call around
line 290 (before xmlSecEncCtxXmlEncrypt call)?

Aleksey



Maxim Kozlov wrote:
> I check: key name in both places are the same. 
> But when i am calling function 
> 
>  /* encrypt the data */
> xmlSecEncCtxXmlEncrypt(encCtx, encDataNode, xmlDocGetRootElement(doc))
> 
> i get folloing errors(same with post on http://www.aleksey.com/pipermail/xmlsec/2007/003783.html):
> ...\Visual Studio 2005\Projects\Enc1\debug>Enc3.exe encrypt3-doc.xml rsakey.pem
> func=:file=..\src\transforms.c:line=1072:obj=unknown:subj=dataSize > 0:error=100:assertion:
> func=:file=..\src\xmlenc.c:line=669:obj=unknown:subj=xmlSecTransformCtxBinaryExecute:error=1:xmlsec library function failed:
> func=:file=..\src\keys.c:line=1364:obj=unknown:subj=xmlSecKeysMngrFindKey:error=1:xmlsec library function failed:
> func=:file=..\src\xmlenc.c:line=885:obj=unknown:subj=unknown:error=45:key is not found:
> func=:file=..\src\xmlenc.c:line=375:obj=unknown:subj=xmlSecEncCtxEncDataNodeRead:error=1:xmlsec library function failed:
> Error: encryption failed
> 
> I made screenshot of debug window in this breakepoint(before this function call)- http://nevlabs.ru/sanch/ne_trogat/debug1.jpg
> 
> - 
> 
> Best regards,
> Maxim. 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec



More information about the xmlsec mailing list