diff options
author | Werner Koch <wk@gnupg.org> | 2018-07-05 20:55:32 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2018-07-05 20:55:32 +0200 |
commit | f7526c7bc754acf68bde0b79c785e875a9365d60 (patch) | |
tree | 02ee25b364468dab6ee3a69410b83a2ceda3a7d0 /g10/packet.h | |
parent | doc: Typo fix in a comment. (diff) | |
download | gnupg2-f7526c7bc754acf68bde0b79c785e875a9365d60.tar.xz gnupg2-f7526c7bc754acf68bde0b79c785e875a9365d60.zip |
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>
Diffstat (limited to 'g10/packet.h')
-rw-r--r-- | g10/packet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/packet.h b/g10/packet.h index 40a8c4bf6..695768695 100644 --- a/g10/packet.h +++ b/g10/packet.h @@ -621,6 +621,7 @@ int proc_signature_packets_by_fd (ctrl_t ctrl, int proc_encryption_packets (ctrl_t ctrl, void *ctx, iobuf_t a); int list_packets( iobuf_t a ); +const byte *issuer_fpr_raw (PKT_signature *sig, size_t *r_len); char *issuer_fpr_string (PKT_signature *sig); /*-- parse-packet.c --*/ |