From 103acfe9ca6e314049671f5b5a760a620046788f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 7 Feb 2023 14:25:58 +0100 Subject: gpg: New list-option --show-unusable-sigs. * g10/options.h (LIST_SHOW_UNUSABLE_SIGS): New. * g10/gpg.c (parse_list_options): Add "show-unusable-sigs". * g10/keydb.h (keyid_eq): New. (pk_is_primary): New. * g10/keylist.c (list_signature_print): Early return for weak key signatures. Print "self-signature" instead of user-id. (list_keyblock_print): Simplify and always set self-sig node flag. -- This patch avoid the printing of often hundreds of "Invalid digest algorithm" notices during key signature listings if those key signatures were done with SHA1. The new option can be used to revert the behaviour. We now also print "[self-signature]" with --check-sigs or --list-sigs instead of the primary user id. This makes such listing easier to read. --- g10/getkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/getkey.c') diff --git a/g10/getkey.c b/g10/getkey.c index 6363fea9f..f0843d154 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -3247,7 +3247,7 @@ buf_to_sig (const byte * buf, size_t len) * has_expired * expired_date * - * On this subkey's most revent valid self-signed packet, the + * On this subkey's most recent valid self-signed packet, the * following field is set: * * flags.chosen_selfsig -- cgit v1.2.3