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

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