From 86f446fd446fcc7295ecf6b37a3f4cca45a165f1 Mon Sep 17 00:00:00 2001 From: Damien Goutte-Gattat via Gnupg-devel Date: Mon, 12 Apr 2021 12:17:48 +0100 Subject: [PATCH] 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 --- 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 (", ");