diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-20 00:37:48 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-20 00:37:48 +0000 |
| commit | 7db97fec73acebdff3c606f99c2ee7c8a5ae6d57 (patch) | |
| tree | 70187f4ff5d73db9dc02024bfaf9c19b6caac1cf /python/protocols | |
| parent | c4344d4b1b3d77f2ef7594c217c298661a27dd5e (diff) | |
| download | lasso-7db97fec73acebdff3c606f99c2ee7c8a5ae6d57.tar.gz lasso-7db97fec73acebdff3c606f99c2ee7c8a5ae6d57.tar.xz lasso-7db97fec73acebdff3c606f99c2ee7c8a5ae6d57.zip | |
Removed old Python binding.
Diffstat (limited to 'python/protocols')
26 files changed, 0 insertions, 1535 deletions
diff --git a/python/protocols/.cvsignore b/python/protocols/.cvsignore deleted file mode 100644 index 051d1bd5..00000000 --- a/python/protocols/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -Makefile -Makefile.in -.deps diff --git a/python/protocols/Makefile.am b/python/protocols/Makefile.am deleted file mode 100644 index 31542662..00000000 --- a/python/protocols/Makefile.am +++ /dev/null @@ -1,38 +0,0 @@ -SUBDIRS = elements - -INCLUDES = \ - -DPACKAGE=\"@PACKAGE@\" \ - -I$(top_srcdir) \ - -I$(top_srcdir)/lasso \ - $(LASSO_DEFINES) \ - $(LASSO_CFLAGS) \ - $(PY_CFLAGS) \ - $(NULL) - -PROTSOURCES = \ - py_authn_request.c \ - py_authn_response.c \ - py_federation_termination_notification.c \ - py_logout_request.c \ - py_logout_response.c \ - py_name_identifier_mapping_request.c \ - py_name_identifier_mapping_response.c \ - py_register_name_identifier_request.c \ - py_register_name_identifier_response.c - - -libprotocols_la_SOURCES = $(PROTSOURCES) -noinst_LTLIBRARIES = libprotocols.la - -EXTRA_DIST = \ - $(PROTSOURCES) \ - py_authn_request.h \ - py_authn_response.h \ - py_federation_termination_notification.h \ - py_logout_request.h \ - py_logout_response.h \ - py_name_identifier_mapping_request.h \ - py_name_identifier_mapping_response.h \ - py_register_name_identifier_request.h \ - py_register_name_identifier_response.h - diff --git a/python/protocols/elements/.cvsignore b/python/protocols/elements/.cvsignore deleted file mode 100644 index 09653e95..00000000 --- a/python/protocols/elements/.cvsignore +++ /dev/null @@ -1,4 +0,0 @@ -.deps -Makefile -Makefile.in - diff --git a/python/protocols/elements/Makefile.am b/python/protocols/elements/Makefile.am deleted file mode 100644 index 04d86529..00000000 --- a/python/protocols/elements/Makefile.am +++ /dev/null @@ -1,16 +0,0 @@ -ELEMSOURCES = py_assertion.c py_authentication_statement.c - -noinst_LTLIBRARIES = libelements.la -libelements_la_SOURCES = $(ELEMSOURCES) - -INCLUDES = \ - -DPACKAGE=\"@PACKAGE@\" \ - -I$(top_srcdir) \ - -I$(top_srcdir)/lasso \ - $(LASSO_DEFINES) \ - $(LASSO_CFLAGS) \ - $(PY_CFLAGS) \ - $(NULL) - - -EXTRA_DIST = $(ELEMSOURCES) py_assertion.h py_authentication_statement.h diff --git a/python/protocols/elements/py_assertion.c b/python/protocols/elements/py_assertion.c deleted file mode 100644 index 5249c404..00000000 --- a/python/protocols/elements/py_assertion.c +++ /dev/null @@ -1,59 +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_assertion.h" - -PyObject *LassoAssertion_wrap(LassoAssertion *assertion) { - PyObject *ret; - - if (assertion == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) assertion, - (char *) "LassoAssertion *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *assertion_new(PyObject *self, PyObject *args) { - const xmlChar *issuer; - xmlChar *requestID; - LassoNode *assertion; - - if (CheckArgs(args, "SS:assertion_new")) { - if(!PyArg_ParseTuple(args, (char *) "ss:assertion_new", - &issuer, &requestID)) - return NULL; - } - else return NULL; - - assertion = lasso_assertion_new(issuer, requestID); - - return (LassoAssertion_wrap(LASSO_ASSERTION(assertion))); -} diff --git a/python/protocols/elements/py_assertion.h b/python/protocols/elements/py_assertion.h deleted file mode 100644 index a772bcf6..00000000 --- a/python/protocols/elements/py_assertion.h +++ /dev/null @@ -1,41 +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_ASSERTION_H__ -#define __PYLASSO_PY_ASSERTION_H__ - -#include <lasso/protocols/elements/assertion.h> - -typedef struct { - PyObject_HEAD - LassoAssertion *obj; -} LassoAssertion_object; - -#define LassoAssertion_get(v) (((v) == Py_None) ? NULL : (((LassoAssertion_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoAssertion_wrap(LassoAssertion *assertion); - -PyObject *assertion_new(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_ASSERTION_H__ */ diff --git a/python/protocols/elements/py_authentication_statement.c b/python/protocols/elements/py_authentication_statement.c deleted file mode 100644 index 41b63a61..00000000 --- a/python/protocols/elements/py_authentication_statement.c +++ /dev/null @@ -1,71 +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_saml_name_identifier.h" -#include "py_authentication_statement.h" - -PyObject *LassoAuthenticationStatement_wrap(LassoAuthenticationStatement *statement) { - PyObject *ret; - - if (statement == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) statement, - (char *) "LassoAuthenticationStatement *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *authentication_statement_new(PyObject *self, PyObject *args) { - PyObject *identifier_obj, *idp_identifier_obj; - const xmlChar *authenticationMethod; - const xmlChar *reauthenticateOnOrAfter; - LassoSamlNameIdentifier *identifier=NULL, *idp_identifier; - LassoNode *statement; - - if (CheckArgs(args, "SSoO:authentication_statement_new")) { - if(!PyArg_ParseTuple(args, (char *) "ssOO:authentication_statement_new", - &authenticationMethod, &reauthenticateOnOrAfter, - &identifier_obj, &idp_identifier_obj)) - return NULL; - } - else return NULL; - - if (identifier_obj != Py_None) { - identifier = LassoSamlNameIdentifier_get(identifier_obj); - } - idp_identifier = LassoSamlNameIdentifier_get(idp_identifier_obj); - - statement = lasso_authentication_statement_new(authenticationMethod, - reauthenticateOnOrAfter, - identifier, - idp_identifier); - - return (LassoAuthenticationStatement_wrap(LASSO_AUTHENTICATION_STATEMENT(statement))); -} diff --git a/python/protocols/elements/py_authentication_statement.h b/python/protocols/elements/py_authentication_statement.h deleted file mode 100644 index 03d10088..00000000 --- a/python/protocols/elements/py_authentication_statement.h +++ /dev/null @@ -1,41 +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_AUTHENTICATION_STATEMENT_H__ -#define __PYLASSO_PY_AUTHENTICATION_STATEMENT_H__ - -#include <lasso/protocols/elements/authentication_statement.h> - -typedef struct { - PyObject_HEAD - LassoAuthenticationStatement *obj; -} LassoAuthenticationStatement_object; - -#define LassoAuthenticationStatement_get(v) (((v) == Py_None) ? NULL : (((LassoAuthenticationStatement_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoAuthenticationStatement_wrap(LassoAuthenticationStatement *statement); - -PyObject *authentication_statement_new(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_AUTHENTICATION_STATEMENT_H__ */ diff --git a/python/protocols/py_authn_request.c b/python/protocols/py_authn_request.c deleted file mode 100644 index b1e74aca..00000000 --- a/python/protocols/py_authn_request.c +++ /dev/null @@ -1,113 +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_authn_request.h" - -PyObject *LassoAuthnRequest_wrap(LassoAuthnRequest *request) { - PyObject *ret; - - if (request == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) request, - (char *) "LassoAuthnRequest *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *authn_request_new(PyObject *self, PyObject *args) { - const xmlChar *providerID; - LassoNode *request; - gint sign_type, sign_method; - - if(!PyArg_ParseTuple(args, (char *) "sii:authn_request_new", &providerID, - &sign_type, &sign_method)) - return NULL; - - request = lasso_authn_request_new(providerID, sign_type, sign_method); - - return (LassoAuthnRequest_wrap(LASSO_AUTHN_REQUEST(request))); -} - -PyObject *authn_request_set_requestAuthnContext(PyObject *self, PyObject *args) { - PyObject *request_obj, *authnContextClassRefs_obj; - PyObject *authnContextStatementRefs_obj; - GPtrArray *authnContextClassRefs = NULL; - GPtrArray *authnContextStatementRefs = NULL; - const xmlChar *authnContextComparison = NULL; - - if(!PyArg_ParseTuple(args, (char *) "O|O|Oz:authn_request_set_requestAuthnContext", - &request_obj, &authnContextClassRefs_obj, - &authnContextStatementRefs_obj, &authnContextComparison)) - return NULL; - - if (authnContextClassRefs_obj != Py_None) { - authnContextClassRefs = GPtrArray_get(authnContextClassRefs_obj); - } - if (authnContextStatementRefs_obj != Py_None) { - authnContextStatementRefs = GPtrArray_get(authnContextStatementRefs_obj); - } - - lasso_authn_request_set_requestAuthnContext(LassoAuthnRequest_get(request_obj), - authnContextClassRefs, - authnContextStatementRefs, - authnContextComparison); - Py_INCREF(Py_None); - return (Py_None); -} - -PyObject *authn_request_set_scoping(PyObject *self, PyObject *args) { - PyObject *request_obj; - gint proxyCount; - - if(!PyArg_ParseTuple(args, (char *) "Oi:authn_request_set_scoping", - &request_obj, &proxyCount)) - return NULL; - - lasso_authn_request_set_scoping(LassoAuthnRequest_get(request_obj), - proxyCount); - - Py_INCREF(Py_None); - return (Py_None); -} - -/******************************************************************************/ - -PyObject *authn_request_get_protocolProfile(PyObject *self, PyObject *args) { - gchar *query; - gchar *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)); -} diff --git a/python/protocols/py_authn_request.h b/python/protocols/py_authn_request.h deleted file mode 100644 index a6a4b0bd..00000000 --- a/python/protocols/py_authn_request.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_AUTHN_REQUEST_H__ -#define __PYLASSO_PY_AUTHN_REQUEST_H__ - -#include <lasso/protocols/authn_request.h> - -typedef struct { - PyObject_HEAD - LassoAuthnRequest *obj; -} LassoAuthnRequest_object; - -#define LassoAuthnRequest_get(v) (((v) == Py_None) ? NULL : (((LassoAuthnRequest_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoAuthnRequest_wrap(LassoAuthnRequest *request); - -PyObject *authn_request_new(PyObject *self, PyObject *args); -PyObject *authn_request_set_requestAuthnContext(PyObject *self, PyObject *args); -PyObject *authn_request_set_scoping(PyObject *self, PyObject *args); - -PyObject *authn_request_get_protocolProfile(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_AUTHN_REQUEST_H__ */ diff --git a/python/protocols/py_authn_response.c b/python/protocols/py_authn_response.c deleted file mode 100644 index c12e479d..00000000 --- a/python/protocols/py_authn_response.c +++ /dev/null @@ -1,64 +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_authn_response.h" - -/******************************************************************************/ -/* LassoAuthnResponse */ -/******************************************************************************/ - -PyObject *LassoAuthnResponse_wrap(LassoAuthnResponse *response) { - PyObject *ret; - - if (response == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) response, - (char *) "LassoAuthnResponse *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *authn_response_new_from_export(PyObject *self, PyObject *args) { - xmlChar *buffer; - gint type; - LassoNode *response; - - if (CheckArgs(args, "SI:authn_response_new_from_export")) { - if(!PyArg_ParseTuple(args, (char *) "si:authn_response_new_from_export", - &buffer, &type)) - return NULL; - } - else return NULL; - - response = lasso_authn_response_new_from_export(buffer, type); - - return (LassoAuthnResponse_wrap(LASSO_AUTHN_RESPONSE(response))); -} diff --git a/python/protocols/py_authn_response.h b/python/protocols/py_authn_response.h deleted file mode 100644 index c305edd6..00000000 --- a/python/protocols/py_authn_response.h +++ /dev/null @@ -1,41 +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_AUTHN_RESPONSE_H__ -#define __PYLASSO_PY_AUTHN_RESPONSE_H__ - -#include <lasso/protocols/authn_response.h> - -typedef struct { - PyObject_HEAD - LassoAuthnResponse *obj; -} LassoAuthnResponse_object; - -#define LassoAuthnResponse_get(v) (((v) == Py_None) ? NULL : (((LassoAuthnResponse_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoAuthnResponse_wrap(LassoAuthnResponse *response); - -PyObject *authn_response_new_from_export(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_AUTHN_RESPONSE_H__ */ diff --git a/python/protocols/py_federation_termination_notification.c b/python/protocols/py_federation_termination_notification.c deleted file mode 100644 index 3e00c92c..00000000 --- a/python/protocols/py_federation_termination_notification.c +++ /dev/null @@ -1,83 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_federation_termination_notification.h" - -PyObject *LassoFederationTerminationNotification_wrap(LassoFederationTerminationNotification *notification) { - PyObject *ret; - - if (notification == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) notification, - (char *) "LassoFederationTerminationNotification *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *federation_termination_notification_new(PyObject *self, PyObject *args) { - const xmlChar *providerID; - const xmlChar *nameIdentifier; - const xmlChar *nameQualifier = NULL; - const xmlChar *format = NULL; - - LassoNode *notification; - - if (CheckArgs(args, "SSSS:federation_termination_notification_new")) { - if(!PyArg_ParseTuple(args, (char *) "ssss:federation_termination_notification_new", - &providerID, &nameIdentifier,&nameQualifier, &format)) - return NULL; - } - else return NULL; - - notification = lasso_federation_termination_notification_new(providerID, - nameIdentifier, - nameQualifier, - format); - - return (LassoFederationTerminationNotification_wrap(LASSO_FEDERATION_TERMINATION_NOTIFICATION(notification))); -} - -PyObject *federation_termination_notification_new_from_export(PyObject *self, PyObject *args) { - xmlChar *soap_buffer; - gint type; - - LassoNode *notification; - - if (CheckArgs(args, "SI:federation_termination_notification_new_from_export")) { - if(!PyArg_ParseTuple(args, (char *) "si:federation_termination_notification_new_from_export", - &soap_buffer, &type)) - return NULL; - } - else return NULL; - - notification = lasso_federation_termination_notification_new_from_export(soap_buffer, type); - - return (LassoFederationTerminationNotification_wrap(LASSO_FEDERATION_TERMINATION_NOTIFICATION(notification))); -} diff --git a/python/protocols/py_federation_termination_notification.h b/python/protocols/py_federation_termination_notification.h deleted file mode 100644 index 01f03d2b..00000000 --- a/python/protocols/py_federation_termination_notification.h +++ /dev/null @@ -1,42 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_FEDERATION_TERMINATION_NOTIFICATION_H__ -#define __PYLASSO_PY_FEDERATION_TERMINATION_NOTIFICATION_H__ - -#include <lasso/protocols/federation_termination_notification.h> - -typedef struct { - PyObject_HEAD - LassoFederationTerminationNotification *obj; -} LassoFederationTerminationNotification_object; - -#define LassoFederationTerminationNotification_get(v) (((v) == Py_None) ? NULL : (((LassoFederationTerminationNotification_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoFederationTerminationNotification_wrap(LassoFederationTerminationNotification *notification); - -PyObject *federation_termination_notification_new(PyObject *self, PyObject *args); -PyObject *federation_termination_notification_new_from_export(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_FEDERATION_TERMINATION_NOTIFICATION_H__ */ diff --git a/python/protocols/py_logout_request.c b/python/protocols/py_logout_request.c deleted file mode 100644 index e8d36186..00000000 --- a/python/protocols/py_logout_request.c +++ /dev/null @@ -1,84 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_logout_request.h" - -PyObject *LassoLogoutRequest_wrap(LassoLogoutRequest *request) { - PyObject *ret; - - if (request == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) request, - (char *) "LassoLogoutRequest *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *logout_request_new(PyObject *self, PyObject *args) { - gchar *providerID; - gchar *nameIdentifier; - gchar *nameQualifier; - gchar *format; - - LassoNode *request; - - if (CheckArgs(args, "SSSS:logout_request_new")) { - if(!PyArg_ParseTuple(args, (char *) "ssss:logout_request_new", - &providerID, &nameIdentifier, &nameQualifier, &format)) - return NULL; - } - else return NULL; - - request = lasso_logout_request_new(providerID, - nameIdentifier, nameQualifier, format); - - return (LassoLogoutRequest_wrap(LASSO_LOGOUT_REQUEST(request))); -} - -PyObject *logout_request_new_from_export(PyObject *self, PyObject *args) { - gchar *buffer; - gint type; - LassoNode *request; - - if (CheckArgs(args, "SS:logout_request_new_from_export")) { - if(!PyArg_ParseTuple(args, (char *) "ss:logout_request_new_from_export", - &buffer, &type)) - return NULL; - } - else return NULL; - - request = lasso_logout_request_new_from_export(buffer, type); - if(request==NULL){ - Py_INCREF(Py_None); - return (Py_None); - } - - return (LassoLogoutRequest_wrap(LASSO_LOGOUT_REQUEST(request))); -} diff --git a/python/protocols/py_logout_request.h b/python/protocols/py_logout_request.h deleted file mode 100644 index 2c084c8f..00000000 --- a/python/protocols/py_logout_request.h +++ /dev/null @@ -1,44 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_LOGOUT_REQUEST_H__ -#define __PYLASSO_PY_LOGOUT_REQUEST_H__ - -#include <lasso/protocols/logout_request.h> -#include <lasso/xml/lib_logout_request.h> - -typedef struct { - PyObject_HEAD - LassoLogoutRequest *obj; -} LassoLogoutRequest_object; - -#define LassoLogoutRequest_get(v) (((v) == Py_None) ? NULL : (((LassoLogoutRequest_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoLogoutRequest_wrap(LassoLogoutRequest *request); - -PyObject *logout_request_getattr(PyObject *self, PyObject *args); -PyObject *logout_request_new(PyObject *self, PyObject *args); -PyObject *logout_request_new_from_export(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_LOGOUT_REQUEST_H__ */ diff --git a/python/protocols/py_logout_response.c b/python/protocols/py_logout_response.c deleted file mode 100644 index f038927f..00000000 --- a/python/protocols/py_logout_response.c +++ /dev/null @@ -1,86 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_logout_response.h" - -PyObject *LassoLogoutResponse_wrap(LassoLogoutResponse *response) { - PyObject *ret; - - if (response == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) response, - (char *) "LassoLogoutResponse *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *logout_response_new_from_request_export(PyObject *self, PyObject *args) { - gchar *request_export; - gchar *providerID; - gchar *status_code_value; - gint export_type; - - LassoNode *response = NULL; - - if (CheckArgs(args, "SSSS:logout_response_new_from_request_export")) { - if(!PyArg_ParseTuple(args, (char *) "ssss:logout_response_new_from_request_export", - &request_export, - &export_type, - &providerID, - &status_code_value)) - return NULL; - } - else return NULL; - - response = lasso_logout_response_new_from_request_export(request_export, - export_type, - providerID, - status_code_value); - - return (LassoLogoutResponse_wrap(LASSO_LOGOUT_RESPONSE(response))); -} - -PyObject *logout_response_new_from_export(PyObject *self, PyObject *args) { - gchar *request_export; - gint export_type; - - LassoNode *response = NULL; - - if (CheckArgs(args, "SS:logout_response_new_from_export")) { - if(!PyArg_ParseTuple(args, (char *) "ss:logout_response_new_from_export", - &request_export, &export_type)) - return NULL; - } - else return NULL; - - response = lasso_logout_response_new_from_export(request_export, export_type); - - return (LassoLogoutResponse_wrap(LASSO_LOGOUT_RESPONSE(response))); -} diff --git a/python/protocols/py_logout_response.h b/python/protocols/py_logout_response.h deleted file mode 100644 index 5a81e70c..00000000 --- a/python/protocols/py_logout_response.h +++ /dev/null @@ -1,42 +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_RESPONSE_H__ -#define __PYLASSO_PY_LOGOUT_RESPONSE_H__ - -#include <lasso/protocols/logout_response.h> - -typedef struct { - PyObject_HEAD - LassoLogoutResponse *obj; -} LassoLogoutResponse_object; - -#define LassoLogoutResponse_get(v) (((v) == Py_None) ? NULL : (((LassoLogoutResponse_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoLogoutResponse_wrap(LassoLogoutResponse *response); - -PyObject *logout_response_new_from_request_export(PyObject *self, PyObject *args); -PyObject *logout_response_new_from_export(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_LOGOUT_RESPONSE_H__ */ diff --git a/python/protocols/py_name_identifier_mapping_request.c b/python/protocols/py_name_identifier_mapping_request.c deleted file mode 100644 index 7b1516ec..00000000 --- a/python/protocols/py_name_identifier_mapping_request.c +++ /dev/null @@ -1,98 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_name_identifier_mapping_request.h" - -PyObject *LassoNameIdentifierMappingRequest_wrap(LassoNameIdentifierMappingRequest *request) { - PyObject *ret; - - if (request == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) request, - (char *) "LassoNameIdentifierMappingRequest *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *name_identifier_mapping_request_new(PyObject *self, PyObject *args) { - const xmlChar *providerID; - const xmlChar *nameIdentifier; - const xmlChar *nameQualifier = NULL; - const xmlChar *format = NULL; - - LassoNode *request; - - if (CheckArgs(args, "SSSS:name_identifier_mapping_request_new")) { - if(!PyArg_ParseTuple(args, (char *) "ssss:name_identifier_mapping_request_new", - &providerID, &nameIdentifier, - &nameQualifier, &format)) - return NULL; - } - else return NULL; - - request = lasso_name_identifier_mapping_request_new(providerID, nameIdentifier, - nameQualifier, format); - - return (LassoNameIdentifierMappingRequest_wrap(LASSO_NAME_IDENTIFIER_MAPPING_REQUEST(request))); -} - -PyObject *name_identifier_mapping_request_new_from_soap(PyObject *self, PyObject *args) { - const xmlChar *soap_buffer; - - LassoNode *request; - - if (CheckArgs(args, "S:name_identifier_mapping_request_new_from_soap")) { - if(!PyArg_ParseTuple(args, (char *) "s:name_identifier_mapping_request_new_from_soap", - &soap_buffer)) - return NULL; - } - else return NULL; - - request = lasso_name_identifier_mapping_request_new_from_soap(soap_buffer); - - return (LassoNameIdentifierMappingRequest_wrap(LASSO_NAME_IDENTIFIER_MAPPING_REQUEST(request))); -} - -PyObject *name_identifier_mapping_request_new_from_query(PyObject *self, PyObject *args) { - const xmlChar *query; - - LassoNode *request; - - if (CheckArgs(args, "S:name_identifier_mapping_request_new_from_query")) { - if(!PyArg_ParseTuple(args, (char *) "s:name_identifier_mapping_request_new_from_query", - &query)) - return NULL; - } - else return NULL; - - request = lasso_name_identifier_mapping_request_new_from_query(query); - - return (LassoNameIdentifierMappingRequest_wrap(LASSO_NAME_IDENTIFIER_MAPPING_REQUEST(request))); -} diff --git a/python/protocols/py_name_identifier_mapping_request.h b/python/protocols/py_name_identifier_mapping_request.h deleted file mode 100644 index 6384c44b..00000000 --- a/python/protocols/py_name_identifier_mapping_request.h +++ /dev/null @@ -1,43 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_NAME_IDENTIFIER_MAPPING_REQUEST_H__ -#define __PYLASSO_PY_NAME_IDENTIFIER_MAPPING_REQUEST_H__ - -#include <lasso/protocols/name_identifier_mapping_request.h> - -typedef struct { - PyObject_HEAD - LassoNameIdentifierMappingRequest *obj; -} LassoNameIdentifierMappingRequest_object; - -#define LassoNameIdentifierMappingRequest_get(v) (((v) == Py_None) ? NULL : (((LassoNameIdentifierMappingRequest_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoNameIdentifierMappingRequest_wrap(LassoNameIdentifierMappingRequest *request); - -PyObject *name_identifier_mapping_request_new(PyObject *self, PyObject *args); -PyObject *name_identifier_mapping_request_new_from_soap(PyObject *self, PyObject *args); -PyObject *name_identifier_mapping_request_new_from_query(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_NAME_IDENTIFIER_MAPPING_REQUEST_H__ */ diff --git a/python/protocols/py_name_identifier_mapping_response.c b/python/protocols/py_name_identifier_mapping_response.c deleted file mode 100644 index 61b6d278..00000000 --- a/python/protocols/py_name_identifier_mapping_response.c +++ /dev/null @@ -1,138 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_name_identifier_mapping_response.h" -#include "py_name_identifier_mapping_request.h" - -PyObject *LassoNameIdentifierMappingResponse_wrap(LassoNameIdentifierMappingResponse *response) { - PyObject *ret; - - if (response == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) response, - (char *) "LassoNameIdentifierMappingResponse *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *name_identifier_mapping_response_new_from_request_soap(PyObject *self, PyObject *args) { - const xmlChar *request_soap_dump; - const xmlChar *providerID; - const xmlChar *status_code_value; - - LassoNode *response = NULL; - - if (CheckArgs(args, "SSS:name_identifier_mapping_response_new_from_request_soap")) { - if(!PyArg_ParseTuple(args, (char *) "sss:name_identifier_mapping_response_new_from_request_soap", - &request_soap_dump, - &providerID, - &status_code_value)) - return NULL; - } - else return NULL; - - response = lasso_name_identifier_mapping_response_new_from_request_soap(request_soap_dump, - providerID, - status_code_value); - - return (LassoNameIdentifierMappingResponse_wrap(LASSO_NAME_IDENTIFIER_MAPPING_RESPONSE(response))); -} - -PyObject *name_identifier_mapping_response_new_from_soap(PyObject *self, PyObject *args) { - const xmlChar *response_soap_dump; - - LassoNode *response = NULL; - - if (CheckArgs(args, "S:name_identifier_mapping_response_new_from_soap")) { - if(!PyArg_ParseTuple(args, (char *) "s:name_identifier_mapping_response_new_from_soap", - &response_soap_dump)) - return NULL; - } - else return NULL; - - response = lasso_name_identifier_mapping_response_new_from_soap(response_soap_dump); - - return (LassoNameIdentifierMappingResponse_wrap(LASSO_NAME_IDENTIFIER_MAPPING_RESPONSE(response))); -} - -PyObject *name_identifier_mapping_response_new_from_dump(PyObject *self, PyObject *args) { - const xmlChar *dump; - - LassoNode *response = NULL; - - if (CheckArgs(args, "S:name_identifier_mapping_response_new_from_dump")) { - if(!PyArg_ParseTuple(args, (char *) "s:name_identifier_mapping_response_new_from_dump", - &dump)) - return NULL; - } - else return NULL; - - response = lasso_name_identifier_mapping_response_new_from_soap(dump); - - return (LassoNameIdentifierMappingResponse_wrap(LASSO_NAME_IDENTIFIER_MAPPING_RESPONSE(response))); -} - -PyObject *name_identifier_mapping_response_new_from_request_query(PyObject *self, PyObject *args) { - const xmlChar *query; - const xmlChar *providerID; - const xmlChar *status_code_value; - - LassoNode *response = NULL; - - if (CheckArgs(args, "SSS:name_identifier_mapping_response_new_from_request_query")) { - if(!PyArg_ParseTuple(args, (char *) "sss:name_identifier_mapping_response_new_from_request_query", - &query, - &providerID, - &status_code_value)) - return NULL; - } - else return NULL; - - response = lasso_name_identifier_mapping_response_new_from_request_query(query, providerID, status_code_value); - - return (LassoNameIdentifierMappingResponse_wrap(LASSO_NAME_IDENTIFIER_MAPPING_RESPONSE(response))); -} - -PyObject *name_identifier_mapping_response_new_from_query(PyObject *self, PyObject *args) { - const xmlChar *query; - - LassoNode *response = NULL; - - if (CheckArgs(args, "S:name_identifier_mapping_response_new_from_query")) { - if(!PyArg_ParseTuple(args, (char *) "s:name_identifier_mapping_response_new_from_query", - &query)) - return NULL; - } - else return NULL; - - response = lasso_name_identifier_mapping_response_new_from_query(query); - - return (LassoNameIdentifierMappingResponse_wrap(LASSO_NAME_IDENTIFIER_MAPPING_RESPONSE(response))); -} diff --git a/python/protocols/py_name_identifier_mapping_response.h b/python/protocols/py_name_identifier_mapping_response.h deleted file mode 100644 index 031d525f..00000000 --- a/python/protocols/py_name_identifier_mapping_response.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_NAME_IDENTIFIER_MAPPING_RESPONSE_H__ -#define __PYLASSO_PY_NAME_IDENTIFIER_MAPPING_RESPONSE_H__ - -#include <lasso/protocols/name_identifier_mapping_response.h> - -typedef struct { - PyObject_HEAD - LassoNameIdentifierMappingResponse *obj; -} LassoNameIdentifierMappingResponse_object; - -#define LassoNameIdentifierMappingResponse_get(v) (((v) == Py_None) ? NULL : (((LassoNameIdentifierMappingResponse_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoNameIdentifierMappingResponse_wrap(LassoNameIdentifierMappingResponse *response); - -PyObject *name_identifier_mapping_response_new_from_request_soap(PyObject *self, PyObject *args); -PyObject *name_identifier_mapping_response_new_from_soap(PyObject *self, PyObject *args); -PyObject *name_identifier_mapping_response_new_from_dump(PyObject *self, PyObject *args); -PyObject *name_identifier_mapping_response_new_from_request_query(PyObject *self, PyObject *args); -PyObject *name_identifier_mapping_response_new_from_query(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_NAME_IDENTIFIER_MAPPING_RESPONSE_H__ */ diff --git a/python/protocols/py_register_name_identifier_request.c b/python/protocols/py_register_name_identifier_request.c deleted file mode 100644 index 0deba7cf..00000000 --- a/python/protocols/py_register_name_identifier_request.c +++ /dev/null @@ -1,120 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_register_name_identifier_request.h" - -PyObject *LassoRegisterNameIdentifierRequest_wrap(LassoRegisterNameIdentifierRequest *request) { - PyObject *ret; - - if (request == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) request, - (char *) "LassoRegisterNameIdentifierRequest *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *register_name_identifier_request_new(PyObject *self, PyObject *args) { - const xmlChar *providerID; - - const xmlChar *idpNameIdentifier; - const xmlChar *idpNameQualifier; - const xmlChar *idpFormat; - - const xmlChar *spNameIdentifier; - const xmlChar *spNameQualifier; - const xmlChar *spFormat; - - const xmlChar *oldNameIdentifier; - const xmlChar *oldNameQualifier; - const xmlChar *oldFormat; - - LassoNode *request; - - if (CheckArgs(args, "SSSSSSSSSS:register_name_identifier_request_new")) { - if(!PyArg_ParseTuple(args, (char *) "ssssssssss:register_name_identifier_request_new", - &providerID, - &idpNameIdentifier, &idpNameQualifier, &idpFormat, - &spNameIdentifier, &spNameQualifier, &spFormat, - &oldNameIdentifier, &oldNameQualifier, &oldFormat)) - return NULL; - } - else return NULL; - - request = lasso_register_name_identifier_request_new(providerID, - idpNameIdentifier, - idpNameQualifier, - idpFormat, - spNameIdentifier, - spNameQualifier, - spFormat, - oldNameIdentifier, - oldNameQualifier, - oldFormat); - - return (LassoRegisterNameIdentifierRequest_wrap(LASSO_REGISTER_NAME_IDENTIFIER_REQUEST(request))); -} - -PyObject *register_name_identifier_request_rename_attributes_for_query(PyObject *self, PyObject *args){ - PyObject *request_obj; - - if (CheckArgs(args, "O:register_name_identifier_request_rename_attributes_for_query")) { - if(!PyArg_ParseTuple(args, (char *) "O:register_name_identifier_request_rename_attributes_for_query", - &request_obj)) - return NULL; - } - else return NULL; - - lasso_register_name_identifier_request_rename_attributes_for_query(LassoRegisterNameIdentifierRequest_get(request_obj)); - - Py_INCREF(Py_None); - return (Py_None); -} - -PyObject *register_name_identifier_request_new_from_export(PyObject *self, PyObject *args) { - gchar *soap_buffer; - LassoNode *request; - gint type; - - if (CheckArgs(args, "SS:register_name_identifier_request_new_from_export")) { - if(!PyArg_ParseTuple(args, (char *) "ss:register_name_identifier_request_new_from_export", - &soap_buffer, &type)) - return NULL; - } - else return NULL; - - request = lasso_register_name_identifier_request_new_from_export(soap_buffer, type); - if(request==NULL){ - Py_INCREF(Py_None); - return (Py_None); - } - - return (LassoRegisterNameIdentifierRequest_wrap(LASSO_REGISTER_NAME_IDENTIFIER_REQUEST(request))); -} diff --git a/python/protocols/py_register_name_identifier_request.h b/python/protocols/py_register_name_identifier_request.h deleted file mode 100644 index 2d04809a..00000000 --- a/python/protocols/py_register_name_identifier_request.h +++ /dev/null @@ -1,45 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_REGISTER_NAME_IDENTIFIER_REQUEST_H__ -#define __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_REQUEST_H__ - -#include <lasso/protocols/register_name_identifier_request.h> - -typedef struct { - PyObject_HEAD - LassoRegisterNameIdentifierRequest *obj; -} LassoRegisterNameIdentifierRequest_object; - -#define LassoRegisterNameIdentifierRequest_get(v) (((v) == Py_None) ? NULL : (((LassoRegisterNameIdentifierRequest_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoRegisterNameIdentifierRequest_wrap(LassoRegisterNameIdentifierRequest *request); - -PyObject *register_name_identifier_request_new(PyObject *self, PyObject *args); - -PyObject *register_name_identifier_request_new_from_export(PyObject *self, PyObject *args); - -PyObject *register_name_identifier_request_rename_attributes_for_query(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_REQUEST_H__ */ diff --git a/python/protocols/py_register_name_identifier_response.c b/python/protocols/py_register_name_identifier_response.c deleted file mode 100644 index 5547dd17..00000000 --- a/python/protocols/py_register_name_identifier_response.c +++ /dev/null @@ -1,87 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_register_name_identifier_request.h" -#include "py_register_name_identifier_response.h" - -PyObject *LassoRegisterNameIdentifierResponse_wrap(LassoRegisterNameIdentifierResponse *response) { - PyObject *ret; - - if (response == NULL) { - Py_INCREF(Py_None); - return (Py_None); - } - ret = PyCObject_FromVoidPtrAndDesc((void *) response, - (char *) "LassoRegisterNameIdentifierResponse *", NULL); - return (ret); -} - -/******************************************************************************/ - -PyObject *register_name_identifier_response_new_from_request_export(PyObject *self, PyObject *args) { - gchar *request_export; - gchar *providerID; - gchar *status_code_value; - gint export_type; - - LassoNode *response = NULL; - - if (CheckArgs(args, "SSSS:register_name_identifier_response_new_from_request_export")) { - if(!PyArg_ParseTuple(args, (char *) "ssss:register_name_identifier_response_new_from_request_export", - &request_export, - &export_type, - &providerID, - &status_code_value)) - return NULL; - } - else return NULL; - - response = lasso_register_name_identifier_response_new_from_request_export(request_export, - export_type, - providerID, - status_code_value); - - return (LassoRegisterNameIdentifierResponse_wrap(LASSO_REGISTER_NAME_IDENTIFIER_RESPONSE(response))); -} - -PyObject *register_name_identifier_response_new_from_export(PyObject *self, PyObject *args) { - gchar *request_export; - gint export_type; - - LassoNode *response = NULL; - - if (CheckArgs(args, "SS:register_name_identifier_response_new_from_export")) { - if(!PyArg_ParseTuple(args, (char *) "ss:register_name_identifier_response_new_from_export", - &request_export, &export_type)) - return NULL; - } - else return NULL; - - response = lasso_register_name_identifier_response_new_from_export(request_export, export_type); - - return (LassoRegisterNameIdentifierResponse_wrap(LASSO_REGISTER_NAME_IDENTIFIER_RESPONSE(response))); -} diff --git a/python/protocols/py_register_name_identifier_response.h b/python/protocols/py_register_name_identifier_response.h deleted file mode 100644 index 0d6aad5a..00000000 --- a/python/protocols/py_register_name_identifier_response.h +++ /dev/null @@ -1,42 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Author: 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_REGISTER_NAME_IDENTIFIER_RESPONSE_H__ -#define __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_RESPONSE_H__ - -#include <lasso/protocols/register_name_identifier_response.h> - -typedef struct { - PyObject_HEAD - LassoRegisterNameIdentifierResponse *obj; -} LassoRegisterNameIdentifierResponse_object; - -#define LassoRegisterNameIdentifierResponse_get(v) (((v) == Py_None) ? NULL : (((LassoRegisterNameIdentifierResponse_object *)(PyObject_GetAttr(v, PyString_FromString("_o"))))->obj)) -PyObject *LassoRegisterNameIdentifierResponse_wrap(LassoRegisterNameIdentifierResponse *response); - -PyObject *register_name_identifier_response_new_from_request_export(PyObject *self, PyObject *args); -PyObject *register_name_identifier_response_new_from_export(PyObject *self, PyObject *args); - -#endif /* __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_RESPONSE_H__ */ |
