summaryrefslogtreecommitdiffabout
path: root/src/gpg.c
authorSergey Poznyakoff <gray@gnu.org.ua>2007-08-25 09:15:25 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2007-08-25 09:15:25 (GMT)
commit1107c4341552ecb568b43292fc219a73e0d49a0f (patch) (side-by-side diff)
tree1095ae7b84be6871d5041f01fc63c21f2bb8738b /src/gpg.c
parente8e4051db6f9349b2be50a0806507e463cfb08e5 (diff)
downloadwydawca-1107c4341552ecb568b43292fc219a73e0d49a0f.tar.gz
wydawca-1107c4341552ecb568b43292fc219a73e0d49a0f.tar.bz2
Check access rights. Improve statistics
git-svn-id: file:///svnroot/wydawca/trunk@294 6bb4bd81-ecc2-4fd4-a2d4-9571d19c0d33
Diffstat (limited to 'src/gpg.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/gpg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpg.c b/src/gpg.c
index f4cade4..e014e14 100644
--- a/src/gpg.c
+++ b/src/gpg.c
@@ -243,6 +243,7 @@ verify_directive_signature (struct file_triplet *trp,
else
{
rc = 1;
+ UPDATE_STATS (STAT_BAD_SIGNATURE);
logmsg (LOG_ERR, "%s: directive verification failed: %s",
trp->name, gpgme_strerror (ec));
/* FIXME: Send mail to the project maintainer */
@@ -290,6 +291,7 @@ verify_detached_signature (struct file_triplet *trp,
return 0;
case exec_fail:
+ UPDATE_STATS (STAT_BAD_SIGNATURE);
logmsg (LOG_ERR, "BAD detached signature for %s", trp->name);
break;

Return to:

Send suggestions and report system problems to the System administrator.