summaryrefslogtreecommitdiffstats
path: root/lasso/xml
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-01-15 08:26:31 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-01-15 08:26:31 +0000
commit849f76d1fcdbd04470491d0fb3512cc5328fd1e4 (patch)
tree2facb0f1f0dc8c511e1f6cc1eb8dac9567518dcf /lasso/xml
parent41ddda5a85ce98a4d38931da4edb3f0db191e885 (diff)
FIX ABI breakage between 2.2.1 and 2.2.2 in LassoSamlAdvice
* lasso/xml/saml_advice.c lasso/xml/saml_advice.h: restore fields AssertionIDReference and Assertion, remove field any to restore state from 2.2.1 * lasso/id-ff/session.c: use xmlNode stored inside LassoSamlAssertion objects instead of accessing the 'any' list of xmlNode that was inserted in LassoSamlAdvice.
Diffstat (limited to 'lasso/xml')
-rw-r--r--lasso/xml/saml_advice.c5
-rw-r--r--lasso/xml/saml_advice.h6
2 files changed, 7 insertions, 4 deletions
diff --git a/lasso/xml/saml_advice.c b/lasso/xml/saml_advice.c
index 9d440ba2..8c45cc2a 100644
--- a/lasso/xml/saml_advice.c
+++ b/lasso/xml/saml_advice.c
@@ -54,10 +54,9 @@
/*****************************************************************************/
static struct XmlSnippet schema_snippets[] = {
-/* { "AssertionIDReference", SNIPPET_LIST_CONTENT,
+ { "AssertionIDReference", SNIPPET_LIST_CONTENT,
G_STRUCT_OFFSET(LassoSamlAdvice, AssertionIDReference), NULL, NULL, NULL},
- { "Assertion", SNIPPET_NODE, G_STRUCT_OFFSET(LassoSamlAdvice, Assertion), NULL, NULL, NULL}, */
- { "", SNIPPET_LIST_XMLNODES, G_STRUCT_OFFSET(LassoSamlAdvice, any), NULL, NULL, NULL},
+ { "Assertion", SNIPPET_NODE, G_STRUCT_OFFSET(LassoSamlAdvice, Assertion), NULL, NULL, NULL},
{NULL, 0, 0, NULL, NULL, NULL}
};
diff --git a/lasso/xml/saml_advice.h b/lasso/xml/saml_advice.h
index 2b3cdea7..82b0ecc2 100644
--- a/lasso/xml/saml_advice.h
+++ b/lasso/xml/saml_advice.h
@@ -49,7 +49,11 @@ struct _LassoSamlAdvice {
LassoNode parent;
/*< public >*/
- GList *any; /* of xmlNode */
+ /* <element ref="saml:AssertionIDReference"/> */
+ GList *AssertionIDReference; /* of LassoNode */
+ /* <element ref="saml:Assertion"/> */
+ LassoNode *Assertion; /* actually LassoSamlAssertion* but it recurses */
+
};
struct _LassoSamlAdviceClass {