diff options
Diffstat (limited to 'python/protocols/py_authn_response.c')
-rw-r--r-- | python/protocols/py_authn_response.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/python/protocols/py_authn_response.c b/python/protocols/py_authn_response.c index 302aeb1a..bd8e3dbc 100644 --- a/python/protocols/py_authn_response.c +++ b/python/protocols/py_authn_response.c @@ -89,6 +89,23 @@ PyObject *authn_response_new_from_dump(PyObject *self, PyObject *args) { return (LassoAuthnResponse_wrap(LASSO_AUTHN_RESPONSE(response))); } +PyObject *authn_response_new_from_export(PyObject *self, PyObject *args) { + xmlChar *buffer; + gint type; + LassoNode *response; + + if (CheckArgs(args, "Si:authn_response_new_from_export")) { + if(!PyArg_ParseTuple(args, (char *) "si:authn_response_new_from_export", + &buffer, &type)) + return NULL; + } + else return NULL; + + response = lasso_authn_response_new_from_export(buffer, type); + + return (LassoAuthnResponse_wrap(LASSO_AUTHN_RESPONSE(response))); +} + PyObject *authn_response_new_from_request_query(PyObject *self, PyObject *args) { xmlChar *query = NULL; const xmlChar *providerID = NULL; |