gpg: allow import of previously known keys, even without UIDs
authorVincent Breitmoser <look@my.amazin.horse>
Thu, 13 Jun 2019 19:27:42 +0000 (21:27 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 22 Aug 2019 19:11:59 +0000 (20:11 +0100)
commitce26f20f9dbf5f858e6e3288a93ca650373e7d03
treef7d0bff95d58c05a38bd516092611cfe88a32015
parent793981c943d26b1e6497e2851d1bc89b1cb6f159
gpg: allow import of previously known keys, even without UIDs

* g10/import.c (import_one): Accept an incoming OpenPGP certificate that
has no user id, as long as we already have a local variant of the cert
that matches the primary key.

--

This fixes two of the three broken tests 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-allow-import-of-previously-known-keys-even-without-UI.patch
g10/import.c