From 2c0ea4d64791369f890774c1d7e3003930513384 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 9 Jun 2010 16:54:55 +0000 Subject: Change all logging to use message() --- lasso/id-wsf-2.0/discovery.c | 2 +- lasso/id-wsf-2.0/idwsf2_helper.c | 4 ++-- lasso/id-wsf-2.0/profile.c | 8 ++++---- lasso/id-wsf-2.0/saml2_login.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'lasso/id-wsf-2.0') diff --git a/lasso/id-wsf-2.0/discovery.c b/lasso/id-wsf-2.0/discovery.c index ed6b7f84..4b9eb0c1 100644 --- a/lasso/id-wsf-2.0/discovery.c +++ b/lasso/id-wsf-2.0/discovery.c @@ -572,7 +572,7 @@ lasso_idwsf2_discovery_build_request_msg(LassoIdWsf2Discovery *discovery, lasso_foreach(i, discovery->private_data->metadatas) { LassoIdWsf2DiscoSvcMetadata *metadata = (LassoIdWsf2DiscoSvcMetadata *)i->data; if (lasso_is_empty_string(metadata->svcMDID)) { - g_warning("disco:MetadataReplace method called with " \ + message(G_LOG_LEVEL_WARNING, "disco:MetadataReplace method called with " \ "non registered metadatas " \ "(svcMDID attribute is missing)"); } else { diff --git a/lasso/id-wsf-2.0/idwsf2_helper.c b/lasso/id-wsf-2.0/idwsf2_helper.c index 33326c75..e7b4a2a0 100644 --- a/lasso/id-wsf-2.0/idwsf2_helper.c +++ b/lasso/id-wsf-2.0/idwsf2_helper.c @@ -133,7 +133,7 @@ lasso_wsa_endpoint_reference_get_idwsf2_security_context_for_security_mechanism( lasso_list_add_new_gobject (epr->Metadata->any, created); } if (create && ! security_mech_id) { - g_warning ("cannot create a LassoIdWsf2DiscoSecurityContext withou a security_mech_id"); + message(G_LOG_LEVEL_WARNING, "cannot create a LassoIdWsf2DiscoSecurityContext withou a security_mech_id"); } return created; @@ -168,7 +168,7 @@ lasso_wsa_endpoint_reference_get_token_by_usage( if (LASSO_IS_NODE(token->any)) { return (LassoNode*)token->any; } else if (token->ref) { - g_warning ("sec:Token ref attribute is not supported"); + message(G_LOG_LEVEL_WARNING, "sec:Token ref attribute is not supported"); return NULL; } } diff --git a/lasso/id-wsf-2.0/profile.c b/lasso/id-wsf-2.0/profile.c index de51b3c3..d1c96436 100644 --- a/lasso/id-wsf-2.0/profile.c +++ b/lasso/id-wsf-2.0/profile.c @@ -290,15 +290,15 @@ lasso_idwsf2_profile_build_request_msg(LassoIdWsf2Profile *profile, const char * lasso_release_gobject(misc); } } else { - g_warning ("No security mechanism specified, " \ + message(G_LOG_LEVEL_WARNING, "No security mechanism specified, " \ "failed to find security token for Bearer mechanism"); } if (lasso_wsa_endpoint_reference_get_target_identity_token(epr, lasso_security_mech_id_is_bearer_authentication, NULL) != NULL) { - g_critical("TargetIdentity token are not supported"); + message(G_LOG_LEVEL_CRITICAL, "TargetIdentity token are not supported"); } } else { - g_critical("Only Bearer security mechanism is supported by ID-WSF 2.0 module of Lasso"); + message(G_LOG_LEVEL_CRITICAL, "Only Bearer security mechanism is supported by ID-WSF 2.0 module of Lasso"); } } @@ -782,7 +782,7 @@ lasso_idwsf2_profile_get_name_identifier(LassoIdWsf2Profile *idwsf2_profile) } if (lasso_saml20_profile_process_name_identifier_decryption(&idwsf2_profile->parent, &nameID, &encryptedID) != 0) { - g_warning("process_name_identifier_decryption failed "\ + message(G_LOG_LEVEL_WARNING, "process_name_identifier_decryption failed "\ "when retrieving name identifier for ID-WSF profile"); } } diff --git a/lasso/id-wsf-2.0/saml2_login.c b/lasso/id-wsf-2.0/saml2_login.c index eda6adaf..49e81287 100644 --- a/lasso/id-wsf-2.0/saml2_login.c +++ b/lasso/id-wsf-2.0/saml2_login.c @@ -157,7 +157,7 @@ lasso_login_idwsf2_add_discovery_bootstrap_epr(LassoLogin *login, const char *ur LASSO_PROFILE_ERROR_MISSING_SERVER); /* Warn if the assertion is not a fresh one, we should not modify received assertion */ if (lasso_node_get_original_xmlnode((LassoNode*)assertion) != NULL) { - g_warning("%s should only be called after lasso_login_build_assertion", __func__); + message(G_LOG_LEVEL_WARNING, "%s should only be called after lasso_login_build_assertion", __func__); } -- cgit