summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-30 15:33:14 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-30 15:33:14 +0000
commit78f53d7b806b81de6e176e5e321c51a131e44dc5 (patch)
treebd9e14f8dd94ee068b2a9d1a1aae706dfde1f56e
parent5b18b469d7a82a498d353bd44a4efe8e794e7e78 (diff)
downloadlasso-78f53d7b806b81de6e176e5e321c51a131e44dc5.tar.gz
lasso-78f53d7b806b81de6e176e5e321c51a131e44dc5.tar.xz
lasso-78f53d7b806b81de6e176e5e321c51a131e44dc5.zip
Some G_LOG_LEVEL_ERROR -> G_LOG_LEVEL_CRITICAL
-rw-r--r--lasso/xml/tools.c22
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;
}