summaryrefslogtreecommitdiffstats
path: root/lasso/xml/samlp_response_abstract.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-11-03 14:20:50 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-11-03 14:20:50 +0000
commita28349c9c74790bb45a602efd712eb14907c925a (patch)
tree43a810d4e415d55b7bae7c1400a9ba6ac3163898 /lasso/xml/samlp_response_abstract.c
parent16d3d7e4ede6bfb7f0bdfef0d3667f9aed3438a6 (diff)
downloadlasso-a28349c9c74790bb45a602efd712eb14907c925a.tar.gz
lasso-a28349c9c74790bb45a602efd712eb14907c925a.tar.xz
lasso-a28349c9c74790bb45a602efd712eb14907c925a.zip
Fixed 2 bugs in lasso_node_add_signature_tmpl()
* the transform method "exclusive C14N" was missing in Transforms element * removed useless KeyInfo element in Signatures without X509 data [from lasso-orig revision 1.95]
Diffstat (limited to 'lasso/xml/samlp_response_abstract.c')
-rw-r--r--lasso/xml/samlp_response_abstract.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lasso/xml/samlp_response_abstract.c b/lasso/xml/samlp_response_abstract.c
index 25f2e171..c921e167 100644
--- a/lasso/xml/samlp_response_abstract.c
+++ b/lasso/xml/samlp_response_abstract.c
@@ -117,9 +117,12 @@ get_xmlNode(LassoNode *node)
/* add enveloped transform */
xmlSecTmplReferenceAddTransform(reference, xmlSecTransformEnvelopedId);
+ /* add exclusive C14N transform */
+ xmlSecTmplReferenceAddTransform(reference, xmlSecTransformExclC14NId);
+
/* add <dsig:KeyInfo/> */
- key_info = xmlSecTmplSignatureEnsureKeyInfo(signature, NULL);
if (response->sign_type == LASSO_SIGNATURE_TYPE_WITHX509) {
+ key_info = xmlSecTmplSignatureEnsureKeyInfo(signature, NULL);
xmlSecTmplKeyInfoAddX509Data(key_info);
}
}