From fadb14e123c3f661d79cfca4192985bfaf1d5bb9 Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Sun, 2 May 2004 22:19:01 +0000 Subject: Many many changes --- python/protocols/py_authn_request.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'python/protocols/py_authn_request.c') 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 + * Authors: Valery Febvre + * Nicolas Clapies * * 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)); +} -- cgit