summaryrefslogtreecommitdiffstats
path: root/g10/trustdb.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-12-05 16:32:25 +0100
committerWerner Koch <wk@gnupg.org>2024-12-05 16:32:25 +0100
commit7b2748c6d8fb33e390a3bec9ae9da7679fb59aa6 (patch)
tree706978b8f57e421b229c28a286f4f1d60d3a340e /g10/trustdb.c
parentPost release updates (diff)
downloadgnupg2-7b2748c6d8fb33e390a3bec9ae9da7679fb59aa6.tar.xz
gnupg2-7b2748c6d8fb33e390a3bec9ae9da7679fb59aa6.zip
gpg: Silence expired trusted-key diagnostics in quiet mode.
* g10/trustdb.c (validate_keys): Take care of --quiet. -- GnuPG-bug-id: 7351
Diffstat (limited to '')
-rw-r--r--g10/trustdb.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 7dc1c8f38..9c26a8336 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -2240,15 +2240,17 @@ validate_keys (ctrl_t ctrl, int interactive)
keyblock = get_pubkeyblock (ctrl, k->kid);
if (!keyblock)
{
- log_info (_("Note: ultimately trusted key %s not found\n"),
- keystr(k->kid));
+ if (!opt.quiet)
+ log_info (_("Note: ultimately trusted key %s not found\n"),
+ keystr(k->kid));
continue;
}
pk = keyblock->pkt->pkt.public_key;
if (pk->has_expired)
{
- log_info (_("Note: ultimately trusted key %s expired\n"),
- keystr(k->kid));
+ if (!opt.quiet)
+ log_info (_("Note: ultimately trusted key %s expired\n"),
+ keystr(k->kid));
continue;
}