diff options
author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-13 16:46:01 +0000 |
---|---|---|
committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-13 16:46:01 +0000 |
commit | 16d7f6b804f0235bec0f7ccdd376a814a85b4622 (patch) | |
tree | 8afb2bb250366884c09b227a685a46d748f43c0e /python/xml/py_saml_assertion.c | |
parent | 2c2f3f9299f8953fb4f6483d3040b8689fece2b5 (diff) | |
download | lasso-16d7f6b804f0235bec0f7ccdd376a814a85b4622.tar.gz lasso-16d7f6b804f0235bec0f7ccdd376a814a85b4622.tar.xz lasso-16d7f6b804f0235bec0f7ccdd376a814a85b4622.zip |
saml_assertion_set_signature() function added
Diffstat (limited to 'python/xml/py_saml_assertion.c')
-rw-r--r-- | python/xml/py_saml_assertion.c | 21 |
1 files changed, 21 insertions, 0 deletions
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); +} |