summaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
authorDamien Goutte-Gattat via Gnupg-devel <gnupg-devel@gnupg.org>2021-04-12 13:17:48 +0200
committerWerner Koch <wk@gnupg.org>2021-04-19 13:18:38 +0200
commit86f446fd446fcc7295ecf6b37a3f4cca45a165f1 (patch)
tree0b5fe1af1e76a5fa8e193cfea97707ec90f49edd /g10
parentdoc: Fix an example in README.ldap (diff)
downloadgnupg2-86f446fd446fcc7295ecf6b37a3f4cca45a165f1.tar.xz
gnupg2-86f446fd446fcc7295ecf6b37a3f4cca45a165f1.zip
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>
Diffstat (limited to 'g10')
-rw-r--r--g10/keyedit.c2
1 files changed, 1 insertions, 1 deletions
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 (", ");