diff options
| author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-13 16:39:40 +0000 |
|---|---|---|
| committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-13 16:39:40 +0000 |
| commit | 771851372f067ed139e3cc4e815a29fb9c87627a (patch) | |
| tree | a684de39b6c57c73302316f310ad80c935e8c959 | |
| parent | b84f12bfec9a1ff0978a8f2ca42653430db28b82 (diff) | |
| download | lasso-771851372f067ed139e3cc4e815a29fb9c87627a.tar.gz lasso-771851372f067ed139e3cc4e815a29fb9c87627a.tar.xz lasso-771851372f067ed139e3cc4e815a29fb9c87627a.zip | |
lasso_saml_assertion_set_signature() method rewritten
| -rw-r--r-- | lasso/xml/saml_assertion.c | 10 | ||||
| -rw-r--r-- | lasso/xml/saml_assertion.h | 4 |
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 } |
