[xmlsec] Empty KeyValue element after a
call to xmlSecKeyInfoNodeWrite()
aleksey at aleksey.com
aleksey at aleksey.com
Tue Nov 8 19:01:04 PST 2005
Try this patch (you need to tell xmlsec which key it should write):
[aleksey at pc 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
More information about the xmlsec
mailing list