summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-02-04 01:23:43 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-02-04 01:23:43 +0000
commit2a3ada925ca754dda62e10917fab30e1d9106226 (patch)
treeea76e1dee5e6b24421c099060c51ad8073b1df79
parent36c7b41fbd2381eb531290207512e6dede2d8dd9 (diff)
downloadlasso-2a3ada925ca754dda62e10917fab30e1d9106226.tar.gz
lasso-2a3ada925ca754dda62e10917fab30e1d9106226.tar.xz
lasso-2a3ada925ca754dda62e10917fab30e1d9106226.zip
Core: in lasso_xmlsec_load_key_info add flag to let xmlSec load certificates
* lasso/xml/tools.c: adding the flag XMLSEC_KEYINFO_FLAGS_X509DATA_DONT_VERIFY_CERTS make xmlSec able to load certificate, the 'hand made' code to load certificate is then useless.
-rw-r--r--lasso/xml/tools.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c
index 40ea15f1..85430d36 100644
--- a/lasso/xml/tools.c
+++ b/lasso/xml/tools.c
@@ -1828,6 +1828,7 @@ lasso_xmlsec_load_key_info(xmlNode *key_descriptor)
return NULL;
ctx = xmlSecKeyInfoCtxCreate(NULL);
+ ctx->flags |= XMLSEC_KEYINFO_FLAGS_X509DATA_DONT_VERIFY_CERTS;
key = xmlSecKeyCreate();
/* anyway to make this reentrant and thread safe ? */
xmlSecErrorsDefaultCallbackEnableOutput(FALSE);