1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

gpg: Silence expired trusted-key diagnostics in quiet mode.

* g10/trustdb.c (validate_keys): Take care of --quiet.
--

GnuPG-bug-id: 7351
This commit is contained in:
Werner Koch 2024-12-05 16:32:25 +01:00
parent 0f76dd905d
commit 7b2748c6d8
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
2 changed files with 10 additions and 4 deletions

View file

@ -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;
}