gpg: Do not print rejected digest algo notes with --quiet.

* g10/misc.c (print_digest_rejected_note): Do not print in quiet mode.
(print_sha1_keysig_rejected_note): Ditto.
--

GnuPG-bug-id: 4893
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2020-11-09 08:32:04 +01:00
parent bf3a9377d1
commit e08e1d62d0
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 5 additions and 1 deletions

View File

@ -359,6 +359,10 @@ print_digest_rejected_note (enum gcry_md_algos algo)
{
struct weakhash* weak;
int show = 1;
if (opt.quiet)
return;
for (weak = opt.weak_digests; weak; weak = weak->next)
if (weak->algo == algo)
{
@ -384,7 +388,7 @@ print_sha1_keysig_rejected_note (void)
{
static int shown;
if (shown)
if (shown || opt.quiet)
return;
shown = 1;