summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/protocols/py_authn_request.c6
-rw-r--r--python/xml/py_saml_assertion.c4
-rw-r--r--python/xml/py_xml.c3
3 files changed, 6 insertions, 7 deletions
diff --git a/python/protocols/py_authn_request.c b/python/protocols/py_authn_request.c
index 579f7973..b1e74aca 100644
--- a/python/protocols/py_authn_request.c
+++ b/python/protocols/py_authn_request.c
@@ -44,11 +44,13 @@ PyObject *LassoAuthnRequest_wrap(LassoAuthnRequest *request) {
PyObject *authn_request_new(PyObject *self, PyObject *args) {
const xmlChar *providerID;
LassoNode *request;
+ gint sign_type, sign_method;
- if(!PyArg_ParseTuple(args, (char *) "s:authn_request_new", &providerID))
+ if(!PyArg_ParseTuple(args, (char *) "sii:authn_request_new", &providerID,
+ &sign_type, &sign_method))
return NULL;
- request = lasso_authn_request_new(providerID);
+ request = lasso_authn_request_new(providerID, sign_type, sign_method);
return (LassoAuthnRequest_wrap(LASSO_AUTHN_REQUEST(request)));
}
diff --git a/python/xml/py_saml_assertion.c b/python/xml/py_saml_assertion.c
index 14ba3bdf..7faa0c59 100644
--- a/python/xml/py_saml_assertion.c
+++ b/python/xml/py_saml_assertion.c
@@ -84,9 +84,7 @@ PyObject *saml_assertion_set_signature(PyObject *self, PyObject *args) {
ret = lasso_saml_assertion_set_signature(LassoSamlAssertion_get(node_obj),
sign_method,
- private_key_file, certificate_file,
- NULL);
- /* FIXME generate an exception here */
+ private_key_file, certificate_file);
Py_INCREF(Py_None);
return (Py_None);
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c
index 54c9ee65..83636187 100644
--- a/python/xml/py_xml.c
+++ b/python/xml/py_xml.c
@@ -207,8 +207,7 @@ PyObject *node_verify_signature(PyObject *self, PyObject *args) {
else return NULL;
ret = lasso_node_verify_signature(LassoNode_get(node_obj),
- certificate_file, NULL);
- /* FIXME generate an exception here */
+ certificate_file);
return (int_wrap(ret));
}