summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2005-09-20 08:16:41 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2005-09-20 08:16:41 +0000
commite4d1c1aff87570c08f0dd67fa46e53f2d047352e (patch)
tree4530cfe914002aa03a2b9748607e97a31a0dccda
parentbc6c852e6319e69364aabe76acabfdb98317babe (diff)
downloadlasso-e4d1c1aff87570c08f0dd67fa46e53f2d047352e.tar.gz
lasso-e4d1c1aff87570c08f0dd67fa46e53f2d047352e.tar.xz
lasso-e4d1c1aff87570c08f0dd67fa46e53f2d047352e.zip
Ordered methods.
-rw-r--r--lasso/id-wsf/wsf_profile.c63
1 files changed, 31 insertions, 32 deletions
diff --git a/lasso/id-wsf/wsf_profile.c b/lasso/id-wsf/wsf_profile.c
index bbddd277..e67279f6 100644
--- a/lasso/id-wsf/wsf_profile.c
+++ b/lasso/id-wsf/wsf_profile.c
@@ -34,6 +34,21 @@
/* private methods */
/*****************************************************************************/
+gint
+lasso_wsf_profile_add_saml_authentication(LassoWsfProfile *profile, LassoSamlAssertion *credential)
+{
+ LassoSoapHeader *header;
+ LassoWsseSecurity *security;
+ GList *iter;
+
+ security = lasso_wsse_security_new();
+ security->any = g_list_append(security->any, credential);
+ header = profile->soap_envelope_request->Header;
+ header->Other = g_list_append(header->Other, security);
+
+ return 0;
+}
+
LassoSoapEnvelope*
lasso_wsf_profile_build_soap_envelope(const char *refToMessageId, const char *providerId)
{
@@ -68,9 +83,19 @@ lasso_wsf_profile_build_soap_envelope(const char *refToMessageId, const char *pr
return envelope;
}
-/*****************************************************************************/
-/* public methods */
-/*****************************************************************************/
+gboolean
+lasso_security_mech_id_is_saml_authentication(const gchar *security_mech_id)
+{
+ if (!security_mech_id)
+ return FALSE;
+
+ 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;
+
+ return FALSE;
+}
gint
lasso_wsf_profile_verify_saml_authentication(LassoWsfProfile *profile)
@@ -109,35 +134,9 @@ lasso_wsf_profile_verify_saml_authentication(LassoWsfProfile *profile)
return 0;
}
-gboolean
-lasso_security_mech_id_is_saml_authentication(const gchar *security_mech_id)
-{
- if (!security_mech_id)
- return FALSE;
-
- 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;
-
- return FALSE;
-}
-
-gint
-lasso_wsf_profile_add_saml_authentication(LassoWsfProfile *profile, LassoSamlAssertion *credential)
-{
- LassoSoapHeader *header;
- LassoWsseSecurity *security;
- GList *iter;
-
- security = lasso_wsse_security_new();
- security->any = g_list_append(security->any, credential);
- header = profile->soap_envelope_request->Header;
- header->Other = g_list_append(header->Other, security);
-
- return 0;
-}
-
+/*****************************************************************************/
+/* public methods */
+/*****************************************************************************/
/**
* lasso_wsf_profile_get_identity: