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>
(cherry picked from commit e08e1d62d0)
This commit is contained in:
Werner Koch 2020-11-09 08:32:04 +01:00
parent a4fa4b5d4b
commit c373735e79
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 5 additions and 1 deletions

View File

@ -339,6 +339,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)
{
@ -364,7 +368,7 @@ print_sha1_keysig_rejected_note (void)
{
static int shown;
if (shown)
if (shown || opt.quiet)
return;
shown = 1;