base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / security / gnupg / accept-subkeys-with-a-good-revocation-but-no-self-sig.patch
blob5cbec92ae68341210763d67b84fa6fe970895e25
1 From: Vincent Breitmoser <look@my.amazin.horse>
2 Date: Thu, 13 Jun 2019 21:27:43 +0200
3 Subject: gpg: accept subkeys with a good revocation but no self-sig during
4 import
6 * g10/import.c (chk_self_sigs): Set the NODE_GOOD_SELFSIG flag when we
7 encounter a valid revocation signature. This allows import of subkey
8 revocation signatures, even in the absence of a corresponding subkey
9 binding signature.
13 This fixes the remaining test in import-incomplete.scm.
15 GnuPG-Bug-id: 4393
16 Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
17 ---
18 g10/import.c | 1 +
19 1 file changed, 1 insertion(+)
21 diff --git a/g10/import.c b/g10/import.c
22 index 4fdf248..ee2fed8 100644
23 --- a/g10/import.c
24 +++ b/g10/import.c
25 @@ -3613,6 +3613,7 @@ chk_self_sigs (ctrl_t ctrl, kbnode_t keyblock, u32 *keyid, int *non_self)
26 /* It's valid, so is it newer? */
27 if (sig->timestamp >= rsdate)
29 + knode->flag |= NODE_GOOD_SELFSIG; /* Subkey is valid. */
30 if (rsnode)
32 /* Delete the last revocation sig since