diff options
author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-07-14 19:10:12 +0000 |
---|---|---|
committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-07-14 19:10:12 +0000 |
commit | a5cc9aa23784a352ebc0d816626d71bd10354c45 (patch) | |
tree | d0879a7864aedcf94df70c9398e80cfb34232677 /python | |
parent | ff182b1bf4342d51690e82f2bf0c5034339f7542 (diff) | |
download | lasso-a5cc9aa23784a352ebc0d816626d71bd10354c45.tar.gz lasso-a5cc9aa23784a352ebc0d816626d71bd10354c45.tar.xz lasso-a5cc9aa23784a352ebc0d816626d71bd10354c45.zip |
Added get for nameIdentifier & msg_relayState attributes (in login_getattr function)
Diffstat (limited to 'python')
-rw-r--r-- | python/environs/py_login.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/python/environs/py_login.c b/python/environs/py_login.c index 3a814db9..230a0317 100644 --- a/python/environs/py_login.c +++ b/python/environs/py_login.c @@ -56,24 +56,29 @@ PyObject *login_getattr(PyObject *self, PyObject *args) { login = LassoLogin_get(login_obj); if (!strcmp(attr, "__members__")) - return Py_BuildValue("[ssssssss]", "request", "response", "request_type", "response_dump", - "msg_url", "msg_body", "protocolProfile", "assertionArtifact"); + return Py_BuildValue("[ssssssssss]", "request", "response", "request_type", + "msg_url", "msg_body", "response_dump", "msg_relayState", + "protocolProfile", "assertionArtifact", "nameIdentifier"); if (!strcmp(attr, "request")) return (LassoNode_wrap(LASSO_PROFILE_CONTEXT(login)->request)); if (!strcmp(attr, "response")) return (LassoNode_wrap(LASSO_PROFILE_CONTEXT(login)->response)); if (!strcmp(attr, "request_type")) return (int_wrap(LASSO_PROFILE_CONTEXT(login)->request_type)); - if (!strcmp(attr, "response_dump")) - return (charPtrConst_wrap(login->response_dump)); if (!strcmp(attr, "msg_url")) return (charPtrConst_wrap(LASSO_PROFILE_CONTEXT(login)->msg_url)); if (!strcmp(attr, "msg_body")) return (charPtrConst_wrap(LASSO_PROFILE_CONTEXT(login)->msg_body)); + if (!strcmp(attr, "response_dump")) + return (charPtrConst_wrap(login->response_dump)); + if (!strcmp(attr, "msg_relayState")) + return (charPtrConst_wrap(login->msg_relayState)); if (!strcmp(attr, "protocolProfile")) return (int_wrap(login->protocolProfile)); if (!strcmp(attr, "assertionArtifact")) return (charPtrConst_wrap(login->assertionArtifact)); + if (!strcmp(attr, "nameIdentifier")) + return (charPtrConst_wrap(login->nameIdentifier)); Py_INCREF(Py_None); return (Py_None); |