diff options
author | Werner Koch <[email protected]> | 2020-11-09 07:32:04 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-11-09 07:34:24 +0000 |
commit | c373735e79a1b6240e9eca972c2bbb0c9f3247c4 (patch) | |
tree | c4ede913c2118179102e2cc27ac971bf318a4efa | |
parent | speedo,w32: Install gpg-check-pattern and example profiles. (diff) | |
download | gnupg-c373735e79a1b6240e9eca972c2bbb0c9f3247c4.tar.gz gnupg-c373735e79a1b6240e9eca972c2bbb0c9f3247c4.zip |
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 <[email protected]>
(cherry picked from commit e08e1d62d089a154ec5d7c80cd58e8e3b18d2d6b)
-rw-r--r-- | g10/misc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/misc.c b/g10/misc.c index fca071836..634d30387 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -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; |