summaryrefslogtreecommitdiffstats
path: root/lasso/xml/xml.h
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-03-27 15:04:41 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-03-27 15:04:41 +0000
commit7f09fe60de4f66a35ef751d8dd902066e196860b (patch)
treea178545feb8606bb4a9bdeb0bb1526fd5d8740ac /lasso/xml/xml.h
parenta017ddc81ec438462924dd5ad552c83b7b8d7849 (diff)
downloadlasso-7f09fe60de4f66a35ef751d8dd902066e196860b.tar.gz
lasso-7f09fe60de4f66a35ef751d8dd902066e196860b.tar.xz
lasso-7f09fe60de4f66a35ef751d8dd902066e196860b.zip
Fix bug #94: permit any content for AttributeValue
* lasso/xml/private.h: * lasso/xml/xml.h * lassoi/xml/xml.c: add an implementation helper for the AttributeValue objects implementation of get_xmlNode. make lasso_node_set_original_xmlnode public API. * lasso/xml/saml-2.0/samlp2_extensions.c: * lasso/xml/saml-2.0/saml2_attribute_value.c: * lasso/xml/saml_attribute_value.c: implement get_xmlNode for the AttributeValue and Extensions objects. If the any field is empty, use the original_xmlnode value. In order to support free-style content, you must use the method lasso_node_set_original_xmlnode, properties and children are extracted from the given node and added to the node created by the generic get_xmlNode virtual method.
Diffstat (limited to 'lasso/xml/xml.h')
-rw-r--r--lasso/xml/xml.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lasso/xml/xml.h b/lasso/xml/xml.h
index 89410fdc..255fdec0 100644
--- a/lasso/xml/xml.h
+++ b/lasso/xml/xml.h
@@ -148,9 +148,13 @@ LASSO_EXPORT char* lasso_node_export_to_ecp_soap_response(LassoNode *node,
const char *assertionConsumerURL);
LASSO_EXPORT xmlNode* lasso_node_get_xmlNode(LassoNode *node, gboolean lasso_dump);
+
LASSO_EXPORT xmlNode* lasso_node_get_original_xmlnode(LassoNode *node);
+LASSO_EXPORT void lasso_node_set_original_xmlnode(LassoNode *node, xmlNode* xmlNode);
+
LASSO_EXPORT LassoMessageFormat lasso_node_init_from_message(LassoNode *node, const char *message);
+
LASSO_EXPORT gboolean lasso_node_init_from_query(LassoNode *node, const char *query);
LASSO_EXPORT int lasso_node_init_from_xml(LassoNode *node, xmlNode *xmlnode);