mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Handle backsig for v5 signature.
* g10/getkey.c (merge_selfsigs_subkey): Check v5 signature correctly. -- GnuPG-bug-id: 5628 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
86cb04a23d
commit
dd2e092339
@ -3360,7 +3360,8 @@ merge_selfsigs_subkey (ctrl_t ctrl, kbnode_t keyblock, kbnode_t subnode)
|
||||
while ((p = enum_sig_subpkt (sig, 1, SIGSUBPKT_SIGNATURE,
|
||||
&n, &seq, NULL)))
|
||||
if (n > 3
|
||||
&& ((p[0] == 3 && p[2] == 0x19) || (p[0] == 4 && p[1] == 0x19)))
|
||||
&& ((p[0] == 3 && p[2] == 0x19) || (p[0] == 4 && p[1] == 0x19)
|
||||
|| (p[0] == 5 && p[1] == 0x19)))
|
||||
{
|
||||
PKT_signature *tempsig = buf_to_sig (p, n);
|
||||
if (tempsig)
|
||||
@ -3385,7 +3386,8 @@ merge_selfsigs_subkey (ctrl_t ctrl, kbnode_t keyblock, kbnode_t subnode)
|
||||
while ((p = enum_sig_subpkt (sig, 0, SIGSUBPKT_SIGNATURE,
|
||||
&n, &seq, NULL)))
|
||||
if (n > 3
|
||||
&& ((p[0] == 3 && p[2] == 0x19) || (p[0] == 4 && p[1] == 0x19)))
|
||||
&& ((p[0] == 3 && p[2] == 0x19) || (p[0] == 4 && p[1] == 0x19)
|
||||
|| (p[0] == 5 && p[1] == 0x19)))
|
||||
{
|
||||
PKT_signature *tempsig = buf_to_sig (p, n);
|
||||
if (tempsig)
|
||||
|
Loading…
x
Reference in New Issue
Block a user