diff options
| author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-08-01 03:29:43 +0000 |
|---|---|---|
| committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-08-01 03:29:43 +0000 |
| commit | b9db3340dd2bb3b36ccd199ff450dc0b53fcfc35 (patch) | |
| tree | ef350be02a7442c759859f09df790d3a7d8cc9da /python | |
| parent | 0ecf1691ba1f1590b480ee53a6af0c0dbb66424a (diff) | |
| download | lasso-b9db3340dd2bb3b36ccd199ff450dc0b53fcfc35.tar.gz lasso-b9db3340dd2bb3b36ccd199ff450dc0b53fcfc35.tar.xz lasso-b9db3340dd2bb3b36ccd199ff450dc0b53fcfc35.zip | |
Added a new argument 'err' (GError *) in 5 methods:
lasso_ds_signature_sign,
lasso_node_add_signature,
lasso_node_verify_signature,
lasso_saml_assertion_set_signature,
lasso_samlp_request_abstract_set_signature,
lasso_samlp_response_abstract_set_signature
for reporting always more errors.
Diffstat (limited to 'python')
| -rw-r--r-- | python/xml/py_saml_assertion.c | 10 | ||||
| -rw-r--r-- | python/xml/py_xml.c | 3 |
2 files changed, 9 insertions, 4 deletions
diff --git a/python/xml/py_saml_assertion.c b/python/xml/py_saml_assertion.c index 50a1251d..14ba3bdf 100644 --- a/python/xml/py_saml_assertion.c +++ b/python/xml/py_saml_assertion.c @@ -72,6 +72,7 @@ PyObject *saml_assertion_set_signature(PyObject *self, PyObject *args) { gint sign_method; const xmlChar *private_key_file; const xmlChar *certificate_file; + int ret; if (CheckArgs(args, "OISS:saml_assertion_set_signature")) { if(!PyArg_ParseTuple(args, (char *) "Oiss:saml_assertion_set_signature", @@ -81,9 +82,12 @@ PyObject *saml_assertion_set_signature(PyObject *self, PyObject *args) { } else return NULL; - lasso_saml_assertion_set_signature(LassoSamlAssertion_get(node_obj), - sign_method, - private_key_file, certificate_file); + ret = lasso_saml_assertion_set_signature(LassoSamlAssertion_get(node_obj), + sign_method, + private_key_file, certificate_file, + NULL); + /* FIXME generate an exception here */ + Py_INCREF(Py_None); return (Py_None); } diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c index 83636187..54c9ee65 100644 --- a/python/xml/py_xml.c +++ b/python/xml/py_xml.c @@ -207,7 +207,8 @@ PyObject *node_verify_signature(PyObject *self, PyObject *args) { else return NULL; ret = lasso_node_verify_signature(LassoNode_get(node_obj), - certificate_file); + certificate_file, NULL); + /* FIXME generate an exception here */ return (int_wrap(ret)); } |
