diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2005-11-20 17:56:55 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2005-11-20 17:56:55 +0000 |
| commit | 8ec430af7cd9a0fc4f5f91cdb7adb5249f464654 (patch) | |
| tree | cdc79746090a4bc56cb210987e37326175bfd08e | |
| parent | ebb9f7dffc22196e6c1cb18b218fc411b4d190c2 (diff) | |
| download | lasso-8ec430af7cd9a0fc4f5f91cdb7adb5249f464654.tar.gz lasso-8ec430af7cd9a0fc4f5f91cdb7adb5249f464654.tar.xz lasso-8ec430af7cd9a0fc4f5f91cdb7adb5249f464654.zip | |
removing xmlsec debug code
| -rw-r--r-- | lasso/id-ff/provider.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/lasso/id-ff/provider.c b/lasso/id-ff/provider.c index 9160460f..650e87ed 100644 --- a/lasso/id-ff/provider.c +++ b/lasso/id-ff/provider.c @@ -718,46 +718,6 @@ lasso_provider_new(LassoProviderRole role, const char *metadata, lasso_node_destroy(LASSO_NODE(provider)); return NULL; } -/* - xmlSecKeyDataIdListDebugDump(xmlSecKeyDataIdsGet(), stdout); - */ - fprintf(stderr, "key: %p\n", LASSO_PROVIDER(provider)->private_data->public_key); - fprintf(stderr, "key: %p\n", LASSO_PROVIDER(provider)->private_data->public_key->value); - xmlSecKeyDataDebugXmlDump( - LASSO_PROVIDER(provider)->private_data->public_key->value, - stdout); - - /* - xmlSecKeyDataDebugXmlDump( - xmlSecKeyGetData(LASSO_PROVIDER(provider)->private_data->public_key, - xmlSecKeyDataValueGetKlass()), - stdout); - */ - { - xmlNode *node, *ki_node; - xmlSecKeyInfoCtxPtr ctx; - xmlOutputBufferPtr buf; - xmlCharEncodingHandlerPtr handler = NULL; - xmlChar *buffer; - - ctx = xmlSecKeyInfoCtxCreate(NULL); - ctx->mode = xmlSecKeyInfoModeWrite; - xmlSecKeyDebugDump(provider->private_data->public_key, stdout); - xmlSecKeyInfoCtxDebugDump(ctx, stdout); - node = xmlNewNode(NULL, "Toto"); - ki_node = xmlSecAddChild(node, xmlSecNodeKeyInfo, xmlSecDSigNs); - xmlSecTmplKeyInfoAddKeyName(ki_node, NULL); - xmlSecTmplKeyInfoAddKeyValue(ki_node); - xmlSecKeyInfoNodeWrite(ki_node, provider->private_data->public_key, ctx); - - handler = xmlFindCharEncodingHandler("utf-8"); - buf = xmlAllocOutputBuffer(handler); - xmlNodeDumpOutput(buf, NULL, node, 0, 0, "utf-8"); - xmlOutputBufferFlush(buf); - buffer = buf->conv ? buf->conv->content : buf->buffer->content; - fprintf(stderr, "buffer: \n%s\n", buffer); - - } return provider; } |
