diff options
author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-02 22:19:01 +0000 |
---|---|---|
committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-05-02 22:19:01 +0000 |
commit | fadb14e123c3f661d79cfca4192985bfaf1d5bb9 (patch) | |
tree | ade93fa8dd752506de98e13da186e649bc689347 /python/protocols/py_authn_request.c | |
parent | 290e743aa70ca648d9e252209130aaa2fe1c1c2d (diff) | |
download | lasso-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.c | 23 |
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)); +} |