diff options
-rw-r--r-- | lasso/xml/tools.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index 2215020a..bd176bf9 100644 --- a/lasso/xml/tools.c +++ b/lasso/xml/tools.c @@ -312,7 +312,7 @@ lasso_query_verify_signature(const gchar *query, /* create signature context */ dsigCtx = xmlSecDSigCtxCreate(NULL); if(dsigCtx == NULL) { - message(G_LOG_LEVEL_ERROR, "Failed to create signature context\n"); + message(G_LOG_LEVEL_CRITICAL, "Failed to create signature context\n"); goto done; } @@ -321,14 +321,14 @@ lasso_query_verify_signature(const gchar *query, xmlSecKeyDataFormatPem, NULL, NULL, NULL); if(dsigCtx->signKey == NULL) { - message(G_LOG_LEVEL_ERROR, "Failed to load public pem key from \"%s\"\n", + message(G_LOG_LEVEL_CRITICAL, "Failed to load public pem key from \"%s\"\n", sender_public_key_file); goto done; } /* Verify signature */ if(xmlSecDSigCtxVerify(dsigCtx, sigNode) < 0) { - message(G_LOG_LEVEL_ERROR, "Signature verify failed\n"); + message(G_LOG_LEVEL_CRITICAL, "Signature verify failed\n"); ret = 0; goto done; } @@ -436,7 +436,7 @@ lasso_str_sign(xmlChar *str, } if (signNode == NULL) { - message(G_LOG_LEVEL_ERROR, "Failed to create signature template\n"); + message(G_LOG_LEVEL_CRITICAL, "Failed to create signature template\n"); goto done; } @@ -447,14 +447,14 @@ lasso_str_sign(xmlChar *str, refNode = xmlSecTmplSignatureAddReference(signNode, xmlSecTransformSha1Id, NULL, NULL, NULL); if (refNode == NULL) { - message(G_LOG_LEVEL_ERROR, "Failed to add reference to signature template\n"); + message(G_LOG_LEVEL_CRITICAL, "Failed to add reference to signature template\n"); goto done; } /* add enveloped transform */ if (xmlSecTmplReferenceAddTransform(refNode, xmlSecTransformEnvelopedId) == NULL) { - message(G_LOG_LEVEL_ERROR, "Failed to add enveloped transform to reference\n"); + message(G_LOG_LEVEL_CRITICAL, "Failed to add enveloped transform to reference\n"); goto done; } @@ -462,19 +462,19 @@ lasso_str_sign(xmlChar *str, signed document */ keyInfoNode = xmlSecTmplSignatureEnsureKeyInfo(signNode, NULL); if (keyInfoNode == NULL) { - message(G_LOG_LEVEL_ERROR, "Failed to add key info\n"); + message(G_LOG_LEVEL_CRITICAL, "Failed to add key info\n"); goto done; } if (xmlSecTmplKeyInfoAddKeyName(keyInfoNode, NULL) == NULL) { - message(G_LOG_LEVEL_ERROR, "Failed to add key name\n"); + message(G_LOG_LEVEL_CRITICAL, "Failed to add key name\n"); goto done; } /* create signature context */ dsigCtx = xmlSecDSigCtxCreate(NULL); if (dsigCtx == NULL) { - message(G_LOG_LEVEL_ERROR,"Failed to create signature context\n"); + message(G_LOG_LEVEL_CRITICAL, "Failed to create signature context\n"); goto done; } @@ -483,14 +483,14 @@ lasso_str_sign(xmlChar *str, xmlSecKeyDataFormatPem, NULL, NULL, NULL); if (dsigCtx->signKey == NULL) { - message(G_LOG_LEVEL_ERROR,"Failed to load private pem key from \"%s\"\n", + message(G_LOG_LEVEL_CRITICAL, "Failed to load private pem key from \"%s\"\n", private_key_file); goto done; } /* sign the template */ if (xmlSecDSigCtxSign(dsigCtx, signNode) < 0) { - message(G_LOG_LEVEL_ERROR,"Signature failed\n"); + message(G_LOG_LEVEL_CRITICAL, "Signature failed\n"); goto done; } |