mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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 e08e1d62d089a154ec5d7c80cd58e8e3b18d2d6b)
This commit is contained in:
parent
a4fa4b5d4b
commit
c373735e79
@ -339,6 +339,10 @@ print_digest_rejected_note (enum gcry_md_algos algo)
|
|||||||
{
|
{
|
||||||
struct weakhash* weak;
|
struct weakhash* weak;
|
||||||
int show = 1;
|
int show = 1;
|
||||||
|
|
||||||
|
if (opt.quiet)
|
||||||
|
return;
|
||||||
|
|
||||||
for (weak = opt.weak_digests; weak; weak = weak->next)
|
for (weak = opt.weak_digests; weak; weak = weak->next)
|
||||||
if (weak->algo == algo)
|
if (weak->algo == algo)
|
||||||
{
|
{
|
||||||
@ -364,7 +368,7 @@ print_sha1_keysig_rejected_note (void)
|
|||||||
{
|
{
|
||||||
static int shown;
|
static int shown;
|
||||||
|
|
||||||
if (shown)
|
if (shown || opt.quiet)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
shown = 1;
|
shown = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user