aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorDamien Goutte-Gattat via Gnupg-devel <[email protected]>2021-04-12 11:17:48 +0000
committerWerner Koch <[email protected]>2021-04-19 11:18:38 +0000
commit86f446fd446fcc7295ecf6b37a3f4cca45a165f1 (patch)
tree0b5fe1af1e76a5fa8e193cfea97707ec90f49edd /g10/keyedit.c
parentdoc: Fix an example in README.ldap (diff)
downloadgnupg-86f446fd446fcc7295ecf6b37a3f4cca45a165f1.tar.gz
gnupg-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 <[email protected]>
Diffstat (limited to 'g10/keyedit.c')
-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 (", ");