summaryrefslogtreecommitdiffstats
path: root/python/protocols/py_authn_request.c
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-05-02 22:19:01 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-05-02 22:19:01 +0000
commitfadb14e123c3f661d79cfca4192985bfaf1d5bb9 (patch)
treeade93fa8dd752506de98e13da186e649bc689347 /python/protocols/py_authn_request.c
parent290e743aa70ca648d9e252209130aaa2fe1c1c2d (diff)
downloadlasso-fadb14e123c3f661d79cfca4192985bfaf1d5bb9.tar.gz
lasso-fadb14e123c3f661d79cfca4192985bfaf1d5bb9.tar.xz
lasso-fadb14e123c3f661d79cfca4192985bfaf1d5bb9.zip
Many many changes
Diffstat (limited to 'python/protocols/py_authn_request.c')
-rw-r--r--python/protocols/py_authn_request.c23
1 files changed, 17 insertions, 6 deletions
diff --git a/python/protocols/py_authn_request.c b/python/protocols/py_authn_request.c
index d0b197f6..f52e95b3 100644
--- a/python/protocols/py_authn_request.c
+++ b/python/protocols/py_authn_request.c
@@ -5,7 +5,8 @@
* Copyright (C) 2004 Entr'ouvert
* http://lasso.labs.libre-entreprise.org
*
- * Author: Valery Febvre <vfebvre@easter-eggs.com>
+ * Authors: Valery Febvre <vfebvre@easter-eggs.com>
+ * Nicolas Clapies <nclapies@entrouvert.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -24,13 +25,8 @@
#include "../lassomod.h"
-#include "../xml/py_xml.h"
#include "py_authn_request.h"
-/******************************************************************************/
-/* LassoAuthnRequest */
-/******************************************************************************/
-
PyObject *LassoAuthnRequest_wrap(LassoAuthnRequest *request) {
PyObject *ret;
@@ -98,3 +94,18 @@ PyObject *authn_request_set_scoping(PyObject *self, PyObject *args) {
Py_INCREF(Py_None);
return (Py_None);
}
+
+/******************************************************************************/
+
+PyObject *authn_request_get_protocolProfile(PyObject *self, PyObject *args) {
+ xmlChar *query;
+ xmlChar *protocolProfile;
+
+ if(!PyArg_ParseTuple(args, (char *) "s:authn_request_get_protocolProfile",
+ &query))
+ return NULL;
+
+ protocolProfile = lasso_authn_request_get_protocolProfile(query);
+
+ return (xmlCharPtr_wrap(protocolProfile));
+}