diff options
| author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-07-22 00:47:01 +0000 |
|---|---|---|
| committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-07-22 00:47:01 +0000 |
| commit | eb682633945cdd2cfafb3fb082b9c9b6b5e31bba (patch) | |
| tree | 3c3a86ad4b4ba752de0d8df9c7c46daf93f3d43f /python/xml | |
| parent | 59cac1639ee6d771ebe9ffe118e654d2850f0955 (diff) | |
| download | lasso-eb682633945cdd2cfafb3fb082b9c9b6b5e31bba.tar.gz lasso-eb682633945cdd2cfafb3fb082b9c9b6b5e31bba.tar.xz lasso-eb682633945cdd2cfafb3fb082b9c9b6b5e31bba.zip | |
Added method set_consent in LibAuthnRequest class
Diffstat (limited to 'python/xml')
| -rw-r--r-- | python/xml/py_lib_authn_request.c | 18 | ||||
| -rw-r--r-- | python/xml/py_lib_authn_request.h | 1 |
2 files changed, 19 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; diff --git a/python/xml/py_lib_authn_request.h b/python/xml/py_lib_authn_request.h index b6e98ce0..9b142bca 100644 --- a/python/xml/py_lib_authn_request.h +++ b/python/xml/py_lib_authn_request.h @@ -37,6 +37,7 @@ typedef struct { PyObject *LassoLibAuthnRequest_wrap(LassoLibAuthnRequest *request); PyObject *lib_authn_request_new(PyObject *self, PyObject *args); +PyObject *lib_authn_request_set_consent(PyObject *self, PyObject *args); PyObject *lib_authn_request_set_forceAuthn(PyObject *self, PyObject *args); PyObject *lib_authn_request_set_isPassive(PyObject *self, PyObject *args); PyObject *lib_authn_request_set_nameIDPolicy(PyObject *self, PyObject *args); |
