From eb682633945cdd2cfafb3fb082b9c9b6b5e31bba Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Thu, 22 Jul 2004 00:47:01 +0000 Subject: Added method set_consent in LibAuthnRequest class --- python/xml/py_lib_authn_request.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'python/xml/py_lib_authn_request.c') 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; -- cgit