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>
Fri, 1 Jul 2022 16:06:43 +0000 (17:06 +0100)
commit4f8fc5b85a0d1341fe21fbce0e53e35dcfc953ee
tree8571c00a104b164b365e37595e7bf6c74d8ccda8
parent5ce8882035b0db39af77c9a60c51cf638777787d
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