summaryrefslogtreecommitdiffstats
path: root/lasso/id-ff
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-09-12 15:06:58 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2008-09-12 15:06:58 +0000
commit9ed0670e48665f590eda685e0cfebf8c4cadb8fb (patch)
treea3f909876ca336256b304de9a350ab526d16abea /lasso/id-ff
parent73d9c98f92b9664c6d78843c4110b71520fa3f67 (diff)
downloadlasso-9ed0670e48665f590eda685e0cfebf8c4cadb8fb.tar.gz
lasso-9ed0670e48665f590eda685e0cfebf8c4cadb8fb.tar.xz
lasso-9ed0670e48665f590eda685e0cfebf8c4cadb8fb.zip
* Remove ending blanks
Diffstat (limited to 'lasso/id-ff')
-rw-r--r--lasso/id-ff/defederation.c36
-rw-r--r--lasso/id-ff/defederation.h12
-rw-r--r--lasso/id-ff/federation.c6
-rw-r--r--lasso/id-ff/federation.h10
-rw-r--r--lasso/id-ff/identity.c16
-rw-r--r--lasso/id-ff/identity.h10
-rw-r--r--lasso/id-ff/identityprivate.h8
-rw-r--r--lasso/id-ff/lecp.c26
-rw-r--r--lasso/id-ff/lecp.h12
-rw-r--r--lasso/id-ff/login.c148
-rw-r--r--lasso/id-ff/login.h12
-rw-r--r--lasso/id-ff/loginprivate.h10
-rw-r--r--lasso/id-ff/logout.c62
-rw-r--r--lasso/id-ff/logout.h12
-rw-r--r--lasso/id-ff/logoutprivate.h10
-rw-r--r--lasso/id-ff/name_identifier_mapping.c38
-rw-r--r--lasso/id-ff/name_identifier_mapping.h14
-rw-r--r--lasso/id-ff/name_registration.c56
-rw-r--r--lasso/id-ff/name_registration.h12
-rw-r--r--lasso/id-ff/profile.c14
-rw-r--r--lasso/id-ff/profile.h12
-rw-r--r--lasso/id-ff/profileprivate.h10
-rw-r--r--lasso/id-ff/provider.c24
-rw-r--r--lasso/id-ff/provider.h14
-rw-r--r--lasso/id-ff/providerprivate.h10
-rw-r--r--lasso/id-ff/server.c32
-rw-r--r--lasso/id-ff/server.h12
-rw-r--r--lasso/id-ff/serverprivate.h10
-rw-r--r--lasso/id-ff/session.c20
-rw-r--r--lasso/id-ff/session.h12
-rw-r--r--lasso/id-ff/sessionprivate.h14
31 files changed, 347 insertions, 347 deletions
diff --git a/lasso/id-ff/defederation.c b/lasso/id-ff/defederation.c
index 92a7aafe..f6556829 100644
--- a/lasso/id-ff/defederation.c
+++ b/lasso/id-ff/defederation.c
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -43,9 +43,9 @@
/**
* lasso_defederation_build_notification_msg:
* @defederation: a #LassoDefederation
- *
+ *
* Builds the federation termination notification message.
- *
+ *
* It gets the federation termination notification protocol profile and:
* <itemizedlist>
* <listitem><para>
@@ -62,7 +62,7 @@
* object, sets @msg_body to NULL.
* </para></listitem>
* </itemizedlist>
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -97,9 +97,9 @@ lasso_defederation_build_notification_msg(LassoDefederation *defederation)
/* build the logout request message */
profile->msg_url = lasso_provider_get_metadata_one(
remote_provider, "SoapEndpoint");
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
profile->server->private_key;
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
profile->server->certificate;
profile->msg_body = lasso_node_export_to_soap(LASSO_NODE(profile->request));
return 0;
@@ -136,7 +136,7 @@ lasso_defederation_build_notification_msg(LassoDefederation *defederation)
/**
* lasso_defederation_destroy:
* @defederation: a #LassoDefederation
- *
+ *
* Destroys a #LassoDefederation object.
**/
void
@@ -155,7 +155,7 @@ lasso_defederation_destroy(LassoDefederation *defederation)
* Sets a new federation termination notification to the remote provider id
* with the provider id of the requester (from the server object) and the name
* identifier of the federated principal.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -238,7 +238,7 @@ lasso_defederation_init_notification(LassoDefederation *defederation, gchar *rem
profile->request = lasso_lib_federation_termination_notification_new_full(
LASSO_PROVIDER(profile->server)->ProviderID,
nameIdentifier,
- profile->server->certificate ?
+ profile->server->certificate ?
LASSO_SIGNATURE_TYPE_WITHX509 : LASSO_SIGNATURE_TYPE_SIMPLE,
LASSO_SIGNATURE_METHOD_RSA_SHA1);
if (profile->msg_relayState) {
@@ -253,7 +253,7 @@ lasso_defederation_init_notification(LassoDefederation *defederation, gchar *rem
nameIdentifier,
LASSO_SIGNATURE_TYPE_NONE,
0);
- LASSO_LIB_FEDERATION_TERMINATION_NOTIFICATION(profile->request)->RelayState =
+ LASSO_LIB_FEDERATION_TERMINATION_NOTIFICATION(profile->request)->RelayState =
g_strdup(profile->msg_relayState);
}
@@ -282,10 +282,10 @@ lasso_defederation_init_notification(LassoDefederation *defederation, gchar *rem
* lasso_defederation_process_notification_msg:
* @defederation: the federation termination object
* @notification_msg: the federation termination notification message
- *
+ *
* Processes a lib:FederationTerminationNotification message. Rebuilds a
* request object from the message and optionally verifies its signature.
- *
+ *
* Set the msg_nameIdentifier attribute with the NameIdentifier content of the
* notification object and optionally set the msg_relayState attribute with the
* RelayState content of the notification object.
@@ -343,10 +343,10 @@ lasso_defederation_process_notification_msg(LassoDefederation *defederation, cha
/**
* lasso_defederation_validate_notification:
* @defederation: a #LassoDefederation
- *
+ *
* Checks notification with regards to message status and principal
* federations; update them accordingly.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -463,7 +463,7 @@ lasso_defederation_get_type()
/**
* lasso_defederation_new:
* @server: the #LassoServer
- *
+ *
* Creates a new #LassoDefederation.
*
* Return value: a newly created #LassoDefederation object; or NULL if an error
diff --git a/lasso/id-ff/defederation.h b/lasso/id-ff/defederation.h
index 97ca0ac4..360650d8 100644
--- a/lasso/id-ff/defederation.h
+++ b/lasso/id-ff/defederation.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/id-ff/profile.h>
#include <lasso/xml/lib_federation_termination_notification.h>
@@ -41,7 +41,7 @@ extern "C" {
#define LASSO_IS_DEFEDERATION_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_DEFEDERATION))
#define LASSO_DEFEDERATION_GET_CLASS(o) \
- (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_DEFEDERATION, LassoDefederationClass))
+ (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_DEFEDERATION, LassoDefederationClass))
typedef struct _LassoDefederation LassoDefederation;
typedef struct _LassoDefederationClass LassoDefederationClass;
diff --git a/lasso/id-ff/federation.c b/lasso/id-ff/federation.c
index ca3ab69d..2ca96afc 100644
--- a/lasso/id-ff/federation.c
+++ b/lasso/id-ff/federation.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
diff --git a/lasso/id-ff/federation.h b/lasso/id-ff/federation.h
index f7ef28a6..b0c83959 100644
--- a/lasso/id-ff/federation.h
+++ b/lasso/id-ff/federation.h
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/xml/xml.h>
#include <lasso/xml/saml_name_identifier.h>
@@ -41,7 +41,7 @@ extern "C" {
#define LASSO_IS_FEDERATION_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_FEDERATION))
#define LASSO_FEDERATION_GET_CLASS(o) \
- (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_FEDERATION, LassoFederationClass))
+ (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_FEDERATION, LassoFederationClass))
typedef struct _LassoFederation LassoFederation;
typedef struct _LassoFederationClass LassoFederationClass;
diff --git a/lasso/id-ff/identity.c b/lasso/id-ff/identity.c
index 9ef09322..2efde058 100644
--- a/lasso/id-ff/identity.c
+++ b/lasso/id-ff/identity.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -205,10 +205,10 @@ struct HelperStruct {
* type string */
static
void add_matching_resource_offering_to_list(char *name, LassoDiscoResourceOffering *offering,
- struct HelperStruct *ctx)
+ struct HelperStruct *ctx)
{
if (ctx->service_type == NULL ||
- ( offering->ServiceInstance != NULL &&
+ ( offering->ServiceInstance != NULL &&
offering->ServiceInstance->ServiceType != NULL &&
strcmp(offering->ServiceInstance->ServiceType, ctx->service_type) == 0)) {
lasso_list_add(ctx->list, offering);
@@ -231,7 +231,7 @@ lasso_identity_get_offerings(LassoIdentity *identity, const char *service_type)
g_return_val_if_fail(LASSO_IS_IDENTITY(identity), NULL);
- g_hash_table_foreach(identity->private_data->resource_offerings_map,
+ g_hash_table_foreach(identity->private_data->resource_offerings_map,
(GHFunc)add_matching_resource_offering_to_list, &ctx);
return ctx.list;
@@ -321,7 +321,7 @@ get_xmlNode(LassoNode *node, G_GNUC_UNUSED gboolean lasso_dump)
(GHFunc)add_childnode_from_hashtable, xmlnode);
#ifdef LASSO_WSF_ENABLED
/* Resource Offerings */
- g_hash_table_foreach(identity->private_data->resource_offerings_map,
+ g_hash_table_foreach(identity->private_data->resource_offerings_map,
(GHFunc)add_childnode_from_hashtable, xmlnode);
/* Service Metadatas IDs (svcMDID) */
@@ -446,7 +446,7 @@ instance_init(LassoIdentity *identity)
#ifdef LASSO_WSF_ENABLED
identity->private_data->svcMDID = NULL;
identity->private_data->last_entry_id = 0;
- identity->private_data->resource_offerings_map = g_hash_table_new_full(g_str_hash,
+ identity->private_data->resource_offerings_map = g_hash_table_new_full(g_str_hash,
g_str_equal, (GDestroyNotify)g_free, (GDestroyNotify)g_object_unref);
#endif
identity->federations = g_hash_table_new_full(g_str_hash, g_str_equal,
diff --git a/lasso/id-ff/identity.h b/lasso/id-ff/identity.h
index e84ed322..82396c05 100644
--- a/lasso/id-ff/identity.h
+++ b/lasso/id-ff/identity.h
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/xml/xml.h>
#include <lasso/id-ff/federation.h>
@@ -39,7 +39,7 @@ extern "C" {
#define LASSO_IS_IDENTITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_IDENTITY))
#define LASSO_IS_IDENTITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_IDENTITY))
#define LASSO_IDENTITY_GET_CLASS(o) \
- (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_IDENTITY, LassoIdentityClass))
+ (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_IDENTITY, LassoIdentityClass))
typedef struct _LassoIdentity LassoIdentity;
typedef struct _LassoIdentityClass LassoIdentityClass;
diff --git a/lasso/id-ff/identityprivate.h b/lasso/id-ff/identityprivate.h
index e92159b6..67086a50 100644
--- a/lasso/id-ff/identityprivate.h
+++ b/lasso/id-ff/identityprivate.h
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
gint lasso_identity_add_federation(LassoIdentity *identity, LassoFederation *federation);
gint lasso_identity_remove_federation(LassoIdentity *identity, const char *providerID);
diff --git a/lasso/id-ff/lecp.c b/lasso/id-ff/lecp.c
index 7e1690c3..53eb5c96 100644
--- a/lasso/id-ff/lecp.c
+++ b/lasso/id-ff/lecp.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -84,10 +84,10 @@ lasso_lecp_build_authn_request_envelope_msg(LassoLecp *lecp)
LASSO_SAMLP_REQUEST_ABSTRACT(lecp->authnRequestEnvelope->AuthnRequest)->certificate_file =
LASSO_PROFILE(lecp)->server->certificate;
msg = lasso_node_get_xmlNode(LASSO_NODE(lecp->authnRequestEnvelope), FALSE);
-
+
/* msg is not SOAP but straight XML */
handler = xmlFindCharEncodingHandler("utf-8");
- buf = xmlAllocOutputBuffer(handler);
+ buf = xmlAllocOutputBuffer(handler);
xmlNodeDumpOutput(buf, NULL, msg, 0, 0, "utf-8");
xmlOutputBufferFlush(buf);
@@ -106,10 +106,10 @@ lasso_lecp_build_authn_request_envelope_msg(LassoLecp *lecp)
/**
* lasso_lecp_build_authn_request_msg:
* @lecp: a #LassoLecp
- *
+ *
* Builds an authentication request. The data for the sending of the request are
* stored in @msg_url and @msg_body (SOAP POST).
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
int
@@ -268,7 +268,7 @@ lasso_lecp_init_authn_request(LassoLecp *lecp, const char *remote_providerID)
*
* Processes received authentication request, checks it is signed correctly,
* checks if requested protocol profile is supported, etc.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
int
@@ -288,7 +288,7 @@ lasso_lecp_process_authn_request_msg(LassoLecp *lecp, const char *authn_request_
*
* Processes received enveloped authentication request, extracts the
* authentication request out of it.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
int
@@ -357,7 +357,7 @@ lasso_lecp_process_authn_request_envelope_msg(LassoLecp *lecp, const char *reque
*
* Processes received enveloped authentication response, extracts the
* authentication response out of it and stores it in @response.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
int
@@ -397,7 +397,7 @@ lasso_lecp_process_authn_response_envelope_msg(LassoLecp *lecp, const char *resp
* @lecp: a #LassoLecp
*
* Destroys a #LassoLecp object
- *
+ *
**/
void
lasso_lecp_destroy(LassoLecp *lecp)
@@ -417,7 +417,7 @@ static LassoNodeClass *parent_class = NULL;
static void
finalize(GObject *object)
-{
+{
G_OBJECT_CLASS(parent_class)->finalize(object);
}
@@ -437,7 +437,7 @@ static void
class_init(LassoLecpClass *klass)
{
parent_class = g_type_class_peek_parent(klass);
-
+
G_OBJECT_CLASS(klass)->finalize = finalize;
}
diff --git a/lasso/id-ff/lecp.h b/lasso/id-ff/lecp.h
index d613c6d5..e9139d43 100644
--- a/lasso/id-ff/lecp.h
+++ b/lasso/id-ff/lecp.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/xml/xml.h>
@@ -41,7 +41,7 @@ extern "C" {
#define LASSO_LECP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), LASSO_TYPE_LECP, LassoLecpClass))
#define LASSO_IS_LECP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_LECP))
#define LASSO_IS_LECP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_LECP))
-#define LASSO_LECP_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_LECP, LassoLecpClass))
+#define LASSO_LECP_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_LECP, LassoLecpClass))
typedef struct _LassoLecp LassoLecp;
typedef struct _LassoLecpClass LassoLecpClass;
diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c
index 4015ba1b..87f6033d 100644
--- a/lasso/id-ff/login.c
+++ b/lasso/id-ff/login.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -52,30 +52,30 @@
* </itemizedlist>
* </para></listitem>
* </itemizedlist>
- * </para>
+ * </para>
* <example>
* <title>Service Provider Login URL</title>
* <programlisting>
* LassoLogin *login;
- *
+ *
* login = lasso_login_new(server);
* lasso_login_init_authn_request(login, "http://identity-provider-id/",
* LASSO_HTTP_METHOD_REDIRECT);
- *
+ *
* // customize AuthnRequest
* request = LASSO_LIB_AUTHN_REQUEST(LASSO_PROFILE(login)->request);
* request->NameIDPolicy = strdup(LASSO_LIB_NAMEID_POLICY_TYPE_FEDERATED);
* request->ForceAuthn = TRUE;
* request->IsPassive = FALSE;
* request->ProtocolProfile = strdup(LASSO_LIB_PROTOCOL_PROFILE_BRWS_ART);
- *
+ *
* lasso_login_build_authn_request_msg(login);
- *
+ *
* // redirect user to identity provider
* printf("Location: %s\n\nRedirected to IdP\n", LASSO_PROFILE(login)->msg_url);
* </programlisting>
* </example>
- *
+ *
* <example>
* <title>Service Provider Assertion Consumer Service URL</title>
* <programlisting>
@@ -84,7 +84,7 @@
* char *artifact_msg = NULL, *lares = NULL, *lareq = NULL;
* char *name_identifier;
* lassoHttpMethod method;
- *
+ *
* login = lasso_login_new(server);
* if (strcmp(request_method, "GET") == 0) {
* artifact_msg = getenv("QUERY_STRING");
@@ -101,7 +101,7 @@
* }
* method = LASSO_HTTP_METHOD_POST;
* }
- *
+ *
* if (artifact_msg) {
* lasso_login_init_request(login, artifact_msg, method);
* lasso_login_build_request_msg(login);
@@ -112,15 +112,15 @@
* } else if (response_msg) {
* lasso_login_process_authn_response_msg(login, response_msg);
* }
- *
+ *
* // looks up name_identifier in local file, database, whatever and gets back
* // two things: identity_dump and session_dump
* name_identifier = LASSO_PROFILE(login)->nameIdentifier
* lasso_profile_set_identity_from_dump(LASSO_PROFILE(login), identity_dump);
* lasso_profile_set_session_from_dump(LASSO_PROFILE(login), session_dump);
- *
+ *
* lasso_login_accept_sso(login);
- *
+ *
* if (lasso_profile_is_identity_dirty(LASSO_PROFILE(login))) {
* LassoIdentity *identity;
* char *identity_dump;
@@ -128,7 +128,7 @@
* identity_dump = lasso_identity_dump(identity);
* // record identity_dump in file, database...
* }
- *
+ *
* if (lasso_profile_is_session_dirty(LASSO_PROFILE(login))) {
* LassoSession *session;
* char *session_dump;
@@ -136,12 +136,12 @@
* session_dump = lasso_session_dump(session);
* // record session_dump in file, database...
* }
- *
+ *
* // redirect user anywhere
* printf("Location: %s\n\nRedirected to site root\n", login->msg_url);
* </programlisting>
* </example>
- */
+ */
#include <xmlsec/base64.h>
@@ -205,7 +205,7 @@ lasso_login_assertion_add_discovery(LassoLogin *login)
LassoSamlAttributeValue *attributeValue;
serviceInstance = lasso_server_get_service(profile->server, LASSO_DISCO_HREF);
- if (LASSO_IS_DISCO_SERVICE_INSTANCE(serviceInstance) &&
+ if (LASSO_IS_DISCO_SERVICE_INSTANCE(serviceInstance) &&
login->private_data->resourceId) {
newServiceInstance = lasso_disco_service_instance_copy(serviceInstance);
@@ -240,7 +240,7 @@ lasso_login_assertion_add_discovery(LassoLogin *login)
* @authenticationInstant: the time at which the authentication took place
* @notBefore: the earliest time instant at which the assertion is valid
* @notOnOrAfter: the time instant at which the assertion has expired
- *
+ *
* Builds an assertion and stores it in profile session.
* @authenticationInstant, reauthenticateOnOrAfter, @notBefore and
* @notOnOrAfter may be NULL. If @authenticationInstant is NULL, the current
@@ -280,7 +280,7 @@ lasso_login_build_assertion(LassoLogin *login,
federation = g_hash_table_lookup(profile->identity->federations,
profile->remote_providerID);
-
+
assertion = LASSO_SAML_ASSERTION(lasso_lib_assertion_new_full(
LASSO_PROVIDER(profile->server)->ProviderID,
LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->RequestID,
@@ -353,7 +353,7 @@ lasso_login_build_assertion(LassoLogin *login,
lasso_session_add_assertion(profile->session, profile->remote_providerID,
LASSO_NODE(assertion));
- if (LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->MajorVersion == 1 &&
+ if (LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->MajorVersion == 1 &&
LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->MinorVersion < 2) {
/* pre-id-ff 1.2, saml 1.0 */
@@ -374,7 +374,7 @@ lasso_login_build_assertion(LassoLogin *login,
/* liberty-architecture-bindings-profiles-v1.1.pdf, page 24, line 729 */
ss->Subject->SubjectConfirmation->ConfirmationMethod = g_list_append(NULL,
g_strdup(LASSO_SAML_CONFIRMATION_METHOD_ARTIFACT01));
- ss->Subject->SubjectConfirmation->SubjectConfirmationData =
+ ss->Subject->SubjectConfirmation->SubjectConfirmationData =
g_strdup(login->assertionArtifact);
if (nameIdentifier) {
@@ -385,17 +385,17 @@ lasso_login_build_assertion(LassoLogin *login,
nameIdentifier->Format = NULL;
}
}
-
+
return 0;
}
/**
* lasso_login_must_ask_for_consent_private:
* @login: a #LassoLogin
- *
- * Evaluates if it is necessary to ask the consent of the Principal.
+ *
+ * Evaluates if it is necessary to ask the consent of the Principal.
* This method doesn't take the isPassive value into account.
- *
+ *
* Return value: TRUE or FALSE
**/
static gboolean
@@ -527,7 +527,7 @@ lasso_login_process_federation(LassoLogin *login, gboolean is_consent_obtained)
login->nameIDPolicy = g_strdup(LASSO_LIB_NAMEID_POLICY_TYPE_ONE_TIME);
return 0;
}
-
+
/* if protocolProfile is LASSO_LOGIN_PROTOCOL_PROFILE_BRWS_POST
* set StatusCode to FederationDoesNotExist in lib:AuthnResponse
*/
@@ -546,7 +546,7 @@ lasso_login_process_federation(LassoLogin *login, gboolean is_consent_obtained)
lasso_identity_add_federation(LASSO_PROFILE(login)->identity, federation);
}
- LASSO_PROFILE(login)->nameIdentifier =
+ LASSO_PROFILE(login)->nameIdentifier =
g_object_ref(LASSO_SAML_NAME_IDENTIFIER(federation->local_nameIdentifier));
return ret;
@@ -569,7 +569,7 @@ lasso_login_process_response_status_and_assertion(LassoLogin *login)
response = LASSO_SAMLP_RESPONSE(LASSO_PROFILE(login)->response);
- if (response->Status == NULL || ! LASSO_IS_SAMLP_STATUS(response->Status) ||
+ if (response->Status == NULL || ! LASSO_IS_SAMLP_STATUS(response->Status) ||
response->Status->StatusCode == NULL ||
response->Status->StatusCode->Value == NULL) {
return LASSO_PROFILE_ERROR_MISSING_STATUS_CODE;
@@ -678,12 +678,12 @@ lasso_login_process_response_status_and_assertion(LassoLogin *login)
/**
* lasso_login_accept_sso:
* @login: a #LassoLogin
- *
+ *
* Gets the assertion of the response and adds it into the session.
* Builds a federation with the 2 name identifiers of the assertion
* and adds it into the identity.
* If the session or the identity are NULL, they are created.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -700,7 +700,7 @@ lasso_login_accept_sso(LassoLogin *login)
profile = LASSO_PROFILE(login);
if (profile->identity == NULL)
- profile->identity = lasso_identity_new();
+ profile->identity = lasso_identity_new();
if (profile->session == NULL)
profile->session = lasso_session_new();
@@ -778,7 +778,7 @@ lasso_login_build_assertion_artifact(LassoLogin *login)
* lasso_login_build_artifact_msg:
* @login: a #LassoLogin
* @http_method: the HTTP method to send the artifact (REDIRECT or POST)
- *
+ *
* Builds a SAML artifact. Depending of the HTTP method, the data for the sending of
* the artifact are stored in @msg_url (REDIRECT) or @msg_url, @msg_body and
* @msg_relayState (POST).
@@ -880,7 +880,7 @@ lasso_login_build_artifact_msg(LassoLogin *login, LassoHttpMethod http_method)
if (relayState == NULL) {
query = g_strdup_printf("SAMLart=%s", escaped_artifact);
} else {
- query = g_strdup_printf("SAMLart=%s&RelayState=%s",
+ query = g_strdup_printf("SAMLart=%s&RelayState=%s",
escaped_artifact, relayState);
}
profile->msg_url = lasso_concat_url_query(url, query);
@@ -917,14 +917,14 @@ lasso_login_build_artifact_msg(LassoLogin *login, LassoHttpMethod http_method)
/**
* lasso_login_build_authn_request_msg:
* @login: a #LassoLogin
- *
+ *
* Converts profile authentication request (@request member) into a Liberty
* message, either an URL in HTTP-Redirect profile or an URL and a field value
* in Browser-POST (form) profile.
*
* The URL is set into the @msg_url member and the eventual field value (LAREQ)
* is set into the @msg_body member.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -1017,9 +1017,9 @@ lasso_login_build_authn_request_msg(LassoLogin *login)
* snippets so it is not freed on destroy, so it is
* normal to not strdup() it; nevertheless it would
* probably be more clean not to to it this way */
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
profile->server->private_key;
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
profile->server->certificate;
}
lareq = lasso_node_export_to_base64(profile->request);
@@ -1039,7 +1039,7 @@ lasso_login_build_authn_request_msg(LassoLogin *login)
/**
* lasso_login_build_authn_response_msg:
* @login: a #LassoLogin
- *
+ *
* Converts profile authentication response (@response member) into a Liberty
* message.
*
@@ -1090,9 +1090,9 @@ lasso_login_build_authn_response_msg(LassoLogin *login)
}
LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->sign_method =
LASSO_SIGNATURE_METHOD_RSA_SHA1;
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->private_key_file =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->private_key_file =
profile->server->private_key;
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->certificate_file =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->certificate_file =
profile->server->certificate;
/* build an lib:AuthnResponse base64 encoded */
@@ -1114,12 +1114,12 @@ lasso_login_build_authn_response_msg(LassoLogin *login)
/**
* lasso_login_build_request_msg:
* @login: a #LassoLogin
- *
+ *
* Converts profile artifact request into a Liberty SOAP message.
*
* The URL is set into the @msg_url member and the SOAP message is set into the
* @msg_body member.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -1144,7 +1144,7 @@ lasso_login_build_request_msg(LassoLogin *login)
LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
profile->server->private_key;
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
profile->server->certificate;
profile->msg_body = lasso_node_export_to_soap(profile->request);
@@ -1161,13 +1161,13 @@ lasso_login_build_request_msg(LassoLogin *login)
* lasso_login_build_response_msg:
* @login: a #LassoLogin
* @remote_providerID: service provider ID
- *
+ *
* Converts profile assertion response (@response member) into a Liberty SOAP
* messageresponse message.
*
* The URL is set into the @msg_url member and the SOAP message is set into the
* @msg_body member.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -1186,7 +1186,7 @@ lasso_login_build_response_msg(LassoLogin *login, gchar *remote_providerID)
}
profile->response = lasso_samlp_response_new();
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->InResponseTo =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->InResponseTo =
g_strdup(LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->RequestID);
if (LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->MajorVersion == 1 &&
LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->MinorVersion == 0) {
@@ -1195,13 +1195,13 @@ lasso_login_build_response_msg(LassoLogin *login, gchar *remote_providerID)
}
if (profile->server->certificate) {
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->sign_type =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->sign_type =
LASSO_SIGNATURE_TYPE_WITHX509;
} else {
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->sign_type =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->sign_type =
LASSO_SIGNATURE_TYPE_SIMPLE;
}
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->sign_method =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->sign_method =
LASSO_SIGNATURE_METHOD_RSA_SHA1;
if (remote_providerID != NULL) {
@@ -1256,7 +1256,7 @@ lasso_login_build_response_msg(LassoLogin *login, gchar *remote_providerID)
lasso_profile_set_response_status(profile, LASSO_SAML_STATUS_CODE_REQUEST_DENIED);
}
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->private_key_file =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->private_key_file =
profile->server->private_key;
LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->certificate_file =
profile->server->certificate;
@@ -1268,7 +1268,7 @@ lasso_login_build_response_msg(LassoLogin *login, gchar *remote_providerID)
/**
* lasso_login_destroy:
* @login: a #LassoLogin
- *
+ *
* Destroys a #LassoLogin object.
**/
void
@@ -1373,7 +1373,7 @@ lasso_login_init_authn_request(LassoLogin *login, const gchar *remote_providerID
* (in redirect mode) or the form LAREQ field (in browser-post mode).
*
* Return value: 0 on success; or a negative value otherwise.
- **/
+ **/
gint
lasso_login_init_request(LassoLogin *login, gchar *response_msg,
LassoHttpMethod response_http_method)
@@ -1389,7 +1389,7 @@ lasso_login_init_request(LassoLogin *login, gchar *response_msg,
g_return_val_if_fail(LASSO_IS_LOGIN(login), LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ);
g_return_val_if_fail(response_msg != NULL, LASSO_PARAM_ERROR_INVALID_VALUE);
-
+
profile = LASSO_PROFILE(login);
IF_SAML2(profile) {
return lasso_saml20_login_init_request(login, response_msg,
@@ -1458,7 +1458,7 @@ lasso_login_init_request(LassoLogin *login, gchar *response_msg,
request->sign_method = LASSO_SIGNATURE_METHOD_RSA_SHA1;
profile->request = LASSO_NODE(request);
-
+
return ret;
}
@@ -1467,12 +1467,12 @@ lasso_login_init_request(LassoLogin *login, gchar *response_msg,
* @login: a #LassoLogin.
* @remote_providerID: the providerID of the remote service provider (may be
* NULL)
- *
+ *
* Generates an authentication response without matching authentication
* request.
*
* If @remote_providerID is NULL, the first known provider is used.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -1505,9 +1505,9 @@ lasso_login_init_idp_initiated_authn_request(LassoLogin *login,
/**
* lasso_login_must_ask_for_consent:
* @login: a #LassoLogin
- *
+ *
* Evaluates if consent must be asked to the Principal to federate him.
- *
+ *
* Return value: %TRUE if consent must be asked
**/
gboolean
@@ -1530,9 +1530,9 @@ lasso_login_must_ask_for_consent(LassoLogin *login)
/**
* lasso_login_must_authenticate:
* @login: a #LassoLogin
- *
+ *
* Evaluates if user must be authenticated.
- *
+ *
* Return value: %TRUE if user must be authenticated
**/
gboolean
@@ -1545,7 +1545,7 @@ lasso_login_must_authenticate(LassoLogin *login)
g_return_val_if_fail(LASSO_IS_LOGIN(login), LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ);
profile = LASSO_PROFILE(login);
-
+
IF_SAML2(profile) {
return lasso_saml20_login_must_authenticate(login);
}
@@ -1606,7 +1606,7 @@ lasso_login_must_authenticate(LassoLogin *login)
*/
method = LASSO_LIB_AUTHN_CONTEXT_CLASS_REF_PASSWORD;
}
-
+
if (compa == 0) { /* exact */
if (strcmp(method, class_ref) == 0) {
matched = TRUE;
@@ -1649,7 +1649,7 @@ lasso_login_must_authenticate(LassoLogin *login)
*
* Processes received authentication request, checks it is signed correctly,
* checks if requested protocol profile is supported, etc.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -1680,11 +1680,11 @@ lasso_login_process_authn_request_msg(LassoLogin *login, const char *authn_reque
/* LibAuthnRequest already set by lasso_login_init_idp_initiated_authn_request() */
request = LASSO_LIB_AUTHN_REQUEST(profile->request);
-
+
/* verify that NameIDPolicy is 'any' */
if (request->NameIDPolicy == NULL)
return LASSO_LOGIN_ERROR_INVALID_NAMEIDPOLICY;
-
+
if (strcmp(request->NameIDPolicy, LASSO_LIB_NAMEID_POLICY_TYPE_ANY) != 0)
return LASSO_LOGIN_ERROR_INVALID_NAMEIDPOLICY;
} else {
@@ -1694,7 +1694,7 @@ lasso_login_process_authn_request_msg(LassoLogin *login, const char *authn_reque
format == LASSO_MESSAGE_FORMAT_ERROR) {
return critical_error(LASSO_PROFILE_ERROR_INVALID_MSG);
}
-
+
profile->request = LASSO_NODE(request);
/* get remote ProviderID */
@@ -1761,7 +1761,7 @@ lasso_login_process_authn_request_msg(LassoLogin *login, const char *authn_reque
profile->response = lasso_lib_authn_response_new(
LASSO_PROVIDER(profile->server)->ProviderID,
LASSO_LIB_AUTHN_REQUEST(profile->request));
- if (LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->MajorVersion == 1 &&
+ if (LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->MajorVersion == 1 &&
LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->MinorVersion < 2) {
/* pre-id-ff 1.2, move accordingly */
LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->MajorVersion = 1;
@@ -1778,7 +1778,7 @@ lasso_login_process_authn_request_msg(LassoLogin *login, const char *authn_reque
* @authn_response_msg: the authentication response received
*
* Processes received authentication response.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -1797,7 +1797,7 @@ lasso_login_process_authn_response_msg(LassoLogin *login, gchar *authn_response_
IF_SAML2(profile) {
return lasso_saml20_login_process_authn_response_msg(login, authn_response_msg);
}
-
+
/* clean state */
if (profile->remote_providerID)
g_free(LASSO_PROFILE(login)->remote_providerID);
@@ -1842,7 +1842,7 @@ lasso_login_process_authn_response_msg(LassoLogin *login, gchar *authn_response_
* @request_msg: the artifact request received
*
* Processes received artifact request.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -1882,7 +1882,7 @@ lasso_login_process_request_msg(LassoLogin *login, gchar *request_msg)
* @response_msg: the assertion response received
*
* Processes received assertion response.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -2059,7 +2059,7 @@ dispose(GObject *object)
static void
finalize(GObject *object)
-{
+{
LassoLogin *login = LASSO_LOGIN(object);
g_free(login->private_data);
login->private_data = NULL;
@@ -2169,7 +2169,7 @@ lasso_login_new_from_dump(LassoServer *server, const gchar *dump)
login = g_object_new(LASSO_TYPE_LOGIN, NULL);
doc = xmlParseMemory(dump, strlen(dump));
- init_from_xml(LASSO_NODE(login), xmlDocGetRootElement(doc));
+ init_from_xml(LASSO_NODE(login), xmlDocGetRootElement(doc));
LASSO_PROFILE(login)->server = g_object_ref(server);
xmlFreeDoc(doc);
diff --git a/lasso/id-ff/login.h b/lasso/id-ff/login.h
index 8359108f..8aa858eb 100644
--- a/lasso/id-ff/login.h
+++ b/lasso/id-ff/login.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -28,7 +28,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/lasso_config.h>
@@ -53,7 +53,7 @@ typedef void LassoDiscoResourceID;
#define LASSO_IS_LOGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_LOGIN))
#define LASSO_IS_LOGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_LOGIN))
#define LASSO_LOGIN_GET_CLASS(o) \
- (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_LOGIN, LassoLoginClass))
+ (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_LOGIN, LassoLoginClass))
typedef struct _LassoLogin LassoLogin;
typedef struct _LassoLoginClass LassoLoginClass;
diff --git a/lasso/id-ff/loginprivate.h b/lasso/id-ff/loginprivate.h
index 58f01ceb..a7edf965 100644
--- a/lasso/id-ff/loginprivate.h
+++ b/lasso/id-ff/loginprivate.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <config.h>
diff --git a/lasso/id-ff/logout.c b/lasso/id-ff/logout.c
index b4fe204d..89520824 100644
--- a/lasso/id-ff/logout.c
+++ b/lasso/id-ff/logout.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -48,7 +48,7 @@ static void check_soap_support(gchar *key, LassoProvider *provider, LassoProfile
/**
* lasso_logout_build_request_msg:
* @logout: a #LassoLogout
- *
+ *
* Builds the logout request message.
*
* It gets the HTTP method retrieved to send the request and:
@@ -68,7 +68,7 @@ static void check_soap_support(gchar *key, LassoProvider *provider, LassoProfile
* If private key and certificate are set in server object it will also signs
* the message (either with X509 if SOAP or with a simple signature for query
* strings).
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -104,9 +104,9 @@ lasso_logout_build_request_msg(LassoLogout *logout)
/* build the logout request message */
profile->msg_url = lasso_provider_get_metadata_one(
remote_provider, "SoapEndpoint");
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
profile->server->private_key;
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
profile->server->certificate;
profile->msg_body = lasso_node_export_to_soap(profile->request);
return 0;
@@ -141,7 +141,7 @@ lasso_logout_build_request_msg(LassoLogout *logout)
/**
* lasso_logout_build_response_msg:
* @logout: a #LassoLogout
- *
+ *
* Builds the logout response message.
*
* It gets the request message method and:
@@ -161,7 +161,7 @@ lasso_logout_build_request_msg(LassoLogout *logout)
* If private key and certificate are set in server object it will also signs
* the message (either with X509 if SOAP or with a simple signature for query
* strings).
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -186,7 +186,7 @@ lasso_logout_build_response_msg(LassoLogout *logout)
LASSO_PROVIDER(profile->server)->ProviderID,
LASSO_SAML_STATUS_CODE_REQUEST_DENIED,
LASSO_LIB_LOGOUT_REQUEST(profile->request),
- profile->server->certificate ?
+ profile->server->certificate ?
LASSO_SIGNATURE_TYPE_WITHX509 : LASSO_SIGNATURE_TYPE_SIMPLE,
LASSO_SIGNATURE_METHOD_RSA_SHA1);
}
@@ -210,9 +210,9 @@ lasso_logout_build_response_msg(LassoLogout *logout)
/* build logout response message */
if (profile->http_request_method == LASSO_HTTP_METHOD_SOAP) {
profile->msg_url = NULL;
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->private_key_file =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->private_key_file =
g_strdup(profile->server->private_key);
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->certificate_file =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->certificate_file =
profile->server->certificate;
profile->msg_body = lasso_node_export_to_soap(profile->response);
return 0;
@@ -264,7 +264,7 @@ lasso_logout_destroy(LassoLogout *logout)
/**
* lasso_logout_get_next_providerID:
* @logout: a #LassoLogout
- *
+ *
* Returns the provider id from providerID_index in list of providerIDs in
* principal session with the exception of initial service provider ID.
*
@@ -306,7 +306,7 @@ lasso_logout_get_next_providerID(LassoLogout *logout)
* corresponding of this HTTP request method.
*
* Initializes a new SLO request.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -363,12 +363,12 @@ lasso_logout_init_request(LassoLogout *logout, char *remote_providerID,
if (LASSO_IS_SAML_ASSERTION(assertion_n) == FALSE) {
return critical_error(LASSO_PROFILE_ERROR_MISSING_ASSERTION);
}
-
+
assertion = LASSO_SAML_ASSERTION(assertion_n);
if (assertion->AuthenticationStatement && LASSO_IS_LIB_AUTHENTICATION_STATEMENT(
assertion->AuthenticationStatement)) {
- LassoLibAuthenticationStatement *as =
+ LassoLibAuthenticationStatement *as =
LASSO_LIB_AUTHENTICATION_STATEMENT(assertion->AuthenticationStatement);
if (as->SessionIndex)
session_index = g_strdup(as->SessionIndex);
@@ -462,7 +462,7 @@ lasso_logout_init_request(LassoLogout *logout, char *remote_providerID,
profile->request = lasso_lib_logout_request_new_full(
LASSO_PROVIDER(profile->server)->ProviderID,
nameIdentifier,
- profile->server->certificate ?
+ profile->server->certificate ?
LASSO_SIGNATURE_TYPE_WITHX509 : LASSO_SIGNATURE_TYPE_SIMPLE,
LASSO_SIGNATURE_METHOD_RSA_SHA1);
} else { /* http_method == LASSO_HTTP_METHOD_REDIRECT */
@@ -502,7 +502,7 @@ lasso_logout_init_request(LassoLogout *logout, char *remote_providerID,
* lasso_logout_process_request_msg:
* @logout: a #LassoLogout
* @request_msg: the logout request message
- *
+ *
* Processes a SLO LogoutRequest message. Rebuilds a request object from the
* message and optionally verifies its signature.
*
@@ -563,7 +563,7 @@ lasso_logout_process_request_msg(LassoLogout *logout, char *request_msg)
* lasso_logout_process_response_msg:
* @logout: a #LassoLogout
* @response_msg: the response message
- *
+ *
* Parses the response message and builds the response object.
*
* Checks the status code value and if it is not success, then if the local
@@ -573,7 +573,7 @@ lasso_logout_process_request_msg(LassoLogout *logout, char *request_msg)
*
* If it is a SOAP method or, IDP type and http method is Redirect/GET,
* then removes assertion.
- *
+ *
* If local server is an Identity Provider and if there is no more assertion
* (Identity Provider has logged out every Service Providers), then restores
* the initial response.
@@ -734,7 +734,7 @@ lasso_logout_process_response_msg(LassoLogout *logout, gchar *response_msg)
* can be a proxy. So we have to use the role of the initial remote
* provider instead.
*/
- if (logout->initial_remote_providerID &&
+ if (logout->initial_remote_providerID &&
g_hash_table_size(profile->session->assertions) == 0) {
remote_provider = g_hash_table_lookup(profile->server->providers,
logout->initial_remote_providerID);
@@ -763,9 +763,9 @@ lasso_logout_process_response_msg(LassoLogout *logout, gchar *response_msg)
/**
* lasso_logout_reset_providerID_index:
* @logout: a #LassoLogout
- *
+ *
* Reset the providerID_index attribute (set to 0).
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint lasso_logout_reset_providerID_index(LassoLogout *logout)
@@ -779,7 +779,7 @@ gint lasso_logout_reset_providerID_index(LassoLogout *logout)
/**
* lasso_logout_validate_request:
* @logout: a #LassoLogout
- *
+ *
* <itemizedlist>
* <listitem><para>
* Sets the remote provider id
@@ -851,7 +851,7 @@ lasso_logout_validate_request(LassoLogout *logout)
LASSO_PROVIDER(profile->server)->ProviderID,
LASSO_SAML_STATUS_CODE_SUCCESS,
LASSO_LIB_LOGOUT_REQUEST(profile->request),
- profile->server->certificate ?
+ profile->server->certificate ?
LASSO_SIGNATURE_TYPE_WITHX509 : LASSO_SIGNATURE_TYPE_SIMPLE,
LASSO_SIGNATURE_METHOD_RSA_SHA1);
}
@@ -869,7 +869,7 @@ lasso_logout_validate_request(LassoLogout *logout)
/* verify signature status */
if (profile->signature_status != 0) {
- lasso_profile_set_response_status(profile,
+ lasso_profile_set_response_status(profile,
LASSO_LIB_STATUS_CODE_INVALID_SIGNATURE);
}
@@ -1008,7 +1008,7 @@ check_soap_support(G_GNUC_UNUSED gchar *key, LassoProvider *provider, LassoProfi
if (supported_profiles)
return; /* provider support profile */
-
+
LASSO_LOGOUT(profile)->private_data->all_soap = FALSE;
}
@@ -1049,7 +1049,7 @@ dispose(GObject *object)
static void
finalize(GObject *object)
-{
+{
LassoLogout *logout = LASSO_LOGOUT(object);
g_free(logout->private_data);
G_OBJECT_CLASS(parent_class)->finalize(object);
@@ -1115,9 +1115,9 @@ lasso_logout_get_type()
/**
* lasso_logout_new:
* @server: the #LassoServer
- *
+ *
* Creates a new #LassoLogout.
- *
+ *
* Return value: a newly created #LassoLogout object; or NULL if an error
* occured
**/
@@ -1154,7 +1154,7 @@ lasso_logout_new_from_dump(LassoServer *server, const char *dump)
logout = lasso_logout_new(g_object_ref(server));
doc = xmlParseMemory(dump, strlen(dump));
- init_from_xml(LASSO_NODE(logout), xmlDocGetRootElement(doc));
+ init_from_xml(LASSO_NODE(logout), xmlDocGetRootElement(doc));
xmlFreeDoc(doc);
return logout;
diff --git a/lasso/id-ff/logout.h b/lasso/id-ff/logout.h
index b72b843f..4e368718 100644
--- a/lasso/id-ff/logout.h
+++ b/lasso/id-ff/logout.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/id-ff/profile.h>
#include <lasso/xml/lib_logout_request.h>
@@ -40,7 +40,7 @@ extern "C" {
#define LASSO_IS_LOGOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_LOGOUT))
#define LASSO_IS_LOGOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_LOGOUT))
#define LASSO_LOGOUT_GET_CLASS(o) \
- (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_LOGOUT, LassoLogoutClass))
+ (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_LOGOUT, LassoLogoutClass))
typedef struct _LassoLogout LassoLogout;
typedef struct _LassoLogoutClass LassoLogoutClass;
diff --git a/lasso/id-ff/logoutprivate.h b/lasso/id-ff/logoutprivate.h
index 06ed32d8..be616df3 100644
--- a/lasso/id-ff/logoutprivate.h
+++ b/lasso/id-ff/logoutprivate.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
struct _LassoLogoutPrivate
diff --git a/lasso/id-ff/name_identifier_mapping.c b/lasso/id-ff/name_identifier_mapping.c
index 74c9879f..7fa1b49e 100644
--- a/lasso/id-ff/name_identifier_mapping.c
+++ b/lasso/id-ff/name_identifier_mapping.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -40,9 +40,9 @@
/**
* lasso_name_identifier_mapping_build_request_msg:
* @mapping: a #LassoNameIdentifierMapping
- *
+ *
* Builds a name identifier mapping request message.
- *
+ *
* <itemizedlist>
* <listitem><para>
* If it is a SOAP method, then it builds the request as a SOAP message,
@@ -54,7 +54,7 @@
* string message, optionally signs it and sets @msg_url to that URL.
* </para></listitem>
* </itemizedlist>
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -91,9 +91,9 @@ lasso_name_identifier_mapping_build_request_msg(LassoNameIdentifierMapping *mapp
return critical_error(LASSO_PROFILE_ERROR_UNKNOWN_PROFILE_URL);
}
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
profile->server->private_key;
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
profile->server->certificate;
profile->msg_body = lasso_node_export_to_soap(profile->request);
if (profile->msg_body == NULL) {
@@ -107,7 +107,7 @@ lasso_name_identifier_mapping_build_request_msg(LassoNameIdentifierMapping *mapp
/**
* lasso_name_identifier_mapping_build_response_msg:
* @mapping: a #LassoNameIdentifierMapping
- *
+ *
* Builds a name identifier mapping response message.
*
* <itemizedlist>
@@ -125,7 +125,7 @@ lasso_name_identifier_mapping_build_request_msg(LassoNameIdentifierMapping *mapp
* If private key and certificate are set in server object it will also signs
* the message (either with X509 if SOAP or with a simple signature for query
* strings).
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -176,7 +176,7 @@ lasso_name_identifier_mapping_build_response_msg(LassoNameIdentifierMapping *map
/**
* lasso_name_identifier_mapping_destroy:
* @mapping: a #LassoNameIdentifierMapping
- *
+ *
* Destroys a #LassoNameIdentifierMapping object.
**/
void
@@ -193,7 +193,7 @@ lasso_name_identifier_mapping_destroy(LassoNameIdentifierMapping *mapping)
* @remote_providerID: the providerID of the identity provider.
*
* Initializes a new lib:NameIdentifierMappingRequest request.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -259,7 +259,7 @@ lasso_name_identifier_mapping_init_request(LassoNameIdentifierMapping *mapping,
LASSO_PROVIDER(profile->server)->ProviderID,
nameIdentifier,
targetNamespace,
- profile->server->certificate ?
+ profile->server->certificate ?
LASSO_SIGNATURE_TYPE_WITHX509 : LASSO_SIGNATURE_TYPE_SIMPLE,
LASSO_SIGNATURE_METHOD_RSA_SHA1);
if (LASSO_IS_LIB_NAME_IDENTIFIER_MAPPING_REQUEST(profile->request) == FALSE) {
@@ -281,7 +281,7 @@ lasso_name_identifier_mapping_init_request(LassoNameIdentifierMapping *mapping,
* lasso_name_identifier_mapping_process_request_msg:
* @mapping: a #LassoNameIdentifierMapping
* @request_msg: the name identifier mapping request message
- *
+ *
* Processes a lib:NameIdentifierMappingRequest message. Rebuilds a request
* object from the message and optionally verifies its signature.
*
@@ -340,7 +340,7 @@ lasso_name_identifier_mapping_process_request_msg(LassoNameIdentifierMapping *ma
* lasso_name_identifier_mapping_process_response_msg:
* @mapping: a #LassoNameIdentifierMapping
* @response_msg: the name identifier mapping response message
- *
+ *
* Processes a lib:NameIdentifierMappingResponse message. Rebuilds a response
* object from the message and optionally verifies its signature.
*
@@ -391,7 +391,7 @@ lasso_name_identifier_mapping_process_response_msg(LassoNameIdentifierMapping *m
return LASSO_PROFILE_ERROR_STATUS_NOT_SUCCESS;
}
-
+
/* Set the target name identifier */
if (LASSO_LIB_NAME_IDENTIFIER_MAPPING_REQUEST(profile->request)->NameIdentifier) {
mapping->targetNameIdentifier = g_strdup(LASSO_LIB_NAME_IDENTIFIER_MAPPING_REQUEST(
@@ -410,9 +410,9 @@ lasso_name_identifier_mapping_process_response_msg(LassoNameIdentifierMapping *m
* @mapping: a #LassoNameIdentifierMapping
*
* Checks profile request with regards to message status and principal
- * federations, update them accordingly and prepares a
+ * federations, update them accordingly and prepares a
* lib:NameIdentifierMappingResponse accordingly.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -460,7 +460,7 @@ lasso_name_identifier_mapping_validate_request(LassoNameIdentifierMapping *mappi
LASSO_PROVIDER(profile->server)->ProviderID,
LASSO_SAML_STATUS_CODE_SUCCESS,
request,
- profile->server->certificate ?
+ profile->server->certificate ?
LASSO_SIGNATURE_TYPE_WITHX509 : LASSO_SIGNATURE_TYPE_SIMPLE,
LASSO_SIGNATURE_METHOD_RSA_SHA1);
diff --git a/lasso/id-ff/name_identifier_mapping.h b/lasso/id-ff/name_identifier_mapping.h
index 7876fef4..99f09a12 100644
--- a/lasso/id-ff/name_identifier_mapping.h
+++ b/lasso/id-ff/name_identifier_mapping.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/id-ff/profile.h>
@@ -47,7 +47,7 @@ extern "C" {
(G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_NAME_IDENTIFIER_MAPPING))
#define LASSO_NAME_IDENTIFIER_MAPPING_GET_CLASS(o) \
(G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_NAME_IDENTIFIER_MAPPING, \
- LassoNameIdentifierMappingClass))
+ LassoNameIdentifierMappingClass))
typedef struct _LassoNameIdentifierMapping LassoNameIdentifierMapping;
typedef struct _LassoNameIdentifierMappingClass LassoNameIdentifierMappingClass;
@@ -84,7 +84,7 @@ LASSO_EXPORT gint lasso_name_identifier_mapping_init_request(
gchar *targetNamespace, gchar *remote_providerID);
LASSO_EXPORT gint lasso_name_identifier_mapping_process_request_msg(
- LassoNameIdentifierMapping *mapping, gchar *request_msg);
+ LassoNameIdentifierMapping *mapping, gchar *request_msg);
LASSO_EXPORT gint lasso_name_identifier_mapping_process_response_msg(
LassoNameIdentifierMapping *mapping, gchar *response_msg);
diff --git a/lasso/id-ff/name_registration.c b/lasso/id-ff/name_registration.c
index 747f2367..b9846879 100644
--- a/lasso/id-ff/name_registration.c
+++ b/lasso/id-ff/name_registration.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -39,9 +39,9 @@
/**
* lasso_name_registration_build_request_msg:
* @name_registration: a #LassoNameRegistration
- *
+ *
* Builds a register name identifier request message.
- *
+ *
* It gets the register name identifier protocol profile and:
* <itemizedlist>
* <listitem><para>
@@ -57,7 +57,7 @@
* identifier object, sets @msg_body to NULL.
* </para></listitem>
* </itemizedlist>
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -87,9 +87,9 @@ lasso_name_registration_build_request_msg(LassoNameRegistration *name_registrati
if (profile->http_request_method == LASSO_HTTP_METHOD_SOAP) {
profile->msg_url = lasso_provider_get_metadata_one(
remote_provider, "SoapEndpoint");
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->private_key_file =
profile->server->private_key;
- LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
+ LASSO_SAMLP_REQUEST_ABSTRACT(profile->request)->certificate_file =
profile->server->certificate;
profile->msg_body = lasso_node_export_to_soap(profile->request);
return 0;
@@ -125,7 +125,7 @@ lasso_name_registration_build_request_msg(LassoNameRegistration *name_registrati
/**
* lasso_name_registration_build_response_msg:
* @name_registration: a #LassoNameRegistration
- *
+ *
* Builds the register name idendifier response message.
*
* It gets the request message method and:
@@ -145,7 +145,7 @@ lasso_name_registration_build_request_msg(LassoNameRegistration *name_registrati
* If private key and certificate are set in server object it will also signs
* the message (either with X509 if SOAP or with a simple signature for query
* strings).
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -174,9 +174,9 @@ lasso_name_registration_build_response_msg(LassoNameRegistration *name_registrat
if (profile->http_request_method == LASSO_HTTP_METHOD_SOAP) {
profile->msg_url = NULL;
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->private_key_file =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->private_key_file =
profile->server->private_key;
- LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->certificate_file =
+ LASSO_SAMLP_RESPONSE_ABSTRACT(profile->response)->certificate_file =
profile->server->certificate;
profile->msg_body = lasso_node_export_to_soap(profile->response);
return 0;
@@ -210,7 +210,7 @@ lasso_name_registration_build_response_msg(LassoNameRegistration *name_registrat
/**
* lasso_name_registration_destroy:
* @name_registration: a #LassoNameRegistration
- *
+ *
* Destroys a #LassoNameRegistration object.
**/
void
@@ -230,7 +230,7 @@ lasso_name_registration_destroy(LassoNameRegistration *name_registration)
* Initializes a new lib:RegisterNameIdentifierRequest request; it sets
* @name_registration->nameIdentifier to the new name identifier and
* @name_registration->oldNameIdentifier to the old one.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -299,7 +299,7 @@ lasso_name_registration_init_request(LassoNameRegistration *name_registration,
}
oldNameIdentifier = g_object_ref(federation->local_nameIdentifier);
-
+
spNameIdentifier = NULL;
if (federation->remote_nameIdentifier) {
spNameIdentifier = g_object_ref(federation->remote_nameIdentifier);
@@ -337,13 +337,13 @@ lasso_name_registration_init_request(LassoNameRegistration *name_registration,
profile->request = lasso_lib_register_name_identifier_request_new_full(
LASSO_PROVIDER(profile->server)->ProviderID,
idpNameIdentifier, spNameIdentifier, oldNameIdentifier,
- profile->server->certificate ?
+ profile->server->certificate ?
LASSO_SIGNATURE_TYPE_WITHX509 : LASSO_SIGNATURE_TYPE_SIMPLE,
LASSO_SIGNATURE_METHOD_RSA_SHA1);
if (profile->request == NULL) {
return critical_error(LASSO_PROFILE_ERROR_BUILDING_REQUEST_FAILED);
}
- LASSO_LIB_REGISTER_NAME_IDENTIFIER_REQUEST(profile->request)->RelayState =
+ LASSO_LIB_REGISTER_NAME_IDENTIFIER_REQUEST(profile->request)->RelayState =
g_strdup(profile->msg_relayState);
if (lasso_provider_get_protocol_conformance(remote_provider) < LASSO_PROTOCOL_LIBERTY_1_2) {
@@ -361,7 +361,7 @@ lasso_name_registration_init_request(LassoNameRegistration *name_registration,
* lasso_name_registration_process_request_msg:
* @name_registration: a #LassoNameRegistration
* @request_msg: the register name identifier request message
- *
+ *
* Processes a lib:RegisterNameIdentifierRequest message. Rebuilds a request
* object from the message and optionally verifies its signature. Sets
* profile->nameIdentifier to local name identifier. If it changed (when this
@@ -435,7 +435,7 @@ gint lasso_name_registration_process_request_msg(LassoNameRegistration *name_reg
* lasso_name_registration_process_response_msg:
* @name_registration: a #LassoNameRegistration
* @response_msg: the register name identifier response message
- *
+ *
* Processes a lib:RegisterNameIdentifierResponse message. Rebuilds a response
* object from the message and optionally verifies its signature.
*
@@ -544,9 +544,9 @@ lasso_name_registration_process_response_msg(LassoNameRegistration *name_registr
* @name_registration: a #LassoNameRegistration
*
* Checks profile request with regards to message status and principal
- * federations, update them accordingly and prepares a
+ * federations, update them accordingly and prepares a
* lib:RegisterNameIdentifierResponse accordingly.
- *
+ *
* Return value: 0 on success; or a negative value otherwise.
**/
gint
@@ -580,9 +580,9 @@ lasso_name_registration_validate_request(LassoNameRegistration *name_registratio
/* set register name identifier response */
profile->response = lasso_lib_register_name_identifier_response_new_full(
LASSO_PROVIDER(profile->server)->ProviderID,
- LASSO_SAML_STATUS_CODE_SUCCESS,
+ LASSO_SAML_STATUS_CODE_SUCCESS,
LASSO_LIB_REGISTER_NAME_IDENTIFIER_REQUEST(profile->request),
- profile->server->certificate ?
+ profile->server->certificate ?
LASSO_SIGNATURE_TYPE_WITHX509 : LASSO_SIGNATURE_TYPE_SIMPLE,
LASSO_SIGNATURE_METHOD_RSA_SHA1);
if (LASSO_IS_LIB_REGISTER_NAME_IDENTIFIER_RESPONSE(profile->response) == FALSE) {
@@ -718,9 +718,9 @@ lasso_name_registration_get_type()
/**
* lasso_name_registration_new:
* @server: the #LassoServer
- *
+ *
* Creates a new #LassoNameRegistration.
- *
+ *
* Return value: a newly created #LassoNameRegistration object; or NULL if
* an error occured
**/
@@ -758,7 +758,7 @@ lasso_name_registration_new_from_dump(LassoServer *server, const char *dump)
name_registration = lasso_name_registration_new(server);
doc = xmlParseMemory(dump, strlen(dump));
- init_from_xml(LASSO_NODE(name_registration), xmlDocGetRootElement(doc));
+ init_from_xml(LASSO_NODE(name_registration), xmlDocGetRootElement(doc));
xmlFreeDoc(doc);
return name_registration;
@@ -767,9 +767,9 @@ lasso_name_registration_new_from_dump(LassoServer *server, const char *dump)
/**
* lasso_name_registration_dump:
* @name_registration: a #LassoNameRegistration
- *
+ *
* Dumps @name_registration content to an XML string.
- *
+ *
* Return value: the dump string. It must be freed by the caller.
**/
gchar *
diff --git a/lasso/id-ff/name_registration.h b/lasso/id-ff/name_registration.h
index b8bf8980..6ab24b04 100644
--- a/lasso/id-ff/name_registration.h
+++ b/lasso/id-ff/name_registration.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/id-ff/profile.h>
@@ -55,7 +55,7 @@ struct _LassoNameRegistration {
/*< public >*/
LassoSamlNameIdentifier *oldNameIdentifier;
-
+
/*< private >*/
void *private_data; /* reserved for future use */
};
diff --git a/lasso/id-ff/profile.c b/lasso/id-ff/profile.c
index f0bb7cc3..71887259 100644
--- a/lasso/id-ff/profile.c
+++ b/lasso/id-ff/profile.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -150,7 +150,7 @@ lasso_profile_get_request_type_from_soap_msg(const gchar *soap)
if (strcmp((char*)ns->href, LASSO_DISCO_HREF) == 0) {
type = LASSO_REQUEST_TYPE_DISCO_MODIFY;
} else {
- type = LASSO_REQUEST_TYPE_DST_MODIFY;
+ type = LASSO_REQUEST_TYPE_DST_MODIFY;
}
} else if (strcmp(name, "SASLRequest") == 0) {
type = LASSO_REQUEST_TYPE_SASL_REQUEST;
@@ -322,7 +322,7 @@ lasso_profile_set_response_status(LassoProfile *profile, const char *statusCodeV
message(G_LOG_LEVEL_CRITICAL, "Failed to set status");
g_assert_not_reached();
-}
+}
void
lasso_profile_clean_msg_info(LassoProfile *profile)
@@ -383,7 +383,7 @@ lasso_profile_set_session_from_dump(LassoProfile *profile, const gchar *dump)
profile->session = lasso_session_new_from_dump(dump);
if (profile->session == NULL)
return critical_error(LASSO_PROFILE_ERROR_BAD_SESSION_DUMP);
-
+
IF_SAML2(profile) {
lasso_saml20_profile_set_session_from_dump(profile);
}
@@ -464,7 +464,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
xmlNode *t;
parent_class->init_from_xml(node, xmlnode);
-
+
if (xmlnode == NULL)
return LASSO_XML_ERROR_OBJECT_CONSTRUCTION_FAILED;
diff --git a/lasso/id-ff/profile.h b/lasso/id-ff/profile.h
index 1641f6b1..55b838b7 100644
--- a/lasso/id-ff/profile.h
+++ b/lasso/id-ff/profile.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -28,7 +28,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/id-ff/identity.h>
#include <lasso/id-ff/server.h>
@@ -44,7 +44,7 @@ extern "C" {
#define LASSO_IS_PROFILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_PROFILE))
#define LASSO_IS_PROFILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_PROFILE))
#define LASSO_PROFILE_GET_CLASS(o) \
- (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_PROFILE, LassoProfileClass))
+ (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_PROFILE, LassoProfileClass))
typedef struct _LassoProfile LassoProfile;
typedef struct _LassoProfileClass LassoProfileClass;
diff --git a/lasso/id-ff/profileprivate.h b/lasso/id-ff/profileprivate.h
index 7f484fb4..3f87137c 100644
--- a/lasso/id-ff/profileprivate.h
+++ b/lasso/id-ff/profileprivate.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -28,7 +28,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/id-ff/profile.h>
diff --git a/lasso/id-ff/provider.c b/lasso/id-ff/provider.c
index dbfae69a..e74e3214 100644
--- a/lasso/id-ff/provider.c
+++ b/lasso/id-ff/provider.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -243,7 +243,7 @@ gboolean
lasso_provider_accept_http_method(LassoProvider *provider, LassoProvider *remote_provider,
LassoMdProtocolType protocol_type, LassoHttpMethod http_method,
gboolean initiate_profile)
-{
+{
LassoProviderRole initiating_role;
char *protocol_profile;
@@ -301,11 +301,11 @@ lasso_provider_has_protocol_profile(LassoProvider *provider,
LassoMdProtocolType protocol_type, const char *protocol_profile)
{
GList *supported;
-
+
g_return_val_if_fail(LASSO_IS_PROVIDER(provider), FALSE); /* Be conservative */
supported = lasso_provider_get_metadata_list(
provider, protocol_md_nodename[protocol_type]);
-
+
if (g_list_find_custom(supported, protocol_profile, (GCompareFunc)strcmp) == NULL)
return FALSE;
return TRUE;
@@ -396,7 +396,7 @@ load_descriptor(xmlNode *xmlnode, GHashTable *descriptor, LassoProvider *provide
provider->private_data->signing_key_descriptor = xmlCopyNode(t, 1);
}
if (use && strcmp((char*)use, "encryption") == 0) {
- provider->private_data->encryption_key_descriptor =
+ provider->private_data->encryption_key_descriptor =
xmlCopyNode(t, 1);
}
if (use) {
@@ -460,7 +460,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
xmlChar *s;
parent_class->init_from_xml(node, xmlnode);
-
+
if (xmlnode == NULL) {
return LASSO_XML_ERROR_OBJECT_CONSTRUCTION_FAILED;
}
@@ -744,7 +744,7 @@ lasso_provider_load_metadata_from_doc(LassoProvider *provider, xmlDoc *doc)
g_return_val_if_fail(LASSO_IS_PROVIDER(provider), FALSE);
if (doc == NULL)
return FALSE;
-
+
node = xmlDocGetRootElement(doc);
if (node == NULL || node->ns == NULL) {
xmlFreeDoc(doc);
@@ -867,7 +867,7 @@ lasso_provider_new_helper(LassoProviderRole role, const char *metadata,
lasso_provider_load_public_key(provider, LASSO_PUBLIC_KEY_ENCRYPTION);
provider->private_data->encryption_mode = LASSO_ENCRYPTION_MODE_NONE;
-
+
return provider;
}
/**
@@ -1045,13 +1045,13 @@ lasso_provider_new_from_dump(const gchar *dump)
provider = g_object_new(LASSO_TYPE_PROVIDER, NULL);
doc = xmlParseMemory(dump, strlen(dump));
- init_from_xml(LASSO_NODE(provider), xmlDocGetRootElement(doc));
+ init_from_xml(LASSO_NODE(provider), xmlDocGetRootElement(doc));
xmlFreeDoc(doc);
return provider;
}
-int
+int
lasso_provider_verify_signature(LassoProvider *provider,
const char *message, const char *id_attr_name, LassoMessageFormat format)
{
diff --git a/lasso/id-ff/provider.h b/lasso/id-ff/provider.h
index eb58289c..0dde1a8b 100644
--- a/lasso/id-ff/provider.h
+++ b/lasso/id-ff/provider.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/xml/xml.h>
#include <lasso/xml/xml_enc.h>
@@ -40,7 +40,7 @@ extern "C" {
#define LASSO_IS_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_PROVIDER))
#define LASSO_IS_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_PROVIDER))
#define LASSO_PROVIDER_GET_CLASS(o) \
- (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_PROVIDER, LassoProviderClass))
+ (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_PROVIDER, LassoProviderClass))
typedef struct _LassoProvider LassoProvider;
typedef struct _LassoProviderClass LassoProviderClass;
@@ -169,7 +169,7 @@ struct _LassoProviderClass {
LASSO_EXPORT GType lasso_provider_get_type(void);
LASSO_EXPORT LassoProvider* lasso_provider_new(LassoProviderRole role, const char *metadata,
const char *public_key, const char *ca_cert_chain);
-LASSO_EXPORT LassoProvider* lasso_provider_new_from_buffer(LassoProviderRole role,
+LASSO_EXPORT LassoProvider* lasso_provider_new_from_buffer(LassoProviderRole role,
const char *metadata, const char *public_key, const char *ca_cert_chain);
LASSO_EXPORT gchar* lasso_provider_get_assertion_consumer_service_url(LassoProvider *provider,
const char *service_id);
diff --git a/lasso/id-ff/providerprivate.h b/lasso/id-ff/providerprivate.h
index 9a3e1be7..d577790d 100644
--- a/lasso/id-ff/providerprivate.h
+++ b/lasso/id-ff/providerprivate.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
/**
* LassoPublicKeyType:
diff --git a/lasso/id-ff/server.c b/lasso/id-ff/server.c
index 9d63261c..9f5ea911 100644
--- a/lasso/id-ff/server.c
+++ b/lasso/id-ff/server.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -52,7 +52,7 @@
static gint
lasso_server_add_provider_helper(LassoServer *server, LassoProviderRole role,
const gchar *metadata, const gchar *public_key, const gchar *ca_cert_chain,
- LassoProvider *(*provider_constructor)(LassoProviderRole role,
+ LassoProvider *(*provider_constructor)(LassoProviderRole role,
const char *metadata, const char *public_key, const char *ca_cert_chain))
{
LassoProvider *provider;
@@ -90,9 +90,9 @@ lasso_server_add_provider_helper(LassoServer *server, LassoProviderRole role,
* @metadata: path to the provider metadata file
* @public_key: provider public key file (may be a certificate) or NULL
* @ca_cert_chain: provider CA certificate chain file or NULL
- *
+ *
* Creates a new #LassoProvider and makes it known to the @server
- *
+ *
* Return value: 0 on success; a negative value if an error occured.
**/
gint
@@ -110,9 +110,9 @@ lasso_server_add_provider(LassoServer *server, LassoProviderRole role,
* @metadata: a string buffer containg the metadata file for a new provider
* @public_key: provider public key file (may be a certificate) or NULL
* @ca_cert_chain: provider CA certificate chain file or NULL
- *
+ *
* Creates a new #LassoProvider and makes it known to the @server
- *
+ *
* Return value: 0 on success; a negative value if an error occured.
**/
gint
@@ -128,9 +128,9 @@ lasso_server_add_provider_from_buffer(LassoServer *server, LassoProviderRole rol
* lasso_server_add_service:
* @server: a #LassoServer
* @service: a #LassoNode object implementing representing a service endpoint.
- *
- * Add a service to the registry of service of this #LassoServer object.
- *
+ *
+ * Add a service to the registry of service of this #LassoServer object.
+ *
* Return value: 0 on success; a negative value if an error occured.
**/
gint
@@ -467,7 +467,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
t2 = t2->next;
}
}
-
+
#ifdef LASSO_WSF_ENABLED
/* Services */
if (strcmp((char*)t->name, "Services") == 0) {
@@ -484,7 +484,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
}
}
- /* Service Metadatas (SvcMD) */
+ /* Service Metadatas (SvcMD) */
if (strcmp((char*)t->name, "SvcMDs") == 0) {
while (t2) {
LassoIdWsf2DiscoSvcMetadata *svcMD;
@@ -694,7 +694,7 @@ static void
class_init(LassoServerClass *klass)
{
LassoNodeClass *nclass = LASSO_NODE_CLASS(klass);
-
+
parent_class = g_type_class_peek_parent(klass);
nclass->node_data = g_new0(LassoNodeClassData, 1);
lasso_node_class_set_nodename(nclass, "Server");
@@ -738,9 +738,9 @@ lasso_server_get_type()
* @private_key: path to the the server private key file or NULL
* @private_key_password: password to private key if it is encrypted, or NULL
* @certificate: path to the server certificate file, or NULL
- *
+ *
* Creates a new #LassoServer.
- *
+ *
* Return value: a newly created #LassoServer object; or NULL if an error
* occured
**/
diff --git a/lasso/id-ff/server.h b/lasso/id-ff/server.h
index 6932d692..7de16564 100644
--- a/lasso/id-ff/server.h
+++ b/lasso/id-ff/server.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/lasso_config.h>
@@ -47,7 +47,7 @@ typedef void LassoDiscoServiceInstance;
#define LASSO_IS_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_SERVER))
#define LASSO_IS_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_SERVER))
#define LASSO_SERVER_GET_CLASS(o) \
- (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_SERVER, LassoServerClass))
+ (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_SERVER, LassoServerClass))
typedef struct _LassoServer LassoServer;
typedef struct _LassoServerClass LassoServerClass;
diff --git a/lasso/id-ff/serverprivate.h b/lasso/id-ff/serverprivate.h
index ee66560d..1c4ef9db 100644
--- a/lasso/id-ff/serverprivate.h
+++ b/lasso/id-ff/serverprivate.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
struct _LassoServerPrivate
{
diff --git a/lasso/id-ff/session.c b/lasso/id-ff/session.c
index 98c54e43..1441c6e5 100644
--- a/lasso/id-ff/session.c
+++ b/lasso/id-ff/session.c
@@ -4,19 +4,19 @@
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -126,7 +126,7 @@ lasso_session_add_assertion_with_id(LassoSession *session, const char *assertion
g_return_val_if_fail(assertionID != NULL, LASSO_PARAM_ERROR_INVALID_VALUE);
g_return_val_if_fail(assertion != NULL, LASSO_PARAM_ERROR_INVALID_VALUE);
- g_hash_table_insert(session->private_data->assertions_by_id,
+ g_hash_table_insert(session->private_data->assertions_by_id,
g_strdup(assertionID),
xmlCopyNode(assertion, 1));
@@ -420,7 +420,7 @@ lasso_session_get_endpoint_reference(LassoSession *session, const gchar *service
g_return_val_if_fail(LASSO_IS_SESSION(session), NULL);
g_return_val_if_fail(service_type != NULL, NULL);
-
+
epr = g_hash_table_lookup(session->private_data->eprs, service_type);
if (LASSO_IS_WSA_ENDPOINT_REFERENCE(epr)) {
return LASSO_WSA_ENDPOINT_REFERENCE(epr);
@@ -495,7 +495,7 @@ xmlNode_to_base64(xmlNode *node) {
xmlCharEncodingHandlerPtr handler = NULL;
xmlChar *buffer = NULL;
xmlChar *ret = NULL;
-
+
handler = xmlFindCharEncodingHandler("utf-8");
if (! handler)
goto exit;
@@ -661,7 +661,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
if (content) {
assertion = base64_to_xmlNode(content);
if (assertion) {
- lasso_session_add_assertion_with_id(session,
+ lasso_session_add_assertion_with_id(session,
(char*)value, assertion);
xmlFreeNode(assertion);
}
@@ -683,7 +683,7 @@ init_from_xml(LassoNode *node, xmlNode *xmlnode)
}
}
-#ifdef LASSO_WSF_ENABLED
+#ifdef LASSO_WSF_ENABLED
/* Endpoint References */
if (strcmp((char*)t->name, "EndpointReferences") == 0) {
t2 = t->children;
@@ -736,7 +736,7 @@ dispose(GObject *object)
g_hash_table_destroy(session->private_data->assertions_by_id);
session->private_data->assertions_by_id = NULL;
-#ifdef LASSO_WSF_ENABLED
+#ifdef LASSO_WSF_ENABLED
g_hash_table_destroy(session->private_data->eprs);
session->private_data->eprs = NULL;
#endif
@@ -768,7 +768,7 @@ instance_init(LassoSession *session)
session->private_data->status = g_hash_table_new_full(g_str_hash, g_str_equal,
(GDestroyNotify)g_free,
(GDestroyNotify)lasso_node_destroy);
- session->private_data->assertions_by_id =
+ session->private_data->assertions_by_id =
g_hash_table_new_full(g_str_hash, g_str_equal,
(GDestroyNotify)g_free,
(GDestroyNotify)xmlFree);
diff --git a/lasso/id-ff/session.h b/lasso/id-ff/session.h
index 30a5a8dd..ad0eb20e 100644
--- a/lasso/id-ff/session.h
+++ b/lasso/id-ff/session.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,7 +27,7 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/lasso_config.h>
#include <lasso/xml/xml.h>
@@ -39,7 +39,7 @@ extern "C" {
#define LASSO_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), LASSO_TYPE_SESSION))
#define LASSO_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LASSO_TYPE_SESSION))
#define LASSO_SESSION_GET_CLASS(o) \
- (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_SESSION, LassoSessionClass))
+ (G_TYPE_INSTANCE_GET_CLASS ((o), LASSO_TYPE_SESSION, LassoSessionClass))
typedef struct _LassoSession LassoSession;
typedef struct _LassoSessionClass LassoSessionClass;
diff --git a/lasso/id-ff/sessionprivate.h b/lasso/id-ff/sessionprivate.h
index 1d00f9c0..a6828774 100644
--- a/lasso/id-ff/sessionprivate.h
+++ b/lasso/id-ff/sessionprivate.h
@@ -1,22 +1,22 @@
-/* $Id$
+/* $Id$
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
- *
+ *
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,12 +27,12 @@
#ifdef __cplusplus
extern "C" {
-#endif /* __cplusplus */
+#endif /* __cplusplus */
#include <lasso/xml/lib_assertion.h>
#include <lasso/xml/samlp_status.h>
#include <lasso/id-ff/session.h>
-#include <lasso/xml/xml.h>
+#include <lasso/xml/xml.h>
struct _LassoSessionPrivate
{
@@ -49,7 +49,7 @@ gint lasso_session_add_assertion(LassoSession *session,
const char *providerID, LassoNode *assertion);
gint lasso_session_add_status(LassoSession *session,
const char *providerID, LassoNode *status);
-gint lasso_session_add_assertion_with_id(LassoSession *session,
+gint lasso_session_add_assertion_with_id(LassoSession *session,
const char *assertionID, xmlNode *assertion);
LassoNode* lasso_session_get_assertion(