summaryrefslogtreecommitdiffstats
path: root/python/xml/py_lib_authn_request.c
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-22 00:47:01 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-22 00:47:01 +0000
commiteb682633945cdd2cfafb3fb082b9c9b6b5e31bba (patch)
tree3c3a86ad4b4ba752de0d8df9c7c46daf93f3d43f /python/xml/py_lib_authn_request.c
parent59cac1639ee6d771ebe9ffe118e654d2850f0955 (diff)
downloadlasso-eb682633945cdd2cfafb3fb082b9c9b6b5e31bba.tar.gz
lasso-eb682633945cdd2cfafb3fb082b9c9b6b5e31bba.tar.xz
lasso-eb682633945cdd2cfafb3fb082b9c9b6b5e31bba.zip
Added method set_consent in LibAuthnRequest class
Diffstat (limited to 'python/xml/py_lib_authn_request.c')
-rw-r--r--python/xml/py_lib_authn_request.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/python/xml/py_lib_authn_request.c b/python/xml/py_lib_authn_request.c
index 2aef05bf..8bbda4f8 100644
--- a/python/xml/py_lib_authn_request.c
+++ b/python/xml/py_lib_authn_request.c
@@ -49,6 +49,24 @@ PyObject *lib_authn_request_new(PyObject *self, PyObject *args) {
return (LassoLibAuthnRequest_wrap(LASSO_LIB_AUTHN_REQUEST(request)));
}
+PyObject *lib_authn_request_set_consent(PyObject *self, PyObject *args) {
+ PyObject *node_obj;
+ const xmlChar *consent;
+
+ if (CheckArgs(args, "OS:lib_authn_request_set_consent")) {
+ if(!PyArg_ParseTuple(args, (char *) "Os:lib_authn_request_set_forceAuthn",
+ &node_obj, &consent))
+ return NULL;
+ }
+ else return NULL;
+
+ lasso_lib_authn_request_set_consent(LassoLibAuthnRequest_get(node_obj),
+ consent);
+
+ Py_INCREF(Py_None);
+ return (Py_None);
+}
+
PyObject *lib_authn_request_set_forceAuthn(PyObject *self, PyObject *args) {
PyObject *node_obj;
gint forceAuthn;