diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2005-09-30 16:05:31 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2005-09-30 16:05:31 +0000 |
| commit | 3fafefe7ded8cb006a33be5bc642502d1087c7c4 (patch) | |
| tree | 6e8cffff60ce5ba655d35d7a4ce745bb15a782a3 | |
| parent | 8d7f62b5bfc5c8e415d6210d02128bef7262a03b (diff) | |
Added private function lasso_wsf_profile_has_saml_authentication() to know if a saml authentication mecanism exists in current description.
| -rw-r--r-- | lasso/id-wsf/wsf_profile.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lasso/id-wsf/wsf_profile.c b/lasso/id-wsf/wsf_profile.c index cdf8a13e..df429568 100644 --- a/lasso/id-wsf/wsf_profile.c +++ b/lasso/id-wsf/wsf_profile.c @@ -80,6 +80,30 @@ lasso_wsf_profile_get_fault(LassoWsfProfile *profile) } gboolean +lasso_wsf_profile_has_saml_authentication(LassoWsfProfile *profile) +{ + GList *iter; + gchar *security_mech_id; + + if (!profile->private_data->description) + return FALSE; + + iter = profile->private_data->description->SecurityMechID; + while(iter) { + security_mech_id = iter->data; + if (strcmp(security_mech_id, LASSO_SECURITY_MECH_SAML) == 0 || \ + strcmp(security_mech_id, LASSO_SECURITY_MECH_TLS_SAML) == 0 || \ + strcmp(security_mech_id, LASSO_SECURITY_MECH_CLIENT_TLS_SAML) == 0) { + return TRUE; + break; + } + iter = iter->next; + } + + return FALSE; +} + +gboolean lasso_wsf_profile_has_x509_authentication(LassoWsfProfile *profile) { GList *iter; |
