diff options
author | Werner Koch <[email protected]> | 2025-02-20 13:50:20 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-02-20 13:50:20 +0000 |
commit | 5e87e452e4e8c4a653180eafc119be51a990da5c (patch) | |
tree | d3af5ce43bb7c9dca61ed112729e2bf676b8ffd2 /g10/packet.h | |
parent | doc: Declare --disable-http as legacy. (diff) | |
download | gnupg-5e87e452e4e8c4a653180eafc119be51a990da5c.tar.gz gnupg-5e87e452e4e8c4a653180eafc119be51a990da5c.zip |
gpg: Remove a signature check function wrapper.
* g10/sig-check.c (check_signature2): Rename to
(check_signature): this and remove the old wrapper. Adjust all
callers.
Diffstat (limited to 'g10/packet.h')
-rw-r--r-- | g10/packet.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/g10/packet.h b/g10/packet.h index 375392807..cf128005b 100644 --- a/g10/packet.h +++ b/g10/packet.h @@ -926,16 +926,12 @@ int cmp_user_ids( PKT_user_id *a, PKT_user_id *b ); /*-- sig-check.c --*/ -/* Check a signature. This is shorthand for check_signature2 with - the unnamed arguments passed as NULL. */ -int check_signature (ctrl_t ctrl, PKT_signature *sig, gcry_md_hd_t digest); - /* Check a signature. Looks up the public key from the key db. (If * R_PK is not NULL, it is stored at RET_PK.) DIGEST contains a * valid hash context that already includes the signed data. This * function adds the relevant meta-data to the hash before finalizing * it and verifying the signature. FOCRED_PK is usually NULL. */ -gpg_error_t check_signature2 (ctrl_t ctrl, +gpg_error_t check_signature (ctrl_t ctrl, PKT_signature *sig, gcry_md_hd_t digest, const void *extrahash, size_t extrahashlen, PKT_public_key *forced_pk, |