summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-11-26 08:51:47 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-11-26 08:51:47 +0000
commit56e73461389ee5fe4e000106cedb97641562aa7d (patch)
treefe20838eb81a967d7cda3b98a9c39c90a3755a58
parent78bf7c86d72930b209046973ff7f0a22aea4ae3e (diff)
downloadlasso-56e73461389ee5fe4e000106cedb97641562aa7d.tar.gz
lasso-56e73461389ee5fe4e000106cedb97641562aa7d.tar.xz
lasso-56e73461389ee5fe4e000106cedb97641562aa7d.zip
use attribute xml snippet support in <lib:LogoutRequest>
-rw-r--r--lasso/xml/lib_logout_request.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lasso/xml/lib_logout_request.c b/lasso/xml/lib_logout_request.c
index 5e0e16d4..2980d732 100644
--- a/lasso/xml/lib_logout_request.c
+++ b/lasso/xml/lib_logout_request.c
@@ -67,6 +67,7 @@
{ "NameIdentifier", 'n', (void**)&(request->NameIdentifier) }, \
{ "SessionIndex", 'c', (void**)&(request->SessionIndex) }, \
{ "RelayState", 'c', (void**)&(request->RelayState) }, \
+ { "consent", 'a', (void**)&(request->consent) }, \
{ NULL, 0, NULL} \
};
@@ -83,9 +84,6 @@ get_xmlNode(LassoNode *node)
xmlSetNs(xmlnode, xmlNewNs(xmlnode, LASSO_LIB_HREF, LASSO_LIB_PREFIX));
lasso_node_build_xml_with_snippets(xmlnode, snippets);
- if (request->consent)
- xmlSetProp(xmlnode, "consent", request->consent);
-
return xmlnode;
}
@@ -184,7 +182,6 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
if (parent_class->init_from_xml(node, xmlnode))
return -1;
lasso_node_init_xml_with_snippets(xmlnode, snippets);
- request->consent = xmlGetProp(xmlnode, "consent");
return 0;
}