Blame SOURCES/gnupg-2.2.18-gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch

b5a5d8
From: Vincent Breitmoser <look@my.amazin.horse>
b5a5d8
Date: Thu, 13 Jun 2019 21:27:43 +0200
b5a5d8
Subject: gpg: accept subkeys with a good revocation but no self-sig during
b5a5d8
 import
b5a5d8
b5a5d8
* g10/import.c (chk_self_sigs): Set the NODE_GOOD_SELFSIG flag when we
b5a5d8
encounter a valid revocation signature. This allows import of subkey
b5a5d8
revocation signatures, even in the absence of a corresponding subkey
b5a5d8
binding signature.
b5a5d8
b5a5d8
--
b5a5d8
b5a5d8
This fixes the remaining test in import-incomplete.scm.
b5a5d8
b5a5d8
GnuPG-Bug-id: 4393
b5a5d8
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
b5a5d8
---
b5a5d8
 g10/import.c | 1 +
b5a5d8
 1 file changed, 1 insertion(+)
b5a5d8
b5a5d8
diff --git a/g10/import.c b/g10/import.c
b5a5d8
index f9acf95..9217911 100644
b5a5d8
--- a/g10/import.c
b5a5d8
+++ b/g10/import.c
b5a5d8
@@ -3602,6 +3602,7 @@ chk_self_sigs (ctrl_t ctrl, kbnode_t keyblock, u32 *keyid, int *non_self)
b5a5d8
                   /* It's valid, so is it newer? */
b5a5d8
                   if (sig->timestamp >= rsdate)
b5a5d8
                     {
b5a5d8
+                      knode->flag |= NODE_GOOD_SELFSIG; /* Subkey is valid.  */
b5a5d8
                       if (rsnode)
b5a5d8
                         {
b5a5d8
                           /* Delete the last revocation sig since