mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-23 21:59:57 +01:00
gpg: Show debugging info if a sig with an unsupported sig class is used.
* g10/sig-check.c (check_key_signature2): If SIG->CLASS is unsupported, show some debugging information. Don't use BUG to fail. Just return GPG_ERR_BAD_SIGNATURE. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
960f5e26f2
commit
87515e3929
@ -1086,7 +1086,12 @@ check_key_signature2 (kbnode_t root, kbnode_t node, PKT_public_key *check_pk,
|
||||
}
|
||||
}
|
||||
else
|
||||
BUG ();
|
||||
{
|
||||
log_info ("sig issued by %s with class %d (digest: %x %x) is not valid over a user id or a key id, ignoring.\n",
|
||||
keystr (sig->keyid), sig->sig_class,
|
||||
sig->digest_start[0], sig->digest_start[1]);
|
||||
rc = gpg_error (GPG_ERR_BAD_SIGNATURE);
|
||||
}
|
||||
|
||||
cache_sig_result (sig, rc);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user