[xmlsec] Problem with dsig2.c

Aleksey Sanin aleksey at aleksey.com
Fri Dec 13 11:04:12 PST 2002


It's ok to do not specify key in the xmlSecDSigGenerate().
In this key xmlsec library tries to load key from keys manager
(and you suppose to have it there). If the key is not found
xmlsec library should  quickly return an error but defenetly
not hang!

Aleksey

Meg Morgan wrote:

>I think I have helped another person solve this very problem.
>Notice in your stack trace #15 that key is NULL.  In the dsig2
>example, there is no key specified in the call to xmlSecDSigGenerate().
>
>If you do this:
>
>key = xmlSecSimpleKeysMngrLoadPemKey(keysMngr, argv[1],
>            NULL, NULL, 1);
>
>.
>.
>.
>then this:
>
>ret = xmlSecDSigGenerate(dsigCtx, NULL, key, signatureNode, &sigResult);  // NOTE: "key"
>
>I think it will work.  It works for me, although I wrote C++ code and did
>not compile/run the example.
>
>Good luck,
>meg
>
>
>
>  
>




More information about the xmlsec mailing list