[PATCH] g10: --quiet should suppress notice about rejected third-party key signatures

Robin H. Johnson robbat2 at gentoo.org
Wed May 20 07:26:43 CEST 2020


Let --quiet hide the output about third-party key signatures:
```
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
```

This does not change actual behavior, it just omits that note instead.

Signed-off-by: Robin H. Johnson <robbat2 at gentoo.org>
---
 g10/misc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git g10/misc.c g10/misc.c
index 22ed47e7c..d46fa90b2 100644
--- g10/misc.c
+++ g10/misc.c
@@ -366,6 +366,8 @@ print_sha1_keysig_rejected_note (void)
 {
   static int shown;
 
+  if (opt.quiet)
+	return;
   if (shown)
     return;
 
-- 
2.26.2




More information about the Gnupg-devel mailing list