diff options
author | Werner Koch <wk@gnupg.org> | 2018-05-29 12:24:19 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2018-05-29 12:24:19 +0200 |
commit | af4a5dbe575f304838db358aaeb45741f149d0a7 (patch) | |
tree | 95343cc9e0390ed8fd6977836ca99b5048afb624 /g10/getkey.c | |
parent | po: Update Spanish translation. (diff) | |
download | gnupg2-af4a5dbe575f304838db358aaeb45741f149d0a7.tar.xz gnupg2-af4a5dbe575f304838db358aaeb45741f149d0a7.zip |
gpg: Fix detection of the AEAD feature flag.
* g10/getkey.c (fixup_uidnode): Use bitmask 0x02.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to '')
-rw-r--r-- | g10/getkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index 1120e883e..fe6483592 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -2552,7 +2552,7 @@ fixup_uidnode (KBNODE uidnode, KBNODE signode, u32 keycreated) /* See whether we have the AEAD feature. */ uid->flags.aead = 0; p = parse_sig_subpkt (sig->hashed, SIGSUBPKT_FEATURES, &n); - if (p && n && (p[0] & 0x01)) + if (p && n && (p[0] & 0x02)) uid->flags.aead = 1; /* And the keyserver modify flag. */ |