summaryrefslogtreecommitdiffstats
path: root/python/environs
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-08-09 14:45:39 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-08-09 14:45:39 +0000
commitb13decd314a04547ae1f1d8e0ab56ed767109cf4 (patch)
tree7f589e1ef3869bb0da3f453b1085700a3e41f1c3 /python/environs
parent7c34b0d38b3948cfb7b0c0c9ac26853e33820263 (diff)
downloadlasso-b13decd314a04547ae1f1d8e0ab56ed767109cf4.tar.gz
lasso-b13decd314a04547ae1f1d8e0ab56ed767109cf4.tar.xz
lasso-b13decd314a04547ae1f1d8e0ab56ed767109cf4.zip
Removed Base64 encoding in lasso_lecp_build_authn_response_msg()
Removed Base64 decoding in lasso_lecp_process_authn_request_envelope_msg() Removed the param 'remote_providerID' of lasso_lecp_init_authn_request() Added a param 'remote_providerID' in lasso_lecp_build_authn_request_msg() Added 3 params in lasso_lecp_build_authn_response_envelope_msg() They are necessary to build the Assertion, to process the federation and possibly to set the Status.
Diffstat (limited to 'python/environs')
-rw-r--r--python/environs/py_lecp.c41
1 files changed, 24 insertions, 17 deletions
diff --git a/python/environs/py_lecp.c b/python/environs/py_lecp.c
index dae603ca..9a521116 100644
--- a/python/environs/py_lecp.c
+++ b/python/environs/py_lecp.c
@@ -114,32 +114,41 @@ PyObject *lecp_build_authn_request_envelope_msg(PyObject *self, PyObject *args){
PyObject *lecp_build_authn_response_envelope_msg(PyObject *self, PyObject *args){
PyObject *lecp_obj;
- gint codeError = 0;
-
- if (CheckArgs(args, "O:lecp_build_authn_response_envelope_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "O:lecp_build_authn_response_envelope_msg",
- &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));
+ 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;
- gint codeError = 0;
+ gchar *remote_providerID;
+ gint codeError = 0;
- if (CheckArgs(args, "O:lecp_build_authn_request_msg")) {
- if(!PyArg_ParseTuple(args, (char *) "O:lecp_build_authn_request_msg",
- &lecp_obj))
+ 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));
+ codeError = lasso_lecp_build_authn_request_msg(LassoLecp_get(lecp_obj),
+ remote_providerID);
return(int_wrap(codeError));
}
@@ -178,18 +187,16 @@ PyObject *lecp_destroy(PyObject *self, PyObject *args){
PyObject *lecp_init_authn_request(PyObject *self, PyObject *args) {
PyObject *lecp_obj;
- gchar *remote_providerID;
gint ret;
- if (CheckArgs(args, "OS:lecp_init_authn_request")) {
- if(!PyArg_ParseTuple(args, (char *) "Os:lecp_init_authn_request",
- &lecp_obj, &remote_providerID))
+ 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),
- remote_providerID);
+ ret = lasso_lecp_init_authn_request(LassoLecp_get(lecp_obj));
return (int_wrap(ret));
}