summaryrefslogtreecommitdiffstats
path: root/python/protocols/py_authn_request.c
diff options
context:
space:
mode:
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));
+}