gpg: Prepare for signatures with ISSUER_FPR but without ISSUER.
authorWerner Koch <wk@gnupg.org>
Thu, 5 Jul 2018 18:55:32 +0000 (20:55 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 5 Jul 2018 19:41:02 +0000 (21:41 +0200)
commit221af19351addcdc28a1cd533c8628cfa3841671
treeed7e78a9e2fe29262f2e46495962926bccf52dee
parent063cf45c142f33815bc0f31d0fb3e1b25ca57b8c
gpg: Prepare for signatures with ISSUER_FPR but without ISSUER.

* g10/getkey.c (get_pubkey_for_sig): New.
(get_pubkeyblock_for_sig): New.
* g10/mainproc.c (issuer_fpr_raw): Give global scope.
(check_sig_and_print): Use get_pubkeyblock_for_sig.
* g10/pkclist.c (check_signatures_trust): Use get_pubkey_for_sig.
* g10/sig-check.c (check_signature2): Ditto.
(check_signature_over_key_or_uid): Ditto.
--

GnuPG-bug-id: 4046

The whole getkey stuff is still a mess with way to much duplication
and missing caching of already fetched data.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit f7526c7bc754acf68bde0b79c785e875a9365d60)
g10/getkey.c
g10/keydb.h
g10/mainproc.c
g10/packet.h
g10/pkclist.c
g10/sig-check.c