From 8626930c9bcecfd2fd65e21ce7cae3c4e1eee38f Mon Sep 17 00:00:00 2001 From: Nicolas Clapies Date: Tue, 27 Apr 2004 09:36:54 +0000 Subject: remove files --- python/protocols/py_logout.c | 184 ------------------------- python/protocols/py_logout.h | 54 -------- python/protocols/py_register_name_identifier.c | 110 --------------- python/protocols/py_register_name_identifier.h | 42 ------ 4 files changed, 390 deletions(-) delete mode 100644 python/protocols/py_logout.c delete mode 100644 python/protocols/py_logout.h delete mode 100644 python/protocols/py_register_name_identifier.c delete mode 100644 python/protocols/py_register_name_identifier.h (limited to 'python/protocols') diff --git a/python/protocols/py_logout.c b/python/protocols/py_logout.c deleted file mode 100644 index 4886a6d5..00000000 --- a/python/protocols/py_logout.c +++ /dev/null @@ -1,184 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.labs.libre-entreprise.org - * - * Author: Valery Febvre - * - * 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" - -/******************************************************************************/ -/* lassoLogoutRequest */ -/******************************************************************************/ - -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_getattr(PyObject *self, PyObject *args) { - PyObject *request_obj; - lassoLogoutRequest *request; - const char *attr; - - if (CheckArgs(args, "OS:logout_request_get_attr")) { - if (!PyArg_ParseTuple(args, "Os:logout_request_get_attr", &request_obj, &attr)) - return NULL; - } - else return NULL; - - request = lassoLogoutRequest_get(request_obj); - - if (!strcmp(attr, "__members__")) - return Py_BuildValue("[s]", "node"); - if (!strcmp(attr, "node")) - return (LassoNode_wrap(request->node)); - - Py_INCREF(Py_None); - return (Py_None); -} - -PyObject *logout_request_create(PyObject *self, PyObject *args) { - const xmlChar *providerID; - const xmlChar *nameIdentifier; - const xmlChar *nameQualifier; - const xmlChar *format; - const xmlChar *sessionIndex; - const xmlChar *relayState; - const xmlChar *consent; - - lassoLogoutRequest *request; - - if(!PyArg_ParseTuple(args, (char *) "sssssss:logout_request_create", - &providerID, - &nameIdentifier, &nameQualifier, &format, - &sessionIndex, - &relayState, - &consent)) - return NULL; - - request = lasso_logout_request_create(providerID, - nameIdentifier, - nameQualifier, - format, - sessionIndex, - relayState, - consent); - - return (lassoLogoutRequest_wrap(request)); -} - -/******************************************************************************/ -/* lassoLogoutResponse */ -/******************************************************************************/ - -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_getattr(PyObject *self, PyObject *args) { - PyObject *response_obj; - lassoLogoutResponse *response; - const char *attr; - - if (CheckArgs(args, "OS:logout_response_get_attr")) { - if (!PyArg_ParseTuple(args, "Os:logout_response_get_attr", &response_obj, &attr)) - return NULL; - } - else return NULL; - - response = lassoLogoutResponse_get(response_obj); - - if (!strcmp(attr, "__members__")) - return Py_BuildValue("[s]", "node"); - if (!strcmp(attr, "node")) - return (LassoNode_wrap(response->node)); - - Py_INCREF(Py_None); - return (Py_None); -} - -PyObject *logout_response_create(PyObject *self, PyObject *args) { - char *query; - int verifySignature; - char *public_key; - char *private_key; - char *certificate; - - lassoLogoutResponse *response; - - if(!PyArg_ParseTuple(args, (char *) "sisss:logout_response_create", - &query, - &verifySignature, - &public_key, - &private_key, - &certificate)) - return NULL; - - response = lasso_logout_response_create(query, - verifySignature, - public_key, - private_key, - certificate); - - return (lassoLogoutResponse_wrap(response)); -} - -PyObject *logout_response_init(PyObject *self, PyObject *args) { - PyObject *response_obj; - char *providerID; - char *statusCodeValue; - char *relayState; - int ret; - - if(!PyArg_ParseTuple(args, (char *) "Osss:response_init", - &response_obj, - &providerID, - &statusCodeValue, - &relayState)) - return NULL; - - ret = lasso_logout_response_init(lassoLogoutResponse_get(response_obj), - providerID, - statusCodeValue, - relayState); - - return (int_wrap(ret)); -} diff --git a/python/protocols/py_logout.h b/python/protocols/py_logout.h deleted file mode 100644 index 90f432f9..00000000 --- a/python/protocols/py_logout.h +++ /dev/null @@ -1,54 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.labs.libre-entreprise.org - * - * Author: Valery Febvre - * - * 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 - -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_create(PyObject *self, PyObject *args); - -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_getattr(PyObject *self, PyObject *args); -PyObject *logout_response_create(PyObject *self, PyObject *args); -PyObject *logout_response_init(PyObject *self, PyObject *args); - - -#endif /* __PYLASSO_PY_LOGOUT_H__ */ diff --git a/python/protocols/py_register_name_identifier.c b/python/protocols/py_register_name_identifier.c deleted file mode 100644 index e199922c..00000000 --- a/python/protocols/py_register_name_identifier.c +++ /dev/null @@ -1,110 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.labs.libre-entreprise.org - * - * Author: Valery Febvre - * - * 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_register_name_identifier.h" - -/******************************************************************************/ -/* lassoRegisterNameIdentifierRequest */ -/******************************************************************************/ - -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_getattr(PyObject *self, PyObject *args) { - PyObject *request_obj; - lassoRegisterNameIdentifierRequest *request; - const char *attr; - - if (CheckArgs(args, "OS:register_name_identifier_request_get_attr")) { - if (!PyArg_ParseTuple(args, "Os:register_name_identifier_request_get_attr", &request_obj, &attr)) - return NULL; - } - else return NULL; - - request = lassoRegisterNameIdentifierRequest_get(request_obj); - - if (!strcmp(attr, "__members__")) - return Py_BuildValue("[s]", "node"); - if (!strcmp(attr, "node")) - return (LassoNode_wrap(request->node)); - - Py_INCREF(Py_None); - return (Py_None); -} - -PyObject *register_name_identifier_request_create(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; - - const xmlChar *relayState; - - lassoRegisterNameIdentifierRequest *request; - - if(!PyArg_ParseTuple(args, (char *) "sssssssssss:register_name_identifier_request_create", - &providerID, - &idpNameIdentifier, &idpNameQualifier, &idpFormat, - &spNameIdentifier, &spNameQualifier, &spFormat, - &oldNameIdentifier, &oldNameQualifier, &oldFormat, - &relayState)) - return NULL; - - request = lasso_register_name_identifier_request_create(providerID, - idpNameIdentifier, - idpNameQualifier, - idpFormat, - spNameIdentifier, - spNameQualifier, - spFormat, - oldNameIdentifier, - oldNameQualifier, - oldFormat, - relayState); - - return (lassoRegisterNameIdentifierRequest_wrap(request)); -} diff --git a/python/protocols/py_register_name_identifier.h b/python/protocols/py_register_name_identifier.h deleted file mode 100644 index b9c35ebc..00000000 --- a/python/protocols/py_register_name_identifier.h +++ /dev/null @@ -1,42 +0,0 @@ -/* $Id$ - * - * PyLasso -- Python bindings for Lasso library - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.labs.libre-entreprise.org - * - * Author: Valery Febvre - * - * 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 - -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 *lasso_register_name_identifier_request_wrap(lassoRegisterNameIdentifierRequest *request); - -PyObject *register_name_identifier_request_getattr(PyObject *self, PyObject *args); -PyObject *register_name_identifier_request_create(PyObject *self, PyObject *args); - - -#endif /* __PYLASSO_PY_REGISTER_NAME_IDENTIFIER_H__ */ -- cgit