diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-06-11 14:14:27 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-06-11 14:14:27 +0000 |
| commit | a77b7f8f4b44c1af152b2769ef355abf4e82922b (patch) | |
| tree | bdb8131b93f7650c8e7287a619c7c8cbf4ac6744 | |
| parent | b13f45e455d2845260e5fdf7096279ceff643362 (diff) | |
update type of isPassive and forceAuthn params, instead use gboolean
| -rw-r--r-- | lasso/xml/lib_authn_request.c | 17 | ||||
| -rw-r--r-- | lasso/xml/lib_authn_request.h | 4 |
2 files changed, 11 insertions, 10 deletions
diff --git a/lasso/xml/lib_authn_request.c b/lasso/xml/lib_authn_request.c index e457556a..ee288569 100644 --- a/lasso/xml/lib_authn_request.c +++ b/lasso/xml/lib_authn_request.c @@ -117,30 +117,31 @@ lasso_lib_authn_request_set_consent(LassoLibAuthnRequest *node, void lasso_lib_authn_request_set_forceAuthn(LassoLibAuthnRequest *node, - gint forceAuthn) { + gboolean forceAuthn) { g_assert(LASSO_IS_LIB_AUTHN_REQUEST(node)); - g_assert(forceAuthn == 0 || forceAuthn == 1); + g_assert(forceAuthn == FALSE || forceAuthn == TRUE); LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); - if (forceAuthn == 0) { + + if (forceAuthn == FALSE) { class->new_child(LASSO_NODE (node), "ForceAuthn", "false", FALSE); } - if (forceAuthn == 1) { + if (forceAuthn == TRUE) { class->new_child(LASSO_NODE (node), "ForceAuthn", "true", FALSE); } } void lasso_lib_authn_request_set_isPassive(LassoLibAuthnRequest *node, - gint isPassive) { + gboolean isPassive) { g_assert(LASSO_IS_LIB_AUTHN_REQUEST(node)); - g_assert(isPassive == 0 || isPassive == 1); + g_assert(isPassive == FALSE || isPassive == TRUE); LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); - if (isPassive == 0) { + if (isPassive == FALSE) { class->new_child(LASSO_NODE (node), "IsPassive", "false", FALSE); } - if (isPassive == 1) { + if (isPassive == TRUE) { class->new_child(LASSO_NODE (node), "IsPassive", "true", FALSE); } } diff --git a/lasso/xml/lib_authn_request.h b/lasso/xml/lib_authn_request.h index 1717146c..1c7f5eb1 100644 --- a/lasso/xml/lib_authn_request.h +++ b/lasso/xml/lib_authn_request.h @@ -65,10 +65,10 @@ LASSO_EXPORT void lasso_lib_authn_request_set_consent (LassoL const xmlChar *); LASSO_EXPORT void lasso_lib_authn_request_set_forceAuthn (LassoLibAuthnRequest *, - gint); + gboolean); LASSO_EXPORT void lasso_lib_authn_request_set_isPassive (LassoLibAuthnRequest *, - gint); + gboolean); LASSO_EXPORT void lasso_lib_authn_request_set_nameIDPolicy (LassoLibAuthnRequest *node, const xmlChar *nameIDPolicy); |
