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

Maxim Kozlov yossarian22 at yandex.ru
Sun Apr 29 07:39:06 PDT 2007


Greetings!
With xmlsec command line utility all works, but in compiled application..

I get the following error log:
...\Visual Studio 2005\Projects\Sign1cpp\debug>sign1cpp.exe sign1-mpl.xml rsakey.pem
func=:file=..\src\xmldsig.c:line=465:obj=unknown:subj=dsigCtx->c14nMethod == NULL:error=100:assertion:
func=:file=..\src\xmldsig.c:line=303:obj=unknown:subj=xmlSecDSigCtxSigantureProcessNode:error=1:xmlsec library function failed:
Error: signature failed

Or:
...\Visual Studio 2005\Projects\Enc1\debug>Enc2.exe encrypt2-doc.xml deskey.bin
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 think, the solution is same for all apps, and it is easy, but...(
Please, help me
-- 

Best regards,
Maxim. 



More information about the xmlsec mailing list