summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-05-13 16:39:40 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-05-13 16:39:40 +0000
commit771851372f067ed139e3cc4e815a29fb9c87627a (patch)
treea684de39b6c57c73302316f310ad80c935e8c959
parentb84f12bfec9a1ff0978a8f2ca42653430db28b82 (diff)
downloadlasso-771851372f067ed139e3cc4e815a29fb9c87627a.tar.gz
lasso-771851372f067ed139e3cc4e815a29fb9c87627a.tar.xz
lasso-771851372f067ed139e3cc4e815a29fb9c87627a.zip
lasso_saml_assertion_set_signature() method rewritten
-rw-r--r--lasso/xml/saml_assertion.c10
-rw-r--r--lasso/xml/saml_assertion.h4
2 files changed, 10 insertions, 4 deletions
diff --git a/lasso/xml/saml_assertion.c b/lasso/xml/saml_assertion.c
index 1dc92a2b..7d626b20 100644
--- a/lasso/xml/saml_assertion.c
+++ b/lasso/xml/saml_assertion.c
@@ -245,13 +245,17 @@ lasso_saml_assertion_set_minorVersion(LassoSamlAssertion *node,
void
lasso_saml_assertion_set_signature(LassoSamlAssertion *node,
- LassoDsSignature *signature)
+ gint sign_method,
+ const xmlChar *private_key_file,
+ const xmlChar *certificate_file)
{
g_assert(LASSO_IS_SAML_ASSERTION(node));
- g_assert(LASSO_IS_DS_SIGNATURE(signature));
+ g_assert(private_key_file != NULL);
+ g_assert(certificate_file != NULL);
LassoNodeClass *class = LASSO_NODE_GET_CLASS(node);
- class->add_child(LASSO_NODE (node), LASSO_NODE(signature), FALSE);
+ class->add_signature(LASSO_NODE (node), sign_method,
+ private_key_file, certificate_file);
}
/*****************************************************************************/
diff --git a/lasso/xml/saml_assertion.h b/lasso/xml/saml_assertion.h
index 131482d3..a609885d 100644
--- a/lasso/xml/saml_assertion.h
+++ b/lasso/xml/saml_assertion.h
@@ -90,7 +90,9 @@ LASSO_EXPORT void lasso_saml_assertion_set_minorVersion (LassoSamlAss
const xmlChar *minorVersion);
LASSO_EXPORT void lasso_saml_assertion_set_signature (LassoSamlAssertion *node,
- LassoDsSignature *signature);
+ gint sign_method,
+ const xmlChar *private_key_file,
+ const xmlChar *certificate_file);
#ifdef __cplusplus
}