Try this patch (you need to tell xmlsec which key it should write):

[EMAIL PROTECTED] test]$ diff -u test.c.orig  test.c
--- test.c.orig 2005-11-08 18:39:50.000000000 -0800
+++ test.c      2005-11-08 18:59:49.000000000 -0800
@@ -56,7 +56,8 @@
     ctx = xmlSecKeyInfoCtxCreate(NULL);
     xmlSecKeyInfoCtxInitialize(ctx, NULL);
     ctx->mode = xmlSecKeyInfoModeWrite;
-
+    ctx->keyReq.keyType = xmlSecKeyDataTypePublic;
+
     handler = xmlFindCharEncodingHandler("utf-8");
     buf = xmlAllocOutputBuffer(handler);


Best,
Aleksey

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to