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

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