From 4c681bec800b40297dbfd2ff39ec343e27c7d5bd Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Sun, 29 Oct 2006 18:04:53 +0000 Subject: default value set to -1 and marked as optionals --- lasso/xml/saml-2.0/samlp2_authn_request.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lasso/xml/saml-2.0/samlp2_authn_request.c b/lasso/xml/saml-2.0/samlp2_authn_request.c index a8daa457..ce6e2e33 100644 --- a/lasso/xml/saml-2.0/samlp2_authn_request.c +++ b/lasso/xml/saml-2.0/samlp2_authn_request.c @@ -71,11 +71,13 @@ static struct XmlSnippet schema_snippets[] = { G_STRUCT_OFFSET(LassoSamlp2AuthnRequest, IsPassive) }, { "ProtocolBinding", SNIPPET_ATTRIBUTE, G_STRUCT_OFFSET(LassoSamlp2AuthnRequest, ProtocolBinding) }, - { "AssertionConsumerServiceIndex", SNIPPET_ATTRIBUTE | SNIPPET_INTEGER, + { "AssertionConsumerServiceIndex", + SNIPPET_ATTRIBUTE | SNIPPET_INTEGER | SNIPPET_OPTIONAL_NEG, G_STRUCT_OFFSET(LassoSamlp2AuthnRequest, AssertionConsumerServiceIndex) }, { "AssertionConsumerServiceURL", SNIPPET_ATTRIBUTE, G_STRUCT_OFFSET(LassoSamlp2AuthnRequest, AssertionConsumerServiceURL) }, - { "AttributeConsumingServiceIndex", SNIPPET_ATTRIBUTE | SNIPPET_INTEGER, + { "AttributeConsumingServiceIndex", + SNIPPET_ATTRIBUTE | SNIPPET_INTEGER | SNIPPET_OPTIONAL_NEG, G_STRUCT_OFFSET(LassoSamlp2AuthnRequest, AttributeConsumingServiceIndex) }, { "ProviderName", SNIPPET_ATTRIBUTE, G_STRUCT_OFFSET(LassoSamlp2AuthnRequest, ProviderName) }, @@ -128,7 +130,7 @@ instance_init(LassoSamlp2AuthnRequest *node) node->ProtocolBinding = NULL; node->AssertionConsumerServiceIndex = -1; node->AssertionConsumerServiceURL = NULL; - node->AttributeConsumingServiceIndex = 0; + node->AttributeConsumingServiceIndex = -1; node->ProviderName = NULL; } -- cgit