summaryrefslogtreecommitdiffstats
path: root/python/protocols
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-04-19 10:16:44 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-04-19 10:16:44 +0000
commit47871da2163c016272749887e422d70829cdc752 (patch)
treeed6fb9ad5be7411ec6d3b7b8fcc083118ee4e129 /python/protocols
parent871b0cd4a4a1a62a3d83b20689c593ffba15f421 (diff)
downloadlasso-47871da2163c016272749887e422d70829cdc752.tar.gz
lasso-47871da2163c016272749887e422d70829cdc752.tar.xz
lasso-47871da2163c016272749887e422d70829cdc752.zip
add add_assertion method for Response object
Diffstat (limited to 'python/protocols')
-rw-r--r--python/protocols/py_single_sign_on_and_federation.c14
-rw-r--r--python/protocols/py_single_sign_on_and_federation.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/python/protocols/py_single_sign_on_and_federation.c b/python/protocols/py_single_sign_on_and_federation.c
index 74637829..57562fff 100644
--- a/python/protocols/py_single_sign_on_and_federation.c
+++ b/python/protocols/py_single_sign_on_and_federation.c
@@ -417,3 +417,17 @@ PyObject *response_init(PyObject *self, PyObject *args) {
return (int_wrap(ret));
}
+
+PyObject *response_add_assertion(PyObject *self, PyObject *args) {
+ PyObject *response_obj, *assertion_obj;
+ int ret;
+
+ if(!PyArg_ParseTuple(args, (char *) "OO:response_add_assertion",
+ &response_obj, &assertion_obj))
+ return NULL;
+
+ ret = lasso_response_add_assertion(lassoResponse_get(response_obj),
+ LassoNode_get(assertion_obj));
+
+ return (int_wrap(ret));
+}
diff --git a/python/protocols/py_single_sign_on_and_federation.h b/python/protocols/py_single_sign_on_and_federation.h
index 94c75b6f..9ac4fa43 100644
--- a/python/protocols/py_single_sign_on_and_federation.h
+++ b/python/protocols/py_single_sign_on_and_federation.h
@@ -78,5 +78,6 @@ PyObject *request_create(PyObject *self, PyObject *args);
PyObject *response_getattr(PyObject *self, PyObject *args);
PyObject *response_create(PyObject *self, PyObject *args);
PyObject *response_init(PyObject *self, PyObject *args);
+PyObject *response_add_assertion(PyObject *self, PyObject *args);
#endif /* __PYLASSO_PY_SINGLE_SIGN_ON_AND_FEDERATION_H__ */