diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-19 10:44:27 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-19 10:44:27 +0000 |
| commit | 5a4255225e5ace31327834f2e472d4490d5cdca0 (patch) | |
| tree | 7bf03e92da3139269fb6a7c616e62ace485a1cba | |
| parent | 1e140530aade860f45632b9332ac4ac7c2ac3208 (diff) | |
| download | lasso-5a4255225e5ace31327834f2e472d4490d5cdca0.tar.gz lasso-5a4255225e5ace31327834f2e472d4490d5cdca0.tar.xz lasso-5a4255225e5ace31327834f2e472d4490d5cdca0.zip | |
XML SAML-2.0: AuthnContext content is a xdf:choice so make content optional
- lasso/xml/saml-2.0/saml2_authn_context.c:
<AuthnContext/> can contain at least one node among:
- <AuthnContextClassRef/>
- <AuthnContextDeclRef/>
- <AuthnContextDecl/>
to approximate this possibility, we need to make any of them
optional.
<AuthenticatingAuthority/> should be a list but we cannot change it
without breaking the ABI, so we will wait for this.
| -rw-r--r-- | lasso/xml/saml-2.0/saml2_authn_context.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lasso/xml/saml-2.0/saml2_authn_context.c b/lasso/xml/saml-2.0/saml2_authn_context.c index 208ba3d1..9d58412e 100644 --- a/lasso/xml/saml-2.0/saml2_authn_context.c +++ b/lasso/xml/saml-2.0/saml2_authn_context.c @@ -60,13 +60,13 @@ static struct XmlSnippet schema_snippets[] = { - { "AuthnContextClassRef", SNIPPET_CONTENT, + { "AuthnContextClassRef", SNIPPET_CONTENT | SNIPPET_OPTIONAL, G_STRUCT_OFFSET(LassoSaml2AuthnContext, AuthnContextClassRef), NULL, NULL, NULL}, - { "AuthnContextDecl", SNIPPET_NODE, + { "AuthnContextDecl", SNIPPET_NODE | SNIPPET_OPTIONAL, G_STRUCT_OFFSET(LassoSaml2AuthnContext, AuthnContextDecl), NULL, NULL, NULL}, - { "AuthnContextDeclRef", SNIPPET_CONTENT, + { "AuthnContextDeclRef", SNIPPET_CONTENT | SNIPPET_OPTIONAL, G_STRUCT_OFFSET(LassoSaml2AuthnContext, AuthnContextDeclRef), NULL, NULL, NULL}, - { "AuthenticatingAuthority", SNIPPET_CONTENT, + { "AuthenticatingAuthority", SNIPPET_CONTENT | SNIPPET_OPTIONAL, G_STRUCT_OFFSET(LassoSaml2AuthnContext, AuthenticatingAuthority), NULL, NULL, NULL}, {NULL, 0, 0, NULL, NULL, NULL} }; |
