From 16d7f6b804f0235bec0f7ccdd376a814a85b4622 Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Thu, 13 May 2004 16:46:01 +0000 Subject: saml_assertion_set_signature() function added --- python/xml/py_saml_assertion.c | 21 +++++++++++++++++++++ python/xml/py_saml_assertion.h | 1 + 2 files changed, 22 insertions(+) (limited to 'python') diff --git a/python/xml/py_saml_assertion.c b/python/xml/py_saml_assertion.c index 1954fdec..74f8f847 100644 --- a/python/xml/py_saml_assertion.c +++ b/python/xml/py_saml_assertion.c @@ -66,3 +66,24 @@ PyObject *saml_assertion_add_authenticationStatement(PyObject *self, PyObject *a Py_INCREF(Py_None); return (Py_None); } + +PyObject *saml_assertion_set_signature(PyObject *self, PyObject *args) { + PyObject *node_obj; + gint sign_method; + const xmlChar *private_key_file; + const xmlChar *certificate_file; + + if (CheckArgs(args, "OISS:saml_assertion_set_signature")) { + if(!PyArg_ParseTuple(args, (char *) "Oiss:saml_assertion_set_signature", + &node_obj, &sign_method, &private_key_file, + &certificate_file)) + return NULL; + } + else return NULL; + + lasso_saml_assertion_set_signature(LassoSamlAssertion_get(node_obj), + sign_method, + private_key_file, certificate_file); + Py_INCREF(Py_None); + return (Py_None); +} diff --git a/python/xml/py_saml_assertion.h b/python/xml/py_saml_assertion.h index 91cd5129..7d08fd65 100644 --- a/python/xml/py_saml_assertion.h +++ b/python/xml/py_saml_assertion.h @@ -38,5 +38,6 @@ PyObject *LassoSamlAssertion_wrap(LassoSamlAssertion *assertion); PyObject *saml_assertion_new(PyObject *self, PyObject *args); PyObject *saml_assertion_add_authenticationStatement(PyObject *self, PyObject *args); +PyObject *saml_assertion_set_signature(PyObject *self, PyObject *args); #endif /* __PYLASSO_PY_SAML_ASSERTION_H__ */ -- cgit