[PATCH gnupg] gpg: Fix showpref to list AEAD feature.

Damien Goutte-Gattat dgouttegattat at incenp.org
Mon Apr 12 13:17:48 CEST 2021


* 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 at 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




More information about the Gnupg-devel mailing list