File _service:tar_scm:gnupg-2.2.18-gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch of Package gnupg2

33
 
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
5
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.
10
11
--
12
13
This fixes the remaining test in import-incomplete.scm.
14
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(+)
20
21
diff --git a/g10/import.c b/g10/import.c
22
index f9acf95..9217911 100644
23
--- a/g10/import.c
24
+++ b/g10/import.c
25
@@ -3602,6 +3602,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)
28
                     {
29
+                      knode->flag |= NODE_GOOD_SELFSIG; /* Subkey is valid.  */
30
                       if (rsnode)
31
                         {
32
                           /* Delete the last revocation sig since
33