summaryrefslogtreecommitdiffstats
path: root/lasso/id-ff/name_identifier_mapping.c
diff options
context:
space:
mode:
Diffstat (limited to 'lasso/id-ff/name_identifier_mapping.c')
-rw-r--r--lasso/id-ff/name_identifier_mapping.c38
1 files changed, 19 insertions, 19 deletions
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);