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

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