summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2006-10-29 18:04:53 +0000
committerFrederic Peters <fpeters@entrouvert.com>2006-10-29 18:04:53 +0000
commit4c681bec800b40297dbfd2ff39ec343e27c7d5bd (patch)
tree7f768169d95cc247a4c507caeedad75f07e833d4
parent9833e37aa943bc67082877ba4a070c762002eb17 (diff)
downloadlasso-4c681bec800b40297dbfd2ff39ec343e27c7d5bd.tar.gz
lasso-4c681bec800b40297dbfd2ff39ec343e27c7d5bd.tar.xz
lasso-4c681bec800b40297dbfd2ff39ec343e27c7d5bd.zip
default value set to -1 and marked as optionals
-rw-r--r--lasso/xml/saml-2.0/samlp2_authn_request.c8
1 files 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;
}