1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-21 10:09:57 +01: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

4
NEWS
View File

@ -2,6 +2,10 @@ Noteworthy changes in version 2.5.3 (unreleased)
------------------------------------------------ ------------------------------------------------
See-also: gnupg-announce/2024q4/000xxx.html
Release-info: https://dev.gnupg.org/T7442
Noteworthy changes in version 2.5.2 (2024-12-05) Noteworthy changes in version 2.5.2 (2024-12-05)
------------------------------------------------ ------------------------------------------------

View File

@ -2240,15 +2240,17 @@ validate_keys (ctrl_t ctrl, int interactive)
keyblock = get_pubkeyblock (ctrl, k->kid); keyblock = get_pubkeyblock (ctrl, k->kid);
if (!keyblock) if (!keyblock)
{ {
log_info (_("Note: ultimately trusted key %s not found\n"), if (!opt.quiet)
keystr(k->kid)); log_info (_("Note: ultimately trusted key %s not found\n"),
keystr(k->kid));
continue; continue;
} }
pk = keyblock->pkt->pkt.public_key; pk = keyblock->pkt->pkt.public_key;
if (pk->has_expired) if (pk->has_expired)
{ {
log_info (_("Note: ultimately trusted key %s expired\n"), if (!opt.quiet)
keystr(k->kid)); log_info (_("Note: ultimately trusted key %s expired\n"),
keystr(k->kid));
continue; continue;
} }