gpg: Improve skipping of PGP-2 keys.
authorWerner Koch <wk@gnupg.org>
Thu, 22 Jan 2015 15:36:28 +0000 (16:36 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 22 Jan 2015 15:36:28 +0000 (16:36 +0100)
commit09e8f35d3808d6e49f891360c341aae3869e8650
treeb2260c1e987a48f4ab556a4b781fe3a50c262b27
parent6f3d11d8837b00e3a1c4fa881066855c0321d6b2
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: 1816
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/keydb.c
g10/keylist.c
g10/keyring.c
g10/keyserver.c
g10/trustdb.c