summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-11-26 08:55:44 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-11-26 08:55:44 +0000
commit0b52f58a6795d9c976546ff1f048fff1e10e3112 (patch)
tree51e3e50b373b3ad0c562affee459d72977bd5440
parentd3f99bc34d5c6db9bd8ad1d87b7d956eecc4cc8f (diff)
use attribute xml snippet support in <saml:AuthenticationStatement>
-rw-r--r--lasso/xml/saml_authentication_statement.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/lasso/xml/saml_authentication_statement.c b/lasso/xml/saml_authentication_statement.c
index d822aca0..11f59be1 100644
--- a/lasso/xml/saml_authentication_statement.c
+++ b/lasso/xml/saml_authentication_statement.c
@@ -52,6 +52,10 @@
struct XmlSnippet snippets[] = { \
{ "SubjectLocality", 'n', (void**)&(statement->SubjectLocality) }, \
{ "AuthorityBinding", 'n', (void**)&(statement->AuthorityBinding) }, \
+ { "AuthenticationMethod", 'a', \
+ (void**)&(statement->AuthenticationMethod) }, \
+ { "AuthenticationInstant", 'a', \
+ (void**)&(statement->AuthenticationInstant) }, \
{ NULL, 0, NULL} \
};
@@ -67,11 +71,6 @@ get_xmlNode(LassoNode *node)
xmlNodeSetName(xmlnode, "AuthenticationStatement");
lasso_node_build_xml_with_snippets(xmlnode, snippets);
- if (statement->AuthenticationMethod)
- xmlSetProp(xmlnode, "AuthenticationMethod", statement->AuthenticationMethod);
- if (statement->AuthenticationInstant)
- xmlSetProp(xmlnode, "AuthenticationInstant", statement->AuthenticationInstant);
-
return xmlnode;
}
@@ -83,8 +82,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);
- statement->AuthenticationMethod = xmlGetProp(xmlnode, "AuthenticationMethod");
- statement->AuthenticationInstant = xmlGetProp(xmlnode, "AuthenticationInstant");
return 0;
}