summaryrefslogtreecommitdiffstats
path: root/lasso/xml/lib_authn_request_envelope.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-11-26 14:13:02 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-11-26 14:13:02 +0000
commit8ad4344cd5b3005a86276474d323b551fabc6f27 (patch)
tree2f19be819fcd5489c1d50bee04737dff13c8a12d /lasso/xml/lib_authn_request_envelope.c
parentebd6acd6d72b22d292789cb082cf4d808877b48c (diff)
downloadlasso-8ad4344cd5b3005a86276474d323b551fabc6f27.tar.gz
lasso-8ad4344cd5b3005a86276474d323b551fabc6f27.tar.xz
lasso-8ad4344cd5b3005a86276474d323b551fabc6f27.zip
moved xml snippet stuffs into new internals.h; those should not be exposed;
changed snippet type from character to enum (defined in internals.h)
Diffstat (limited to 'lasso/xml/lib_authn_request_envelope.c')
-rw-r--r--lasso/xml/lib_authn_request_envelope.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lasso/xml/lib_authn_request_envelope.c b/lasso/xml/lib_authn_request_envelope.c
index 32c386ae..77be75ad 100644
--- a/lasso/xml/lib_authn_request_envelope.c
+++ b/lasso/xml/lib_authn_request_envelope.c
@@ -71,12 +71,12 @@
char *is_passive = NULL; \
struct XmlSnippet snippets[] = { \
/* XXX: Extension */ \
- { "ProviderID", 'c', (void**)&(env->ProviderID) }, \
- { "ProviderName", 'c', (void**)&(env->ProviderName) }, \
- { "AssertionConsumerServiceURL", 'c', \
+ { "ProviderID", SNIPPET_CONTENT, (void**)&(env->ProviderID) }, \
+ { "ProviderName", SNIPPET_CONTENT, (void**)&(env->ProviderName) }, \
+ { "AssertionConsumerServiceURL", SNIPPET_CONTENT, \
(void**)&(env->AssertionConsumerServiceURL) }, \
- { "IDPList", 'n', (void**)&(env->IDPList) }, \
- { "IsPassive", 'c', (void**)&is_passive }, \
+ { "IDPList", SNIPPET_NODE, (void**)&(env->IDPList) }, \
+ { "IsPassive", SNIPPET_CONTENT, (void**)&is_passive }, \
{ NULL, 0, NULL} \
};
@@ -91,7 +91,7 @@ get_xmlNode(LassoNode *node)
xmlnode = xmlNewNode(NULL, "AuthnRequestEnvelope");
xmlSetNs(xmlnode, xmlNewNs(xmlnode, LASSO_LIB_HREF, LASSO_LIB_PREFIX));
is_passive = env->IsPassive ? "true" : "false";
- lasso_node_build_xml_with_snippets(xmlnode, snippets);
+ build_xml_with_snippets(xmlnode, snippets);
return xmlnode;
}
@@ -103,7 +103,7 @@ 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);
+ init_xml_with_snippets(xmlnode, snippets);
if (is_passive) {
env->IsPassive = (strcmp(is_passive, "true") == 0);
xmlFree(is_passive);