summaryrefslogtreecommitdiffabout
path: root/src/gpg.c
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-21 10:53:43 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2009-02-21 10:53:43 (GMT)
commit12fd740c530106f4a74c5ff2c6ce6d0ea305ab70 (patch) (side-by-side diff)
tree6064e3770a3fa4210443cfc9f8cd390b932aee94 /src/gpg.c
parent62758ace16e756050f15b81e66ee5ab3bdd062ab (diff)
downloadwydawca-12fd740c530106f4a74c5ff2c6ce6d0ea305ab70.tar.gz
wydawca-12fd740c530106f4a74c5ff2c6ce6d0ea305ab70.tar.bz2
Implement per-directory notifications
* src/config.c (default_notification): New static. (cb_notify_event): Explicitly link new notification to the chain. (directory_kw): New keyword "notify-event". (cb_directory): Use previously defined global notifications. * src/mail.c (register_notification): Remove. (notify): Tak a list of notifications to run as an argument. * src/directive.c, src/gpg.c, src/verify.c: Update calls to notify. * src/wydawca.h (struct directory_pair.notification): New member. * tests/notify-upl.at: Define notifications before the directory pair in the configuration file.
Diffstat (limited to 'src/gpg.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/gpg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpg.c b/src/gpg.c
index df855c7..cbeff1b 100644
--- a/src/gpg.c
+++ b/src/gpg.c
@@ -237,7 +237,7 @@ verify_directive_signature (struct file_triplet *trp,
if (!gpg_sig_ok_p (ctx, result->signatures))
{
UPDATE_STATS (STAT_BAD_SIGNATURE);
- notify (trp, ev_bad_directive_signature);
+ notify (dpair->notification, trp, ev_bad_directive_signature);
rc = 1;
}
}
@@ -293,7 +293,7 @@ verify_detached_signature (struct file_triplet *trp,
case exec_fail:
UPDATE_STATS (STAT_BAD_SIGNATURE);
logmsg (LOG_ERR, "BAD detached signature for %s", trp->name);
- notify (trp, ev_bad_detached_signature);
+ notify (dpair->notification, trp, ev_bad_detached_signature);
break;
case exec_error:

Return to:

Send suggestions and report system problems to the System administrator.