summaryrefslogtreecommitdiffstats
path: root/python/environs
diff options
context:
space:
mode:
Diffstat (limited to 'python/environs')
-rw-r--r--python/environs/.cvsignore3
-rw-r--r--python/environs/Makefile.am17
-rw-r--r--python/environs/py_federation_termination.c180
-rw-r--r--python/environs/py_federation_termination.h52
-rw-r--r--python/environs/py_identity.c78
-rw-r--r--python/environs/py_identity.h43
-rw-r--r--python/environs/py_lecp.c258
-rw-r--r--python/environs/py_lecp.h52
-rw-r--r--python/environs/py_login.c368
-rw-r--r--python/environs/py_login.h60
-rw-r--r--python/environs/py_logout.c227
-rw-r--r--python/environs/py_logout.h54
-rw-r--r--python/environs/py_profile.c221
-rw-r--r--python/environs/py_profile.h53
-rw-r--r--python/environs/py_register_name_identifier.c195
-rw-r--r--python/environs/py_register_name_identifier.h53
-rw-r--r--python/environs/py_server.c132
-rw-r--r--python/environs/py_server.h45
-rw-r--r--python/environs/py_session.c210
-rw-r--r--python/environs/py_session.h50
20 files changed, 0 insertions, 2351 deletions
diff --git a/python/environs/.cvsignore b/python/environs/.cvsignore
deleted file mode 100644
index 051d1bd5..00000000
--- a/python/environs/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-Makefile
-Makefile.in
-.deps
diff --git a/python/environs/Makefile.am b/python/environs/Makefile.am
deleted file mode 100644
index 9b5cf85e..00000000
--- a/python/environs/Makefile.am
+++ /dev/null
@@ -1,17 +0,0 @@
-INCLUDES = \
- -DPACKAGE=\"@PACKAGE@\" \
- -I$(top_srcdir) \
- -I$(top_srcdir)/lasso \
- $(LASSO_DEFINES) \
- $(LASSO_CFLAGS) \
- $(PY_CFLAGS) \
- $(NULL)
-
-
-ENVSOURCES = py_federation_termination.c py_lecp.c py_login.c py_logout.c py_profile.c py_register_name_identifier.c py_server.c py_session.c py_identity.c
-
-noinst_LTLIBRARIES = libenvirons.la
-libenvirons_la_SOURCES = $(ENVSOURCES)
-
-EXTRA_DIST = $(ENVSOURCES) py_federation_termination.h py_lecp.h py_login.h py_logout.h py_profile.h py_register_name_identifier.h py_server.h py_session.h py_identity.h
-
diff --git a/python/environs/py_federation_termination.c b/python/environs/py_federation_termination.c
deleted file mode 100644
index b4b1ac33..00000000
--- a/python/environs/py_federation_termination.c
+++ /dev/null
@@ -1,180 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "../lassomod.h"
-
-#include "py_federation_termination.h"
-
-
-PyObject *LassoFederationTermination_wrap(LassoFederationTermination *federation_termination) {
- PyObject *ret;
-
- if (federation_termination == NULL) {
- Py_INCREF(Py_None);
- return (Py_None);
- }
- ret = PyCObject_FromVoidPtrAndDesc((void *) federation_termination,
- (char *) "LassoFederationTermination *", NULL);
- return (ret);
-}
-
-/******************************************************************************/
-
-PyObject *federation_termination_getattr(PyObject *self, PyObject *args) {
- PyObject *federation_termination_obj;
- LassoFederationTermination *federation_termination;
- const char *attr;
-
- if (CheckArgs(args, "OS:federation_termination_get_attr")) {
- if (!PyArg_ParseTuple(args, "Os:federation_termination_get_attr", &federation_termination_obj, &attr))
- return NULL;
- }
- else return NULL;
-
- federation_termination = LassoFederationTermination_get(federation_termination_obj);
-
- if (!strcmp(attr, "__members__"))
- return Py_BuildValue("[sssss]", "identity", "msg_url", "msg_body",
- "msg_relayState",
- "nameIdentifier");
-
- if (!strcmp(attr, "identity"))
- return (LassoIdentity_wrap(LASSO_PROFILE(federation_termination)->identity));
- if (!strcmp(attr, "msg_url"))
- return (charPtrConst_wrap(LASSO_PROFILE(federation_termination)->msg_url));
- if (!strcmp(attr, "msg_body"))
- return (charPtrConst_wrap(LASSO_PROFILE(federation_termination)->msg_body));
- if (!strcmp(attr, "msg_relayState"))
- return (charPtrConst_wrap(LASSO_PROFILE(federation_termination)->msg_relayState));
- if (!strcmp(attr, "nameIdentifier"))
- return (charPtrConst_wrap(LASSO_PROFILE(federation_termination)->nameIdentifier));
-
- Py_INCREF(Py_None);
- return (Py_None);
-}
-
-PyObject *federation_termination_new(PyObject *self, PyObject *args) {
- LassoFederationTermination *federation_termination;
- PyObject *server_obj;
- gint provider_type;
-
- if (CheckArgs(args, "OI:federation_termination_new")) {
- if(!PyArg_ParseTuple(args, (char *) "Oi:federation_termination_new",
- &server_obj, &provider_type))
- return NULL;
- }
- else return NULL;
-
- federation_termination = lasso_federation_termination_new(LassoServer_get(server_obj),
- provider_type);
-
- return (LassoFederationTermination_wrap(federation_termination));
-}
-
-PyObject *federation_termination_build_notification_msg(PyObject *self, PyObject *args) {
- PyObject *federation_termination_obj;
- gint codeError;
-
- if (CheckArgs(args, "O:federation_termination_build_notification_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "O:federation_termination_build_notification_msg",
- &federation_termination_obj))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_federation_termination_build_notification_msg(LassoFederationTermination_get(federation_termination_obj));
-
- return(int_wrap(codeError));
-}
-
-PyObject *federation_termination_destroy(PyObject *self, PyObject *args){
- PyObject *federation_termination_obj;
-
- if (CheckArgs(args, "O:federation_termination_destroy")) {
- if(!PyArg_ParseTuple(args, (char *) "O:federation_termination_destroy",
- &federation_termination_obj))
- return NULL;
- }
- else return NULL;
-
- lasso_federation_termination_destroy(LassoFederationTermination_get(federation_termination_obj));
-
- Py_INCREF(Py_None);
- return(Py_None);
-}
-
-PyObject *federation_termination_init_notification(PyObject *self, PyObject *args) {
- PyObject *federation_termination_obj;
- gchar *remote_providerID;
- gint codeError;
-
- if (CheckArgs(args, "Os:federation_termination_init_notification")) {
- if(!PyArg_ParseTuple(args, (char *) "Oz:federation_termination_init_notification",
- &federation_termination_obj, &remote_providerID))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_federation_termination_init_notification(LassoFederationTermination_get(federation_termination_obj),
- remote_providerID);
-
- return(int_wrap(codeError));
-}
-
-PyObject *federation_termination_process_notification_msg(PyObject *self, PyObject *args){
- PyObject *notification_obj;
- gchar *notification_msg;
- gint notification_method;
- gint codeError;
-
- if (CheckArgs(args, "OSI:federation_termination_process_notification_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Osi:federation_termination_process_notification_msg",
- &notification_obj, &notification_msg, &notification_method))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_federation_termination_process_notification_msg(LassoFederationTermination_get(notification_obj),
- notification_msg, notification_method);
-
- return(int_wrap(codeError));
-}
-
-PyObject *federation_termination_validate_notification(PyObject *self, PyObject *args) {
- PyObject *federation_termination_obj;
- gint codeError;
-
- if (CheckArgs(args, "O:federation_termination_validate_notification")) {
- if(!PyArg_ParseTuple(args, (char *) "O:federation_termination_validate_notification",
- &federation_termination_obj))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_federation_termination_validate_notification(LassoFederationTermination_get(federation_termination_obj));
-
- return(int_wrap(codeError));
-}
-
diff --git a/python/environs/py_federation_termination.h b/python/environs/py_federation_termination.h
deleted file mode 100644
index 97567859..00000000
--- a/python/environs/py_federation_termination.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __PYLASSO_PY_FEDERATION_TERMINATION_H__
-#define __PYLASSO_PY_FEDERATION_TERMINATION_H__
-
-#include <lasso/environs/federation_termination.h>
-
-#include "py_server.h"
-#include "py_identity.h"
-
-typedef struct {
- PyObject_HEAD
- LassoFederationTermination *obj;
-} LassoFederationTermination_object;
-
-#define LassoFederationTermination_get(v) (((v) == Py_None) ? NULL : (((LassoFederationTermination_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
-PyObject *LassoFederationTermination_wrap(LassoFederationTermination *federation_termination);
-
-PyObject *federation_termination_getattr(PyObject *self, PyObject *args);
-
-PyObject *federation_termination_new(PyObject *self, PyObject *args);
-
-PyObject *federation_termination_build_notification_msg(PyObject *self, PyObject *args);
-PyObject *federation_termination_destroy(PyObject *self, PyObject *args);
-PyObject *federation_termination_init_notification(PyObject *self, PyObject *args);
-PyObject *federation_termination_process_notification_msg(PyObject *self, PyObject *args);
-PyObject *federation_termination_validate_notification(PyObject *self, PyObject *args);
-
-#endif /* __PYLASSO_PY_FEDERATION_TERMINATION_H__ */
diff --git a/python/environs/py_identity.c b/python/environs/py_identity.c
deleted file mode 100644
index a7c466b2..00000000
--- a/python/environs/py_identity.c
+++ /dev/null
@@ -1,78 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "../lassomod.h"
-
-#include "py_identity.h"
-#include "../xml/py_xml.h"
-
-
-PyObject *LassoIdentity_wrap(LassoIdentity *identity) {
- PyObject *ret;
-
- if (identity == NULL) {
- Py_INCREF(Py_None);
- return (Py_None);
- }
- ret = PyCObject_FromVoidPtrAndDesc((void *) identity,
- (char *) "LassoIdentity *", NULL);
- return (ret);
-}
-
-/******************************************************************************/
-
-PyObject *identity_new(PyObject *self, PyObject *args) {
- return (LassoIdentity_wrap(lasso_identity_new()));
-}
-
-PyObject *identity_new_from_dump(PyObject *self, PyObject *args) {
- LassoIdentity *identity;
- gchar *dump;
-
- if (CheckArgs(args, "S:identity_new_from_dump")) {
- if(!PyArg_ParseTuple(args, (char *) "s:identity_new_from_dump", &dump))
- return NULL;
- }
- else return NULL;
-
- identity = lasso_identity_new_from_dump(dump);
-
- return (LassoIdentity_wrap(identity));
-}
-
-PyObject *identity_dump(PyObject *self, PyObject *args) {
- PyObject *identity_obj;
- gchar *dump;
-
- if (CheckArgs(args, "O:identity_dump")) {
- if(!PyArg_ParseTuple(args, (char *) "O:identity_dump", &identity_obj))
- return NULL;
- }
- else return NULL;
-
- dump = lasso_identity_dump(LassoIdentity_get(identity_obj));
-
- return (charPtr_wrap(dump));
-}
diff --git a/python/environs/py_identity.h b/python/environs/py_identity.h
deleted file mode 100644
index ea8c75dc..00000000
--- a/python/environs/py_identity.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __PYLASSO_PY_IDENTITY_H__
-#define __PYLASSO_PY_IDENTITY_H__
-
-#include <lasso/environs/identity.h>
-
-typedef struct {
- PyObject_HEAD
- LassoIdentity *obj;
-} LassoIdentity_object;
-
-#define LassoIdentity_get(v) (((v) == Py_None) ? NULL : (((LassoIdentity_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
-PyObject *LassoIdentity_wrap(LassoIdentity *identity);
-
-PyObject *identity_new(PyObject *self, PyObject *args);
-PyObject *identity_new_from_dump(PyObject *self, PyObject *args);
-PyObject *identity_dump(PyObject *self, PyObject *args);
-
-#endif /* __PYLASSO_PY_IDENTITY_H__ */
diff --git a/python/environs/py_lecp.c b/python/environs/py_lecp.c
deleted file mode 100644
index 9a521116..00000000
--- a/python/environs/py_lecp.c
+++ /dev/null
@@ -1,258 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "../lassomod.h"
-#include "../xml/py_xml.h"
-
-#include "py_lecp.h"
-#include "py_server.h"
-
-#include "../protocols/py_authn_request.h"
-#include "../protocols/py_authn_response.h"
-
-PyObject *LassoLecp_wrap(LassoLecp *lecp) {
- PyObject *ret;
-
- if (lecp == NULL) {
- Py_INCREF(Py_None);
- return (Py_None);
- }
- ret = PyCObject_FromVoidPtrAndDesc((void *) lecp,
- (char *) "LassoLecp *", NULL);
- return (ret);
-}
-
-/******************************************************************************/
-
-PyObject *lecp_getattr(PyObject *self, PyObject *args) {
- PyObject *lecp_obj;
- LassoLecp *lecp;
- const char *attr;
-
- if (CheckArgs(args, "OS:lecp_get_attr")) {
- if (!PyArg_ParseTuple(args, "Os:lecp_get_attr", &lecp_obj, &attr))
- return NULL;
- }
- else return NULL;
-
- lecp = LassoLecp_get(lecp_obj);
-
- if (!strcmp(attr, "__members__"))
- return Py_BuildValue("[sssssss]", "assertionConsumerServiceURL", "msg_body", "msg_url",
- "request", "request_type", "response", "response_type");
- if (!strcmp(attr, "assertionConsumerServiceURL"))
- return (charPtrConst_wrap(lecp->assertionConsumerServiceURL));
- if (!strcmp(attr, "msg_body"))
- return (charPtrConst_wrap(LASSO_PROFILE(lecp)->msg_body));
- if (!strcmp(attr, "msg_url"))
- return (charPtrConst_wrap(LASSO_PROFILE(lecp)->msg_url));
- if (!strcmp(attr, "request"))
- return (LassoNode_wrap(LASSO_PROFILE(lecp)->request));
- if (!strcmp(attr, "request_type"))
- return (int_wrap(LASSO_PROFILE(lecp)->request_type));
- if (!strcmp(attr, "response"))
- return (LassoNode_wrap(LASSO_PROFILE(lecp)->response));
- if (!strcmp(attr, "response_type"))
- return (int_wrap(LASSO_PROFILE(lecp)->response_type));
-
- Py_INCREF(Py_None);
- return (Py_None);
-}
-
-PyObject *lecp_new(PyObject *self, PyObject *args) {
- LassoLecp *lecp;
- PyObject *server_obj;
-
- if (CheckArgs(args, "o:lecp_new")) {
- if(!PyArg_ParseTuple(args, (char *) "|O:lecp_new", &server_obj))
- return NULL;
- }
- else return NULL;
-
- lecp = lasso_lecp_new(LassoServer_get(server_obj));
-
- return (LassoLecp_wrap(lecp));
-}
-
-PyObject *lecp_build_authn_request_envelope_msg(PyObject *self, PyObject *args){
- PyObject *lecp_obj;
- gint codeError = 0;
-
- if (CheckArgs(args, "O:lecp_build_authn_request_envelope_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "O:lecp_build_authn_request_envelope_msg",
- &lecp_obj))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_lecp_build_authn_request_envelope_msg(LassoLecp_get(lecp_obj));
-
- return(int_wrap(codeError));
-}
-
-PyObject *lecp_build_authn_response_envelope_msg(PyObject *self, PyObject *args){
- PyObject *lecp_obj;
- gint authentication_result;
- const gchar *authenticationMethod;
- const gchar *reauthenticateOnOrAfter;
- gint codeError = 0;
-
- if (CheckArgs(args, "OISS:lecp_build_authn_response_envelope_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Oiss:lecp_build_authn_response_envelope_msg",
- &lecp_obj, &authentication_result, &authenticationMethod,
- &reauthenticateOnOrAfter))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_lecp_build_authn_response_envelope_msg(LassoLecp_get(lecp_obj),
- authentication_result,
- authenticationMethod,
- reauthenticateOnOrAfter);
-
- return(int_wrap(codeError));
-}
-
-PyObject *lecp_build_authn_request_msg(PyObject *self, PyObject *args){
- PyObject *lecp_obj;
- gchar *remote_providerID;
- gint codeError = 0;
-
- if (CheckArgs(args, "OS:lecp_build_authn_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:lecp_build_authn_request_msg",
- &lecp_obj, &remote_providerID))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_lecp_build_authn_request_msg(LassoLecp_get(lecp_obj),
- remote_providerID);
-
- return(int_wrap(codeError));
-}
-
-PyObject *lecp_build_authn_response_msg(PyObject *self, PyObject *args){
- PyObject *lecp_obj;
- gint codeError = 0;
-
- if (CheckArgs(args, "O:lecp_build_authn_response_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "O:lecp_build_authn_response_msg",
- &lecp_obj))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_lecp_build_authn_response_msg(LassoLecp_get(lecp_obj));
-
- return(int_wrap(codeError));
-}
-
-PyObject *lecp_destroy(PyObject *self, PyObject *args){
- PyObject *lecp_obj;
-
- if (CheckArgs(args, "O:lecp_destroy")) {
- if(!PyArg_ParseTuple(args, (char *) "O:lecp_destroy",
- &lecp_obj))
- return NULL;
- }
- else return NULL;
-
- lasso_lecp_destroy(LassoLecp_get(lecp_obj));
-
- Py_INCREF(Py_None);
- return(Py_None);
-}
-
-PyObject *lecp_init_authn_request(PyObject *self, PyObject *args) {
- PyObject *lecp_obj;
- gint ret;
-
- if (CheckArgs(args, "O:lecp_init_authn_request")) {
- if(!PyArg_ParseTuple(args, (char *) "O:lecp_init_authn_request",
- &lecp_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_lecp_init_authn_request(LassoLecp_get(lecp_obj));
-
- return (int_wrap(ret));
-}
-
-PyObject *lecp_init_from_authn_request_msg(PyObject *self, PyObject *args) {
- PyObject *lecp_obj;
- gchar *authn_request_msg;
- lassoHttpMethod authn_request_method;
- gint ret;
-
- if (CheckArgs(args, "OSI:lecp_init_from_authn_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Osi:lecp_init_from_authn_request_msg",
- &lecp_obj, &authn_request_msg, &authn_request_method))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_lecp_init_from_authn_request_msg(LassoLecp_get(lecp_obj),
- authn_request_msg,
- authn_request_method);
-
- return (int_wrap(ret));
-}
-
-PyObject *lecp_process_authn_request_envelope_msg(PyObject *self, PyObject *args) {
- PyObject *lecp_obj;
- gchar *remote_providerID;
- gint ret;
-
- if (CheckArgs(args, "OS:lecp_process_authn_request_envelope_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:lecp_process_authn_request_envelope_msg",
- &lecp_obj, &remote_providerID))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_lecp_process_authn_request_envelope_msg(LassoLecp_get(lecp_obj),
- remote_providerID);
-
- return (int_wrap(ret));
-}
-
-PyObject *lecp_process_authn_response_envelope_msg(PyObject *self, PyObject *args) {
- PyObject *lecp_obj;
- gchar *remote_providerID;
- gint ret;
-
- if (CheckArgs(args, "OS:lecp_process_authn_response_envelope_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:lecp_process_authn_response_envelope_msg",
- &lecp_obj, &remote_providerID))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_lecp_process_authn_response_envelope_msg(LassoLecp_get(lecp_obj),
- remote_providerID);
-
- return (int_wrap(ret));
-}
diff --git a/python/environs/py_lecp.h b/python/environs/py_lecp.h
deleted file mode 100644
index a24f1ea0..00000000
--- a/python/environs/py_lecp.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __PYLASSO_PY_LECP_H__
-#define __PYLASSO_PY_LECP_H__
-
-#include <lasso/environs/lecp.h>
-
-typedef struct {
- PyObject_HEAD
- LassoLecp *obj;
-} LassoLecp_object;
-
-#define LassoLecp_get(v) (((v) == Py_None) ? NULL : (((LassoLecp_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
-PyObject *LassoLecp_wrap(LassoLecp *lecp);
-
-PyObject *lecp_getattr(PyObject *self, PyObject *args);
-PyObject *lecp_new(PyObject *self, PyObject *args);
-
-PyObject *lecp_build_authn_request_envelope_msg(PyObject *self, PyObject *args);
-PyObject *lecp_build_authn_request_msg(PyObject *self, PyObject *args);
-PyObject *lecp_build_authn_response_msg(PyObject *self, PyObject *args);
-PyObject *lecp_build_authn_response_envelope_msg(PyObject *self, PyObject *args);
-PyObject *lecp_destroy(PyObject *self, PyObject *args);
-PyObject *lecp_init_authn_request(PyObject *self, PyObject *args);
-PyObject *lecp_init_from_authn_request_msg(PyObject *self, PyObject *args);
-PyObject *lecp_process_authn_request_envelope_msg(PyObject *self, PyObject *args);
-PyObject *lecp_process_authn_response_envelope_msg(PyObject *self, PyObject *args);
-
-#endif /* __PYLASSO_PY_LECP_H__ */
diff --git a/python/environs/py_login.c b/python/environs/py_login.c
deleted file mode 100644
index 5e4bee0c..00000000
--- a/python/environs/py_login.c
+++ /dev/null
@@ -1,368 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "../lassomod.h"
-#include "../xml/py_xml.h"
-
-#include "py_login.h"
-
-PyObject *LassoLogin_wrap(LassoLogin *login) {
- PyObject *ret;
-
- if (login == NULL) {
- Py_INCREF(Py_None);
- return (Py_None);
- }
- ret = PyCObject_FromVoidPtrAndDesc((void *) login,
- (char *) "LassoLogin *", NULL);
- return (ret);
-}
-
-/******************************************************************************/
-
-PyObject *login_getattr(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- LassoLogin *login;
- const char *attr;
-
- if (CheckArgs(args, "OS:login_get_attr")) {
- if (!PyArg_ParseTuple(args, "Os:login_get_attr", &login_obj, &attr))
- return NULL;
- }
- else return NULL;
-
- login = LassoLogin_get(login_obj);
-
- if (!strcmp(attr, "__members__"))
- return Py_BuildValue("[ssssssssss]", "request", "response",
- "request_type", "response_type", "nameIdentifier",
- "provider_type",
- "msg_url", "msg_body", "msg_relayState", "response_dump",
- "protocolProfile", "assertionArtifact");
- if (!strcmp(attr, "request"))
- return (LassoNode_wrap(LASSO_PROFILE(login)->request));
- if (!strcmp(attr, "response"))
- return (LassoNode_wrap(LASSO_PROFILE(login)->response));
- if (!strcmp(attr, "request_type"))
- return (int_wrap(LASSO_PROFILE(login)->request_type));
- if (!strcmp(attr, "response_type"))
- return (int_wrap(LASSO_PROFILE(login)->response_type));
- if (!strcmp(attr, "nameIdentifier"))
- return (charPtrConst_wrap(LASSO_PROFILE(login)->nameIdentifier));
- if (!strcmp(attr, "provider_type"))
- return (int_wrap(LASSO_PROFILE(login)->provider_type));
- if (!strcmp(attr, "msg_url"))
- return (charPtrConst_wrap(LASSO_PROFILE(login)->msg_url));
- if (!strcmp(attr, "msg_body"))
- return (charPtrConst_wrap(LASSO_PROFILE(login)->msg_body));
- if (!strcmp(attr, "msg_relayState"))
- return (charPtrConst_wrap(LASSO_PROFILE(login)->msg_relayState));
- if (!strcmp(attr, "response_dump"))
- return (charPtrConst_wrap(login->response_dump));
- if (!strcmp(attr, "protocolProfile"))
- return (int_wrap(login->protocolProfile));
- if (!strcmp(attr, "assertionArtifact"))
- return (charPtrConst_wrap(login->assertionArtifact));
-
- Py_INCREF(Py_None);
- return (Py_None);
-}
-
-/******************************************************************************/
-
-PyObject *login_new(PyObject *self, PyObject *args) {
- PyObject *server_obj;
- LassoLogin *login;
-
- if (CheckArgs(args, "O:login_new")) {
- if(!PyArg_ParseTuple(args, (char *) "O:login_new", &server_obj))
- return NULL;
- }
- else return NULL;
-
- login = lasso_login_new(LassoServer_get(server_obj));
-
- return (LassoLogin_wrap(login));
-}
-
-PyObject *login_new_from_dump(PyObject *self, PyObject *args) {
- PyObject *server_obj;
- LassoLogin *login;
- LassoServer *server;
- gchar *dump;
-
- if (CheckArgs(args, "OS:login_new_from_dump")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:login_new_from_dump", &server_obj,
- &dump))
- return NULL;
- }
- else return NULL;
-
- server = LassoServer_get(server_obj);
- login = lasso_login_new_from_dump(server, dump);
-
- return (LassoLogin_wrap(login));
-}
-
-PyObject *login_build_artifact_msg(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gint authentication_result;
- const gchar *authenticationMethod;
- const gchar *reauthenticateOnOrAfter;
- lassoHttpMethod method;
- gint ret;
-
- if (CheckArgs(args, "OISSI:login_build_artifact_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Oissi:login_build_artifact_msg",
- &login_obj, &authentication_result,
- &authenticationMethod, &reauthenticateOnOrAfter,
- &method))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_build_artifact_msg(LassoLogin_get(login_obj),
- authentication_result,
- authenticationMethod,
- reauthenticateOnOrAfter,
- method);
-
- return (int_wrap(ret));
-}
-
-PyObject *login_build_authn_request_msg(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gchar *remote_providerID;
- gint ret;
-
- if (CheckArgs(args, "OS:login_build_authn_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:login_build_authn_request_msg",
- &login_obj, &remote_providerID))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_build_authn_request_msg(LassoLogin_get(login_obj),
- remote_providerID);
-
- return (int_wrap(ret));
-}
-
-PyObject *login_build_authn_response_msg(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gint authentication_result;
- const gchar *authenticationMethod;
- const gchar *reauthenticateOnOrAfter;
- gint ret;
-
- if (CheckArgs(args, "OISS:login_build_artifact_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Oiss:login_build_artifact_msg",
- &login_obj, &authentication_result,
- &authenticationMethod, &reauthenticateOnOrAfter))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_build_authn_response_msg(LassoLogin_get(login_obj),
- authentication_result,
- authenticationMethod,
- reauthenticateOnOrAfter);
-
- return (int_wrap(ret));
-}
-
-PyObject *login_build_request_msg(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gint ret;
-
- if (CheckArgs(args, "O:login_build_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "O:login_build_request_msg",
- &login_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_build_request_msg(LassoLogin_get(login_obj));
-
- return (int_wrap(ret));
-}
-
-PyObject *login_accept_sso(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gint ret;
-
- if (CheckArgs(args, "O:login_accept_sso")) {
- if(!PyArg_ParseTuple(args, (char *) "O:login_accept_sso",
- &login_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_accept_sso(LassoLogin_get(login_obj));
-
- return (int_wrap(ret));
-}
-
-PyObject *login_dump(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gchar *ret;
-
- if (CheckArgs(args, "O:login_dump")) {
- if(!PyArg_ParseTuple(args, (char *) "O:login_dump",
- &login_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_dump(LassoLogin_get(login_obj));
-
- return (charPtr_wrap(ret));
-}
-
-PyObject *login_init_authn_request(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gint ret;
-
- if (CheckArgs(args, "O:login_init_authn_request")) {
- if(!PyArg_ParseTuple(args, (char *) "O:login_init_authn_request",
- &login_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_init_authn_request(LassoLogin_get(login_obj));
-
- return (int_wrap(ret));
-}
-
-PyObject *login_init_from_authn_request_msg(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gchar *authn_request_msg;
- lassoHttpMethod authn_request_method;
- gint ret;
-
- if (CheckArgs(args, "OSI:login_init_from_authn_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Osi:login_init_from_authn_request_msg",
- &login_obj, &authn_request_msg, &authn_request_method))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_init_from_authn_request_msg(LassoLogin_get(login_obj),
- authn_request_msg,
- authn_request_method);
-
- return (int_wrap(ret));
-}
-
-PyObject *login_init_request(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gchar *response_msg;
- lassoHttpMethod response_method;
- gint ret;
-
- if (CheckArgs(args, "OSI:login_init_request")) {
- if(!PyArg_ParseTuple(args, (char *) "Osi:login_init_request",
- &login_obj, &response_msg, &response_method))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_init_request(LassoLogin_get(login_obj),
- response_msg,
- response_method);
-
- return (int_wrap(ret));
-}
-
-PyObject *login_must_authenticate(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gboolean ret;
-
- if (CheckArgs(args, "O:login_must_authenticate")) {
- if(!PyArg_ParseTuple(args, (char *) "O:login_must_authenticate",
- &login_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_must_authenticate(LassoLogin_get(login_obj));
-
- return (int_wrap(ret));
-}
-
-PyObject *login_process_authn_response_msg(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gchar *authn_response_msg;
- gboolean ret;
-
- if (CheckArgs(args, "OS:login_process_authn_response_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:login_process_authn_response_msg",
- &login_obj, &authn_response_msg))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_process_authn_response_msg(LassoLogin_get(login_obj),
- authn_response_msg);
-
- return (int_wrap(ret));
-}
-
-PyObject *login_process_request_msg(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gchar *request_msg;
- gboolean ret;
-
- if (CheckArgs(args, "OS:login_process_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:login_process_request_msg",
- &login_obj, &request_msg))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_process_request_msg(LassoLogin_get(login_obj),
- request_msg);
-
- return (int_wrap(ret));
-}
-
-PyObject *login_process_response_msg(PyObject *self, PyObject *args) {
- PyObject *login_obj;
- gchar *response_msg;
- gboolean ret;
-
- if (CheckArgs(args, "OS:login_process_response_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:login_process_response_msg",
- &login_obj, &response_msg))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_login_process_response_msg(LassoLogin_get(login_obj),
- response_msg);
-
- return (int_wrap(ret));
-}
diff --git a/python/environs/py_login.h b/python/environs/py_login.h
deleted file mode 100644
index 650ed7cc..00000000
--- a/python/environs/py_login.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __PYLASSO_PY_LOGIN_H__
-#define __PYLASSO_PY_LOGIN_H__
-
-#include <lasso/environs/login.h>
-
-#include "py_server.h"
-#include "py_identity.h"
-#include "py_session.h"
-
-typedef struct {
- PyObject_HEAD
- LassoLogin *obj;
-} LassoLogin_object;
-
-#define LassoLogin_get(v) (((v) == Py_None) ? NULL : (((LassoLogin_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
-PyObject *LassoLogin_wrap(LassoLogin *login);
-
-PyObject *login_getattr(PyObject *self, PyObject *args);
-PyObject *login_new(PyObject *self, PyObject *args);
-PyObject *login_new_from_dump(PyObject *self, PyObject *args);
-PyObject *login_accept_sso(PyObject *self, PyObject *args);
-PyObject *login_build_artifact_msg(PyObject *self, PyObject *args);
-PyObject *login_build_authn_request_msg(PyObject *self, PyObject *args);
-PyObject *login_build_authn_response_msg(PyObject *self, PyObject *args);
-PyObject *login_build_request_msg(PyObject *self, PyObject *args);
-PyObject *login_dump(PyObject *self, PyObject *args);
-PyObject *login_init_authn_request(PyObject *self, PyObject *args);
-PyObject *login_init_from_authn_request_msg(PyObject *self, PyObject *args);
-PyObject *login_init_request(PyObject *self, PyObject *args);
-PyObject *login_must_authenticate(PyObject *self, PyObject *args);
-PyObject *login_process_authn_response_msg(PyObject *self, PyObject *args);
-PyObject *login_process_request_msg(PyObject *self, PyObject *args);
-PyObject *login_process_response_msg(PyObject *self, PyObject *args);
-
-#endif /* __PYLASSO_PY_LOGIN_H__ */
diff --git a/python/environs/py_logout.c b/python/environs/py_logout.c
deleted file mode 100644
index 66b41c14..00000000
--- a/python/environs/py_logout.c
+++ /dev/null
@@ -1,227 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "../lassomod.h"
-
-#include "../xml/py_xml.h"
-
-#include "py_logout.h"
-
-PyObject *LassoLogout_wrap(LassoLogout *logout) {
- PyObject *ret;
-
- if (logout == NULL) {
- Py_INCREF(Py_None);
- return (Py_None);
- }
- ret = PyCObject_FromVoidPtrAndDesc((void *) logout,
- (char *) "LassoLogout *", NULL);
- return (ret);
-}
-
-/******************************************************************************/
-
-PyObject *logout_getattr(PyObject *self, PyObject *args) {
- PyObject *logout_obj;
- LassoLogout *logout;
- const char *attr;
-
- if (CheckArgs(args, "OS:logout_get_attr")) {
- if (!PyArg_ParseTuple(args, "Os:logout_get_attr", &logout_obj, &attr))
- return NULL;
- }
- else return NULL;
-
- logout = LassoLogout_get(logout_obj);
-
- if (!strcmp(attr, "__members__"))
- return Py_BuildValue("[ssssss]", "request", "response", "nameIdentifier",
- "msg_url", "msg_body", "msg_relayState");
- if (!strcmp(attr, "request"))
- return (LassoNode_wrap(LASSO_PROFILE(logout)->request));
- if (!strcmp(attr, "response"))
- return (LassoNode_wrap(LASSO_PROFILE(logout)->response));
- if (!strcmp(attr, "nameIdentifier"))
- return (charPtrConst_wrap(LASSO_PROFILE(logout)->nameIdentifier));
- if (!strcmp(attr, "msg_url"))
- return (charPtrConst_wrap(LASSO_PROFILE(logout)->msg_url));
- if (!strcmp(attr, "msg_body"))
- return (charPtrConst_wrap(LASSO_PROFILE(logout)->msg_body));
- if (!strcmp(attr, "msg_relayState"))
- return (charPtrConst_wrap(LASSO_PROFILE(logout)->msg_relayState));
-
- Py_INCREF(Py_None);
- return (Py_None);
-}
-
-
-PyObject *logout_new(PyObject *self, PyObject *args) {
- gint provider_type;
- PyObject *server_obj;
- LassoLogout *logout;
-
- if (CheckArgs(args, "OI:logout_new")) {
- if(!PyArg_ParseTuple(args, (char *) "Oi:logout_new",
- &server_obj, &provider_type))
- return NULL;
- }
- else return NULL;
-
- logout = lasso_logout_new(LassoServer_get(server_obj), provider_type);
-
- return (LassoLogout_wrap(logout));
-}
-
-PyObject *logout_build_request_msg(PyObject *self, PyObject *args) {
- PyObject *logout_obj;
- gint codeError;
-
- if (CheckArgs(args, "O:logout_build_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "O:logout_build_request_msg",
- &logout_obj))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_logout_build_request_msg(LassoLogout_get(logout_obj));
-
- return(int_wrap(codeError));
-}
-
-PyObject *logout_build_response_msg(PyObject *self, PyObject *args) {
- PyObject *logout_obj;
- gint codeError;
-
- if (CheckArgs(args, "O:logout_build_response_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "O:logout_build_response_msg",
- &logout_obj))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_logout_build_response_msg(LassoLogout_get(logout_obj));
-
- return(int_wrap(codeError));
-}
-
-PyObject *logout_destroy(PyObject *self, PyObject *args){
- PyObject *logout_obj;
-
- if (CheckArgs(args, "O:logout_destroy")) {
- if(!PyArg_ParseTuple(args, (char *) "O:logout_destroy",
- &logout_obj))
- return NULL;
- }
- else return NULL;
-
- lasso_logout_destroy(LassoLogout_get(logout_obj));
-
- Py_INCREF(Py_None);
- return(Py_None);
-}
-
-PyObject *logout_get_next_providerID(PyObject *self, PyObject *args) {
- PyObject *logout_obj;
- gchar *remote_providerID;
-
- if (CheckArgs(args, "O:logout_get_next_providerID")) {
- if(!PyArg_ParseTuple(args, (char *) "O:logout_get_next_providerID", &logout_obj))
- return NULL;
- }
- else return NULL;
-
- remote_providerID = lasso_logout_get_next_providerID(LassoLogout_get(logout_obj));
-
- return (charPtr_wrap(remote_providerID));
-}
-
-PyObject *logout_init_request(PyObject *self, PyObject *args) {
- PyObject *logout_obj;
- gchar *remote_providerID;
- gint codeError;
-
- if (CheckArgs(args, "Os:logout_init_request")) {
- if(!PyArg_ParseTuple(args, (char *) "Oz:logout_init_request",
- &logout_obj, &remote_providerID))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_logout_init_request(LassoLogout_get(logout_obj), remote_providerID);
-
- return(int_wrap(codeError));
-}
-
-PyObject *logout_process_request_msg(PyObject *self, PyObject *args){
- PyObject *logout_obj;
- gchar *request_msg;
- gint request_method;
- gint codeError;
-
- if (CheckArgs(args, "OSI:logout_process_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Osi:logout_process_request_msg",
- &logout_obj, &request_msg, &request_method))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_logout_process_request_msg(LassoLogout_get(logout_obj), request_msg, request_method);
-
- return(int_wrap(codeError));
-}
-
-PyObject *logout_validate_request(PyObject *self, PyObject *args) {
- PyObject *logout_obj;
- gint codeError;
-
- if (CheckArgs(args, "O:logout_validate_request")) {
- if(!PyArg_ParseTuple(args, (char *) "O:logout_validate_request",
- &logout_obj))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_logout_validate_request(LassoLogout_get(logout_obj));
-
- return(int_wrap(codeError));
-}
-
-PyObject *logout_process_response_msg(PyObject *self, PyObject *args) {
- PyObject *logout_obj;
- gchar *response_msg;
- gint response_method;
- gint codeError;
-
- if (CheckArgs(args, "OSI:logout_process_response_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Osi:logout_process_response_msg",
- &logout_obj, &response_msg, &response_method))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_logout_process_response_msg(LassoLogout_get(logout_obj), response_msg, response_method);
-
- return(int_wrap(codeError));
-}
diff --git a/python/environs/py_logout.h b/python/environs/py_logout.h
deleted file mode 100644
index 5f8501f1..00000000
--- a/python/environs/py_logout.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __PYLASSO_PY_LOGOUT_H__
-#define __PYLASSO_PY_LOGOUT_H__
-
-#include <lasso/environs/logout.h>
-
-#include "py_server.h"
-#include "py_identity.h"
-
-typedef struct {
- PyObject_HEAD
- LassoLogout *obj;
-} LassoLogout_object;
-
-#define LassoLogout_get(v) (((v) == Py_None) ? NULL : (((LassoLogout_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
-PyObject *LassoLogout_wrap(LassoLogout *logout);
-
-PyObject *logout_getattr(PyObject *self, PyObject *args);
-
-PyObject *logout_build_request_msg(PyObject *self, PyObject *args);
-PyObject *logout_build_response_msg(PyObject *self, PyObject *args);
-PyObject *logout_destroy(PyObject *self, PyObject *args);
-PyObject *logout_get_next_providerID(PyObject *self, PyObject *args);
-PyObject *logout_init_request(PyObject *self, PyObject *args);
-PyObject *logout_process_request_msg(PyObject *self, PyObject *args);
-PyObject *logout_new(PyObject *self, PyObject *args);
-PyObject *logout_validate_request(PyObject *self, PyObject *args);
-PyObject *logout_process_response_msg(PyObject *self, PyObject *args);
-
-#endif /* __PYLASSO_PY_LOGOUT_H__ */
diff --git a/python/environs/py_profile.c b/python/environs/py_profile.c
deleted file mode 100644
index 3e0bbe98..00000000
--- a/python/environs/py_profile.c
+++ /dev/null
@@ -1,221 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "../lassomod.h"
-#include "py_profile.h"
-#include "py_identity.h"
-#include "py_session.h"
-#include "py_server.h"
-
-PyObject *LassoProfile_wrap(LassoProfile *ctx) {
- PyObject *ret;
-
- if (ctx == NULL) {
- Py_INCREF(Py_None);
- return (Py_None);
- }
- ret = PyCObject_FromVoidPtrAndDesc((void *) ctx,
- (char *) "LassoProfile *", NULL);
- return (ret);
-}
-
-/******************************************************************************/
-
-PyObject *profile_get_request_type_from_soap_msg(PyObject *self, PyObject *args) {
- gchar *soap_buffer;
- gint type;
-
- if (CheckArgs(args, "S:profile_get_request_type_from_soap_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "s:profile_get_request_type_from_soap_msg",
- &soap_buffer))
- return NULL;
- }
- else return NULL;
-
- type = lasso_profile_get_request_type_from_soap_msg(soap_buffer);
-
- return(int_wrap(type));
-}
-
-/******************************************************************************/
-
-PyObject *profile_new(PyObject *self, PyObject *args) {
- PyObject *server_obj, *identity_obj, *session_obj;
- LassoProfile *ctx;
- LassoIdentity *identity = NULL;
- LassoSession *session = NULL;
-
- if (CheckArgs(args, "Ooo:profile_new")) {
- if(!PyArg_ParseTuple(args, (char *) "O|OO:profile_new",
- &server_obj, &identity_obj, &session_obj))
- return NULL;
- }
- else return NULL;
-
- if (identity_obj != Py_None) {
- identity = LassoIdentity_get(identity_obj);
- }
- if (session_obj != Py_None) {
- session = LassoSession_get(session_obj);
- }
- ctx = lasso_profile_new(LassoServer_get(server_obj),
- identity, session);
-
- return (LassoProfile_wrap(ctx));
-}
-
-PyObject *profile_get_identity(PyObject *self, PyObject *args) {
- PyObject *ctx_obj;
- LassoIdentity *identity;
-
- if (CheckArgs(args, "O:profile_get_identity")) {
- if(!PyArg_ParseTuple(args, (char *) "O:profile_get_identity",
- &ctx_obj))
- return NULL;
- }
- else return NULL;
-
- identity = lasso_profile_get_identity(LassoProfile_get(ctx_obj));
-
- return(LassoIdentity_wrap(identity));
-}
-
-PyObject *profile_get_session(PyObject *self, PyObject *args) {
- PyObject *ctx_obj;
- LassoSession *session;
-
- if (CheckArgs(args, "O:profile_get_session")) {
- if(!PyArg_ParseTuple(args, (char *) "O:profile_get_session",
- &ctx_obj))
- return NULL;
- }
- else return NULL;
-
- session = lasso_profile_get_session(LassoProfile_get(ctx_obj));
-
- return(LassoSession_wrap(session));
-}
-
-PyObject *profile_is_identity_dirty(PyObject *self, PyObject *args) {
- PyObject *ctx_obj;
- int ret;
-
- if (CheckArgs(args, "O:profile_is_identity_dirty")) {
- if(!PyArg_ParseTuple(args, (char *) "O:profile_is_identity_dirty",
- &ctx_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_profile_is_identity_dirty(LassoProfile_get(ctx_obj));
-
- return(int_wrap(ret));
-}
-
-PyObject *profile_is_session_dirty(PyObject *self, PyObject *args) {
- PyObject *ctx_obj;
- int ret;
-
- if (CheckArgs(args, "O:profile_is_session_dirty")) {
- if(!PyArg_ParseTuple(args, (char *) "O:profile_is_session_dirty",
- &ctx_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_profile_is_session_dirty(LassoProfile_get(ctx_obj));
-
- return(int_wrap(ret));
-}
-
-PyObject *profile_set_identity(PyObject *self, PyObject *args) {
- PyObject *ctx_obj, *identity_obj;
- gint ret;
-
- if (CheckArgs(args, "OO:profile_set_identity")) {
- if(!PyArg_ParseTuple(args, (char *) "OO:profile_set_identity",
- &ctx_obj, &identity_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_profile_set_identity(LassoProfile_get(ctx_obj),
- LassoIdentity_get(identity_obj));
-
- return(int_wrap(ret));
-}
-
-PyObject *profile_set_identity_from_dump(PyObject *self, PyObject *args) {
- PyObject *ctx_obj;
- gchar *dump;
- gint ret;
-
- if (CheckArgs(args, "OS:profile_set_identity_from_dump")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:profile_set_identity_from_dump",
- &ctx_obj, &dump))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_profile_set_identity_from_dump(LassoProfile_get(ctx_obj),
- dump);
-
- return(int_wrap(ret));
-}
-
-PyObject *profile_set_session(PyObject *self, PyObject *args) {
- PyObject *ctx_obj, *session_obj;
- gint ret;
-
- if (CheckArgs(args, "OO:profile_set_session")) {
- if(!PyArg_ParseTuple(args, (char *) "OO:profile_set_session",
- &ctx_obj, &session_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_profile_set_session(LassoProfile_get(ctx_obj),
- LassoSession_get(session_obj));
-
- return(int_wrap(ret));
-}
-
-PyObject *profile_set_session_from_dump(PyObject *self, PyObject *args) {
- PyObject *ctx_obj;
- gchar *dump;
- gint ret;
-
- if (CheckArgs(args, "OS:profile_set_session_from_dump")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:profile_set_session_from_dump",
- &ctx_obj, &dump))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_profile_set_session_from_dump(LassoProfile_get(ctx_obj),
- dump);
-
- return(int_wrap(ret));
-}
diff --git a/python/environs/py_profile.h b/python/environs/py_profile.h
deleted file mode 100644
index 98f7e767..00000000
--- a/python/environs/py_profile.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.labs.libre-entreprise.org
- *
- * 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __PYLASSO_PY_PROFILE_H__
-#define __PYLASSO_PY_PROFILE_H__
-
-#include <lasso/environs/profile.h>
-
-typedef struct {
- PyObject_HEAD
- LassoProfile *obj;
-} LassoProfile_object;
-
-#define LassoProfile_get(v) (((v) == Py_None) ? NULL : (((LassoProfile_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
-PyObject *LassoProfile_wrap(LassoProfile *ctx);
-
-PyObject *profile_get_request_type_from_soap_msg(PyObject *self, PyObject *args);
-
-PyObject *profile_new(PyObject *self, PyObject *args);
-PyObject *profile_get_identity(PyObject *self, PyObject *args);
-PyObject *profile_get_session(PyObject *self, PyObject *args);
-PyObject *profile_is_identity_dirty(PyObject *self, PyObject *args);
-PyObject *profile_is_session_dirty(PyObject *self, PyObject *args);
-PyObject *profile_set_identity(PyObject *self, PyObject *args);
-PyObject *profile_set_identity_from_dump(PyObject *self, PyObject *args);
-PyObject *profile_set_session(PyObject *self, PyObject *args);
-PyObject *profile_set_session_from_dump(PyObject *self, PyObject *args);
-
-#endif /* __PYLASSO_PY_PROFILE_H__ */
-
-
diff --git a/python/environs/py_register_name_identifier.c b/python/environs/py_register_name_identifier.c
deleted file mode 100644
index 298c95f4..00000000
--- a/python/environs/py_register_name_identifier.c
+++ /dev/null
@@ -1,195 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "../lassomod.h"
-
-#include "py_register_name_identifier.h"
-
-PyObject *LassoRegisterNameIdentifier_wrap(LassoRegisterNameIdentifier *register_name_identifier) {
- PyObject *ret;
-
- if (register_name_identifier == NULL) {
- Py_INCREF(Py_None);
- return (Py_None);
- }
- ret = PyCObject_FromVoidPtrAndDesc((void *) register_name_identifier,
- (char *) "LassoRegisterNameIdentifier *", NULL);
- return (ret);
-}
-
-/******************************************************************************/
-
-PyObject *register_name_identifier_getattr(PyObject *self, PyObject *args) {
- PyObject *register_name_identifier_obj;
- LassoRegisterNameIdentifier *register_name_identifier;
- const char *attr;
-
- if (CheckArgs(args, "OS:register_name_identifier_get_attr")) {
- if (!PyArg_ParseTuple(args, "Os:register_name_identifier_get_attr", &register_name_identifier_obj, &attr))
- return NULL;
- }
- else return NULL;
-
- register_name_identifier = LassoRegisterNameIdentifier_get(register_name_identifier_obj);
-
- if (!strcmp(attr, "__members__"))
- return Py_BuildValue("[ssss]", "identity", "msg_url", "msg_body",
- "msg_relayState");
- if (!strcmp(attr, "identity"))
- return (LassoIdentity_wrap(LASSO_PROFILE(register_name_identifier)->identity));
- if (!strcmp(attr, "msg_url"))
- return (charPtrConst_wrap(LASSO_PROFILE(register_name_identifier)->msg_url));
- if (!strcmp(attr, "msg_body"))
- return (charPtrConst_wrap(LASSO_PROFILE(register_name_identifier)->msg_body));
- if (!strcmp(attr, "msg_relayState"))
- return (charPtrConst_wrap(LASSO_PROFILE(register_name_identifier)->msg_relayState));
-
- Py_INCREF(Py_None);
- return (Py_None);
-}
-
-PyObject *register_name_identifier_new(PyObject *self, PyObject *args) {
- PyObject *server_obj;
- LassoRegisterNameIdentifier *register_name_identifier;
- gint provider_type;
-
- if (CheckArgs(args, "OI:register_name_identifier_new")) {
- if(!PyArg_ParseTuple(args, (char *) "Oi:register_name_identifier_new",
- &server_obj, &provider_type))
- return NULL;
- }
- else return NULL;
-
- register_name_identifier = lasso_register_name_identifier_new(LassoServer_get(server_obj),
- provider_type);
-
- return (LassoRegisterNameIdentifier_wrap(register_name_identifier));
-}
-
-
-PyObject *register_name_identifier_build_request_msg(PyObject *self, PyObject *args) {
- PyObject *register_name_identifier_obj;
- gint codeError;
-
- if (CheckArgs(args, "O:register_name_identifier_build_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "O:register_name_identifier_build_request_msg",
- &register_name_identifier_obj))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_register_name_identifier_build_request_msg(LassoRegisterNameIdentifier_get(register_name_identifier_obj));
-
- return(int_wrap(codeError));
-}
-
-PyObject *register_name_identifier_build_response_msg(PyObject *self, PyObject *args) {
- PyObject *register_name_identifier_obj;
- gint codeError;
-
- if (CheckArgs(args, "O:register_name_identifier_build_response_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "O:register_name_identifier_build_response_msg",
- &register_name_identifier_obj))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_register_name_identifier_build_response_msg(LassoRegisterNameIdentifier_get(register_name_identifier_obj));
-
- return(int_wrap(codeError));
-}
-
-PyObject *register_name_identifier_destroy(PyObject *self, PyObject *args){
- PyObject *register_name_identifier_obj;
-
- if (CheckArgs(args, "O:register_name_identifier_destroy")) {
- if(!PyArg_ParseTuple(args, (char *) "O:register_name_identifier_destroy",
- &register_name_identifier_obj))
- return NULL;
- }
- else return NULL;
-
- lasso_register_name_identifier_destroy(LassoRegisterNameIdentifier_get(register_name_identifier_obj));
-
- Py_INCREF(Py_None);
- return(Py_None);
-}
-
-PyObject *register_name_identifier_init_request(PyObject *self, PyObject *args) {
- PyObject *register_name_identifier_obj;
- gchar *remote_providerID;
- gint codeError;
-
- if (CheckArgs(args, "OS:register_name_identifier_init_request")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:register_name_identifier_init_request",
- &register_name_identifier_obj, &remote_providerID))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_register_name_identifier_init_request(LassoRegisterNameIdentifier_get(register_name_identifier_obj),
- remote_providerID);
-
- return(int_wrap(codeError));
-}
-
-PyObject *register_name_identifier_process_request_msg(PyObject *self, PyObject *args) {
- PyObject *register_name_identifier_obj;
- gchar *request_msg;
- gint request_method;
- gint codeError;
-
- if (CheckArgs(args, "OS:register_name_identifier_process_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "OS:register_name_identifier_process_request_msg",
- &register_name_identifier_obj, &request_msg, &request_method))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_register_name_identifier_process_request_msg(LassoRegisterNameIdentifier_get(register_name_identifier_obj),
- request_msg,
- request_method);
-
- return(int_wrap(codeError));
-}
-
-PyObject *register_name_identifier_process_response_msg(PyObject *self, PyObject *args) {
- PyObject *register_name_identifier_obj;
- gchar *response_msg;
- gint response_method;
- gint codeError;
-
- if (CheckArgs(args, "OSI:register_name_identifier_process_response_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "Osi:register_name_identifier_process_response_msg",
- &register_name_identifier_obj, &response_msg, &response_method))
- return NULL;
- }
- else return NULL;
-
- codeError = lasso_register_name_identifier_process_response_msg(LassoRegisterNameIdentifier_get(register_name_identifier_obj),
- response_msg, response_method);
-
- return(int_wrap(codeError));
-}
diff --git a/python/environs/py_register_name_identifier.h b/python/environs/py_register_name_identifier.h
deleted file mode 100644
index ff250675..00000000
--- a/python/environs/py_register_name_identifier.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-
-#ifndef __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_H__
-#define __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_H__
-
-#include <lasso/environs/register_name_identifier.h>
-
-#include "py_server.h"
-#include "py_identity.h"
-
-typedef struct {
- PyObject_HEAD
- LassoRegisterNameIdentifier *obj;
-} LassoRegisterNameIdentifier_object;
-
-#define LassoRegisterNameIdentifier_get(v) (((v) == Py_None) ? NULL : (((LassoRegisterNameIdentifier_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
-PyObject *LassoRegisterNameIdentifier_wrap(LassoRegisterNameIdentifier *register_name_identifier);
-
-PyObject *register_name_identifier_getattr(PyObject *self, PyObject *args);
-
-PyObject *register_name_identifier_build_request_msg(PyObject *self, PyObject *args);
-PyObject *register_name_identifier_build_response_msg(PyObject *self, PyObject *args);
-PyObject *register_name_identifier_destroy(PyObject *self, PyObject *args);
-PyObject *register_name_identifier_init_request(PyObject *self, PyObject *args);
-PyObject *register_name_identifier_new(PyObject *self, PyObject *args);
-PyObject *register_name_identifier_process_request_msg(PyObject *self, PyObject *args);
-PyObject *register_name_identifier_process_response_msg(PyObject *self, PyObject *args);
-
-#endif /* __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_H__ */
diff --git a/python/environs/py_server.c b/python/environs/py_server.c
deleted file mode 100644
index a5128d5b..00000000
--- a/python/environs/py_server.c
+++ /dev/null
@@ -1,132 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "../lassomod.h"
-
-#include "py_server.h"
-
-PyObject *LassoServer_wrap(LassoServer *server) {
- PyObject *ret;
-
- if (server == NULL) {
- Py_INCREF(Py_None);
- return (Py_None);
- }
- ret = PyCObject_FromVoidPtrAndDesc((void *) server,
- (char *) "LassoServer *", NULL);
- return (ret);
-}
-
-/******************************************************************************/
-
-PyObject *server_new(PyObject *self, PyObject *args) {
- LassoServer *server;
- gchar *metadata;
- gchar *public_key = NULL;
- gchar *private_key = NULL;
- gchar *certificate = NULL;
- guint signature_method = 0;
-
- if (CheckArgs(args, "ssssi:server_new")) {
- if(!PyArg_ParseTuple(args, (char *) "zzzz|i:server_new",
- &metadata, &public_key, &private_key, &certificate,
- &signature_method))
- return NULL;
- }
- else return NULL;
-
- server = lasso_server_new(metadata, public_key, private_key,
- certificate, signature_method);
-
- return (LassoServer_wrap(LASSO_SERVER(server)));
-}
-
-PyObject *server_new_from_dump(PyObject *self, PyObject *args) {
- LassoServer *server;
- gchar *dump;
-
- if (CheckArgs(args, "S:server_new_from_dump")) {
- if(!PyArg_ParseTuple(args, (char *) "s:server_new_from_dump",
- &dump))
- return NULL;
- }
- else return NULL;
-
- server = lasso_server_new_from_dump(dump);
-
- return (LassoServer_wrap(LASSO_SERVER(server)));
-}
-
-PyObject *server_add_provider(PyObject *self, PyObject *args) {
- PyObject *server_obj;
- gchar *metadata;
- gchar *public_key = NULL;
- gchar *ca_certificate = NULL;
- gint ret;
-
- if (CheckArgs(args, "OSss:server_add_provider")) {
- if(!PyArg_ParseTuple(args, (char *) "Oszz:server_add_provider",
- &server_obj, &metadata, &public_key, &ca_certificate))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_server_add_provider(LassoServer_get(server_obj),
- metadata, public_key, ca_certificate);
-
- return (int_wrap(ret));
-}
-
-PyObject *server_destroy(PyObject *self, PyObject *args) {
- PyObject *server_obj;
-
- if (CheckArgs(args, "O:server_destroy")) {
- if(!PyArg_ParseTuple(args, (char *) "O:server_destroy",
- &server_obj))
- return NULL;
- }
- else return NULL;
-
- lasso_server_destroy(LassoServer_get(server_obj));
-
- Py_INCREF(Py_None);
- return (Py_None);
-}
-
-PyObject *server_dump(PyObject *self, PyObject *args) {
- PyObject *server_obj;
- gchar *ret;
-
- if (CheckArgs(args, "O:server_dump")) {
- if(!PyArg_ParseTuple(args, (char *) "O:server_dump",
- &server_obj))
- return NULL;
- }
- else return NULL;
-
- ret = lasso_server_dump(LassoServer_get(server_obj));
-
- return (charPtrConst_wrap(ret));
-}
diff --git a/python/environs/py_server.h b/python/environs/py_server.h
deleted file mode 100644
index 5a04a85d..00000000
--- a/python/environs/py_server.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __PYLASSO_PY_SERVER_H__
-#define __PYLASSO_PY_SERVER_H__
-
-#include <lasso/environs/server.h>
-
-typedef struct {
- PyObject_HEAD
- LassoServer *obj;
-} LassoServer_object;
-
-#define LassoServer_get(v) (((v) == Py_None) ? NULL : (((LassoServer_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
-PyObject *LassoServer_wrap(LassoServer *server);
-
-PyObject *server_new(PyObject *self, PyObject *args);
-PyObject *server_new_from_dump(PyObject *self, PyObject *args);
-PyObject *server_add_provider(PyObject *self, PyObject *args);
-PyObject *server_destroy(PyObject *self, PyObject *args);
-PyObject *server_dump(PyObject *self, PyObject *args);
-
-#endif /* __PYLASSO_PY_SERVER_H__ */
diff --git a/python/environs/py_session.c b/python/environs/py_session.c
deleted file mode 100644
index 1a7040db..00000000
--- a/python/environs/py_session.c
+++ /dev/null
@@ -1,210 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "../lassomod.h"
-
-#include "py_session.h"
-#include "../xml/py_xml.h"
-
-PyObject *LassoSession_wrap(LassoSession *session) {
- PyObject *ret;
-
- if (session == NULL) {
- Py_INCREF(Py_None);
- return (Py_None);
- }
- ret = PyCObject_FromVoidPtrAndDesc((void *) session,
- (char *) "LassoSession *", NULL);
- return (ret);
-}
-
-/******************************************************************************/
-
-PyObject *session_getattr(PyObject *self, PyObject *args) {
- PyObject *session_obj;
- LassoSession *session;
- const char *attr;
-
- if (CheckArgs(args, "OS:session_get_attr")) {
- if (!PyArg_ParseTuple(args, "Os:session_get_attr", &session_obj, &attr))
- return NULL;
- }
- else return NULL;
-
- session = LassoSession_get(session_obj);
-
- if (!strcmp(attr, "__members__")) {
- return Py_BuildValue("[ss]", "providerIDs", "is_dirty");
- }
- if (!strcmp(attr, "providerIDs")) {
- return (GPtrArray_wrap(session->providerIDs));
- }
- if (!strcmp(attr, "is_dirty")) {
- return (int_wrap(session->is_dirty));
- }
-
- Py_INCREF(Py_None);
- return (Py_None);
-}
-
-/******************************************************************************/
-
-PyObject *session_new(PyObject *self, PyObject *args) {
- return (LassoSession_wrap(lasso_session_new()));
-}
-
-PyObject *session_new_from_dump(PyObject *self, PyObject *args) {
- LassoSession *session;
- gchar *dump;
-
- if (CheckArgs(args, "S:session_new_from_dump")) {
- if(!PyArg_ParseTuple(args, (char *) "s:session_new_from_dump", &dump))
- return NULL;
- }
- else return NULL;
-
- session = lasso_session_new_from_dump(dump);
-
- return (LassoSession_wrap(session));
-}
-
-PyObject *session_add_assertion(PyObject *self, PyObject *args){
- PyObject *session_obj, *assertion_obj;
- gchar *remote_providerID;
-
- if (CheckArgs(args, "OSO:session_add_assertion")) {
- if(!PyArg_ParseTuple(args, (char *) "OsO:session_add_assertion", &session_obj,
- &remote_providerID, &assertion_obj))
- return NULL;
- }
- else return NULL;
-
- lasso_session_add_assertion(LassoSession_get(session_obj), remote_providerID,
- LassoNode_get(assertion_obj));
-
- Py_INCREF(Py_None);
- return (Py_None);
-}
-
-PyObject *session_destroy(PyObject *self, PyObject *args) {
- PyObject *session_obj;
-
- if (CheckArgs(args, "O:session_destroy")) {
- if(!PyArg_ParseTuple(args, (char *) "O:session_destroy",
- &session_obj))
- return NULL;
- }
- else return NULL;
-
- lasso_session_destroy(LassoSession_get(session_obj));
-
- Py_INCREF(Py_None);
- return (Py_None);
-}
-
-PyObject *session_dump(PyObject *self, PyObject *args) {
- PyObject *session_obj;
- gchar *dump;
-
- if (CheckArgs(args, "O:session_dump")) {
- if(!PyArg_ParseTuple(args, (char *) "O:session_dump", &session_obj))
- return NULL;
- }
- else return NULL;
-
- dump = lasso_session_dump(LassoSession_get(session_obj));
-
- return (charPtr_wrap(dump));
-}
-
-PyObject *session_get_assertion(PyObject *self, PyObject *args) {
- PyObject *session_obj;
- LassoNode *assertion_node;
- gchar *remote_providerID;
-
- if (CheckArgs(args, "OS:session_get_assertion")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:session_get_assertion", &session_obj,
- &remote_providerID))
- return NULL;
- }
- else return NULL;
-
- assertion_node = lasso_session_get_assertion(LassoSession_get(session_obj),
- remote_providerID);
-
- return (LassoNode_wrap(assertion_node));
-}
-
-PyObject *session_get_authentication_method(PyObject *self, PyObject *args) {
- PyObject *session_obj;
- gchar *remote_providerID;
- gchar *authentication_method;
-
- if (CheckArgs(args, "Os:session_get_authentication_method")) {
- if(!PyArg_ParseTuple(args, (char *) "Oz:session_get_authentication_method",
- &session_obj, &remote_providerID))
- return NULL;
- }
- else return NULL;
-
- authentication_method = lasso_session_get_authentication_method(LassoSession_get(session_obj),
- remote_providerID);
-
- return (charPtr_wrap(authentication_method));
-}
-
-PyObject *session_get_next_assertion_remote_providerID(PyObject *self, PyObject *args) {
- PyObject *session_obj;
- gchar *remote_providerID;
-
- if (CheckArgs(args, "O:session_get_next_assertion_remote_providerID")) {
- if(!PyArg_ParseTuple(args, (char *) "O:session_get_next_assertion_remote_providerID",
- &session_obj))
- return NULL;
- }
- else return NULL;
-
- remote_providerID = lasso_session_get_next_assertion_remote_providerID(LassoSession_get(session_obj));
-
- return (charPtr_wrap(remote_providerID));
-}
-
-PyObject *session_remove_assertion(PyObject *self, PyObject *args) {
- PyObject *session_obj;
- gchar *remote_providerID;
- int code;
-
- if (CheckArgs(args, "OS:session_remove_assertion")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:session_remove_assertion", &session_obj,
- &remote_providerID))
- return NULL;
- }
- else return NULL;
-
- code = lasso_session_remove_assertion(LassoSession_get(session_obj),
- remote_providerID);
-
- return (int_wrap(code));
-}
diff --git a/python/environs/py_session.h b/python/environs/py_session.h
deleted file mode 100644
index d383840a..00000000
--- a/python/environs/py_session.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/* $Id$
- *
- * PyLasso -- Python bindings for Lasso library
- *
- * Copyright (C) 2004 Entr'ouvert
- * http://lasso.entrouvert.org
- *
- * Authors: Nicolas Clapies <nclapies@entrouvert.com>
- * Valery Febvre <vfebvre@easter-eggs.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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __PYLASSO_PY_SESSION_H__
-#define __PYLASSO_PY_SESSION_H__
-
-#include <lasso/environs/session.h>
-
-typedef struct {
- PyObject_HEAD
- LassoSession *obj;
-} LassoSession_object;
-
-#define LassoSession_get(v) (((v) == Py_None) ? NULL : (((LassoSession_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj))
-PyObject *LassoSession_wrap(LassoSession *session);
-
-PyObject *session_getattr(PyObject *self, PyObject *args);
-PyObject *session_new(PyObject *self, PyObject *args);
-PyObject *session_new_from_dump(PyObject *self, PyObject *args);
-PyObject *session_add_assertion(PyObject *self, PyObject *args);
-PyObject *session_destroy(PyObject *self, PyObject *args);
-PyObject *session_dump(PyObject *self, PyObject *args);
-PyObject *session_get_assertion(PyObject *self, PyObject *args);
-PyObject *session_get_authentication_method(PyObject *self, PyObject *args);
-PyObject *session_get_next_assertion_remote_providerID(PyObject *self, PyObject *args);
-PyObject *session_remove_assertion(PyObject *self, PyObject *args);
-
-#endif /* __PYLASSO_PY_SESSION_H__ */