summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-08-08 12:37:21 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-08-08 12:37:21 +0000
commit25bc04c9b5be0d5c418d76d57e88ce99a02e7b9c (patch)
tree33426a8bfd234bdc15ff428dc26e8628466cca9c
parentfa6f8ec152ed2580175314ae452dd5aec5d21e5b (diff)
downloadlasso-25bc04c9b5be0d5c418d76d57e88ce99a02e7b9c.tar.gz
lasso-25bc04c9b5be0d5c418d76d57e88ce99a02e7b9c.tar.xz
lasso-25bc04c9b5be0d5c418d76d57e88ce99a02e7b9c.zip
In the dump of the session object,
rather than use the "Lasso" word in the name of nodes, the namespace of the root elment is now set to the Lasso namespace (without prefix).
-rw-r--r--lasso/id-ff/session.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lasso/id-ff/session.c b/lasso/id-ff/session.c
index 72992634..43d619ef 100644
--- a/lasso/id-ff/session.c
+++ b/lasso/id-ff/session.c
@@ -25,9 +25,9 @@
#include <lasso/environs/session.h>
-#define LASSO_SESSION_NODE "LassoSession"
-#define LASSO_SESSION_ASSERTIONS_NODE "LassoAssertions"
-#define LASSO_SESSION_ASSERTION_NODE "LassoAssertion"
+#define LASSO_SESSION_NODE "Session"
+#define LASSO_SESSION_ASSERTIONS_NODE "Assertions"
+#define LASSO_SESSION_ASSERTION_NODE "AuthnAssertion"
#define LASSO_SESSION_REMOTE_PROVIDERID_ATTR "RemoteProviderID"
struct _LassoSessionPrivate
@@ -164,6 +164,7 @@ lasso_session_dump(LassoSession *session)
session_node = lasso_node_new();
session_class = LASSO_NODE_GET_CLASS(session_node);
session_class->set_name(session_node, LASSO_SESSION_NODE);
+ session_class->set_ns(session_node, lassoLassoHRef, NULL);
/* dump the assertions */
table_size = g_hash_table_size(session->assertions);
@@ -406,7 +407,7 @@ lasso_session_new_from_dump(gchar *dump)
/* get assertions */
assertions_node = lasso_node_get_child(session_node,
LASSO_SESSION_ASSERTIONS_NODE,
- NULL, NULL);
+ lassoLassoHRef, NULL);
if (assertions_node != NULL) {
assertions_xmlNode = LASSO_NODE_GET_CLASS(assertions_node)->get_xmlNode(assertions_node);
assertion_xmlNode = assertions_xmlNode->children;