Home GnuPG
Diffusion GnuPG 09e8f35d3808

gpg: Improve skipping of PGP-2 keys.
09e8f35d3808Unpublished

Unpublished Commit · Learn More

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

Description

gpg: Improve skipping of PGP-2 keys.

* g10/keydb.c (keydb_search_first, keydb_search_next): Skip legacy
keys.
* g10/keyring.c (keyring_get_keyblock): Handle GPG_ERR_LEGACY_KEY.
(prepare_search): Ditto.
(keyring_rebuild_cache): Skip legacy keys.
* g10/keyserver.c (keyidlist): Ditto.
* g10/trustdb.c (validate_key_list): Ditto.

This is not the most elegant way to handle it but it reduces the
chance for unwanted side effects.

  • GnuPG-bug-id: T1816
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 22 2015, 4:36 PM
Parents
rG6f3d11d8837b: gpg: Add dedicated error code for PGP-2 keys.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG09e8f35d3808: gpg: Improve skipping of PGP-2 keys. (authored by Werner Koch <wk@gnupg.org>).Jan 22 2015, 4:36 PM
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:06 PM
werner mentioned this in Unknown Object (Maniphest Task).
werner mentioned this in Unknown Object (Maniphest Task).Mar 27 2017, 5:29 PM
werner mentioned this in Unknown Object (Maniphest Task).