From a5cc9aa23784a352ebc0d816626d71bd10354c45 Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Wed, 14 Jul 2004 19:10:12 +0000 Subject: Added get for nameIdentifier & msg_relayState attributes (in login_getattr function) --- python/environs/py_login.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'python') 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); -- cgit