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:
parent
0f76dd905d
commit
7b2748c6d8
2 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue