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




_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to