Mailing List Archive

[PATCH gnupg] gpg: Fix showpref to list AEAD feature.
* g10/keyedit.c (show_prefs): Show 'AEAD' if flags.aead is set.
--

The terse 'pref' command in the key editor correctly shows '[aead]'
if the uid->flags.aead is set, but the more verbose 'showpref'
command does not, due to an inverted condition check.

Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
---
g10/keyedit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g10/keyedit.c b/g10/keyedit.c
index d07ec6526..531d3e128 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -3419,7 +3419,7 @@ show_prefs (PKT_user_id * uid, PKT_signature * selfsig, int verbose)
tty_printf ("MDC");
any = 1;
}
- if (!uid->flags.aead)
+ if (uid->flags.aead)
{
if (any)
tty_printf (", ");
--
2.27.0


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
Re: [PATCH gnupg] gpg: Fix showpref to list AEAD feature. [ In reply to ]
Thanks,


Shalom-Salam,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.