summaryrefslogtreecommitdiffstats
path: root/python/protocols/py_authn_response.c
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-05-06 15:45:16 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-05-06 15:45:16 +0000
commit60cffeeeb185ec2b9c70d8018b2cc61f11e2f945 (patch)
tree7d80c46f866dc0842378251da16e5a743f43ad7b /python/protocols/py_authn_response.c
parent71ed7f38a91309cd81daca5d2c697f21a6b646b7 (diff)
downloadlasso-60cffeeeb185ec2b9c70d8018b2cc61f11e2f945.tar.gz
lasso-60cffeeeb185ec2b9c70d8018b2cc61f11e2f945.tar.xz
lasso-60cffeeeb185ec2b9c70d8018b2cc61f11e2f945.zip
*** empty log message ***
Diffstat (limited to 'python/protocols/py_authn_response.c')
-rw-r--r--python/protocols/py_authn_response.c32
1 files changed, 23 insertions, 9 deletions
diff --git a/python/protocols/py_authn_response.c b/python/protocols/py_authn_response.c
index 69cf9653..b8f70c76 100644
--- a/python/protocols/py_authn_response.c
+++ b/python/protocols/py_authn_response.c
@@ -61,8 +61,6 @@ PyObject *authn_response_getattr(PyObject *self, PyObject *args) {
if (!strcmp(attr, "__members__"))
return Py_BuildValue("[ss]", "requestID", "query");
- if (!strcmp(attr, "requestID"))
- return (xmlCharPtr_wrap(reponse->requestID));
if (!strcmp(attr, "query"))
return (xmlCharPtr_wrap(reponse->query));
@@ -72,19 +70,35 @@ PyObject *authn_response_getattr(PyObject *self, PyObject *args) {
/******************************************************************************/
-PyObject *authn_response_new(PyObject *self, PyObject *args) {
- xmlChar *query;
- const xmlChar *providerID;
+PyObject *authn_response_new_from_dump(PyObject *self, PyObject *args) {
+ xmlChar *buffer;
+ LassoNode *response;
+
+ if (CheckArgs(args, "S:authn_response_new_from_dump")) {
+ if(!PyArg_ParseTuple(args, (char *) "s:authn_response_new_from_dump",
+ &buffer))
+ return NULL;
+ }
+ else return NULL;
+
+ response = lasso_authn_response_new_from_dump(buffer);
+
+ 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;
LassoNode *response;
- if (CheckArgs(args, "SS:authn_response_new")) {
- if(!PyArg_ParseTuple(args, (char *) "ss:authn_response_new", &query,
- &providerID))
+ if (CheckArgs(args, "ss:authn_response_new_from_request_query")) {
+ if(!PyArg_ParseTuple(args, (char *) "zz:authn_response_new_from_request_query",
+ &query, &providerID))
return NULL;
}
else return NULL;
- response = lasso_authn_response_new(query, providerID);
+ response = lasso_authn_response_new_from_request_query(query, providerID);
return (LassoAuthnResponse_wrap(LASSO_AUTHN_RESPONSE(response)));
}