diff options
author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-13 23:55:48 +0000 |
---|---|---|
committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-13 23:55:48 +0000 |
commit | a126ff51729dfd323186ab19c71dc84a1eba74ff (patch) | |
tree | 37c82de9b3953b46dd42262f21b5552454722b5f /python/protocols/py_authn_response.c | |
parent | bf2f894ddd6284fb6414b6a0920a43f11c348711 (diff) | |
download | lasso-a126ff51729dfd323186ab19c71dc84a1eba74ff.tar.gz lasso-a126ff51729dfd323186ab19c71dc84a1eba74ff.tar.xz lasso-a126ff51729dfd323186ab19c71dc84a1eba74ff.zip |
authn_response_new_from_export() function added
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; |