gpg: accept subkeys with a good revocation but no self-sig during import

* g10/import.c (chk_self_sigs): Set the NODE_GOOD_SELFSIG flag when we
encounter a valid revocation signature. This allows import of subkey
revocation signatures, even in the absence of a corresponding subkey
binding signature.

--

This fixes the remaining test in import-incomplete.scm.

GnuPG-Bug-id: 4393
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Gbp-Pq: Topic import-merge-without-userid
Gbp-Pq: Name gpg-accept-subkeys-with-a-good-revocation-but-no-self-sig.patch
This commit is contained in:
Vincent Breitmoser 2019-06-13 21:27:43 +02:00 committed by openKylinBot
parent 830b6a21f3
commit c794eda606
1 changed files with 1 additions and 0 deletions

View File

@ -3613,6 +3613,7 @@ chk_self_sigs (ctrl_t ctrl, kbnode_t keyblock, u32 *keyid, int *non_self)
/* It's valid, so is it newer? */ /* It's valid, so is it newer? */
if (sig->timestamp >= rsdate) if (sig->timestamp >= rsdate)
{ {
knode->flag |= NODE_GOOD_SELFSIG; /* Subkey is valid. */
if (rsnode) if (rsnode)
{ {
/* Delete the last revocation sig since /* Delete the last revocation sig since