summaryrefslogtreecommitdiffstats
path: root/python/environs/py_lecp.h
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2004-07-25 09:24:26 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2004-07-25 09:24:26 +0000
commitd4b79b874b04c57e23eddae03b9105f282c817a8 (patch)
treed0cc32ff860dcc9fdd948490070a07d91cf84e60 /python/environs/py_lecp.h
parent3d230ade52498c06e36b7f46840d2504b407b6c7 (diff)
downloadlasso-d4b79b874b04c57e23eddae03b9105f282c817a8.tar.gz
lasso-d4b79b874b04c57e23eddae03b9105f282c817a8.tar.xz
lasso-d4b79b874b04c57e23eddae03b9105f282c817a8.zip
udpate of C lecp, add python lecp
Diffstat (limited to 'python/environs/py_lecp.h')
-rw-r--r--python/environs/py_lecp.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/python/environs/py_lecp.h b/python/environs/py_lecp.h
new file mode 100644
index 00000000..bcf2cd50
--- /dev/null
+++ b/python/environs/py_lecp.h
@@ -0,0 +1,58 @@
+/* $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_response_envelope_msg(PyObject *self, PyObject *args);
+
+PyObject *lecp_destroy(PyObject *self, PyObject *args);
+
+PyObject *lecp_init_authn_request_envelope(PyObject *self, PyObject *args);
+
+PyObject *lecp_init_authn_response_envelope(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__ */