Home GnuPG
Diffusion GnuPG c60814a5ce13

gpg: Allow importing keys with duplicated long key ids.
c60814a5ce13Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Allow importing keys with duplicated long key ids.

* g10/keydb.c (keydb_handle): Add field no_caching.
(keyblock_cache): Repalce field kid by fpr.
(keydb_disable_caching): New.
(keydb_search): Use the fingerprint as cache index.
* g10/import.c (import_one): Use the fingerprint and not the kid to
lookup the key.  Call keydb_disable_caching beofre re-searching for
update.
* tests/openpgp/import.test: Add a test case.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Oct 13 2014, 2:01 PM
Parents
rGa2567225373a: tests: Add sample keys with colliding long keu ids.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGc60814a5ce13: gpg: Allow importing keys with duplicated long key ids. (authored by Werner Koch <wk@gnupg.org>).Oct 13 2014, 2:01 PM