mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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.
This commit is contained in:
parent
4c11359aec
commit
5e87e452e4
3 changed files with 14 additions and 31 deletions
|
@ -1263,19 +1263,17 @@ do_check_sig (CTX c, kbnode_t node, const void *extrahash, size_t extrahashlen,
|
|||
|
||||
/* We only get here if we are checking the signature of a binary
|
||||
(0x00) or text document (0x01). */
|
||||
rc = check_signature2 (c->ctrl, sig, md, extrahash, extrahashlen,
|
||||
forced_pk,
|
||||
NULL, is_expkey, is_revkey, r_pk);
|
||||
rc = check_signature (c->ctrl, sig, md, extrahash, extrahashlen,
|
||||
forced_pk, NULL, is_expkey, is_revkey, r_pk);
|
||||
if (! rc)
|
||||
md_good = md;
|
||||
else if (gpg_err_code (rc) == GPG_ERR_BAD_SIGNATURE && md2)
|
||||
{
|
||||
PKT_public_key *pk2;
|
||||
|
||||
rc = check_signature2 (c->ctrl, sig, md2, extrahash, extrahashlen,
|
||||
forced_pk,
|
||||
NULL, is_expkey, is_revkey,
|
||||
r_pk? &pk2 : NULL);
|
||||
rc = check_signature (c->ctrl, sig, md2, extrahash, extrahashlen,
|
||||
forced_pk, NULL, is_expkey, is_revkey,
|
||||
r_pk? &pk2 : NULL);
|
||||
if (!rc)
|
||||
{
|
||||
md_good = md2;
|
||||
|
@ -1897,7 +1895,6 @@ issuer_fpr_string (PKT_signature *sig)
|
|||
return p? bin2hex (p, n, NULL) : NULL;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
print_good_bad_signature (int statno, const char *keyid_str, kbnode_t un,
|
||||
PKT_signature *sig, int rc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue