mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
gpg: Improve error message about failed keygrip computation.
* g10/keyid.c (keygrip_from_pk): Print the fingerprint on failure. Signed-off-by: Werner Koch <wk@gnupg.org> (cherry picked from commit cd64af003d4b6b46b69dbd575f73d53359ae0bcc)
This commit is contained in:
parent
4a4bb874f6
commit
edeebe0a6b
@ -941,7 +941,12 @@ keygrip_from_pk (PKT_public_key *pk, unsigned char *array)
|
|||||||
|
|
||||||
if (!gcry_pk_get_keygrip (s_pkey, array))
|
if (!gcry_pk_get_keygrip (s_pkey, array))
|
||||||
{
|
{
|
||||||
log_info ("error computing keygrip\n");
|
char *hexfpr;
|
||||||
|
|
||||||
|
hexfpr = hexfingerprint (pk, NULL, 0);
|
||||||
|
log_info ("error computing keygrip (fpr=%s)\n", hexfpr);
|
||||||
|
xfree (hexfpr);
|
||||||
|
|
||||||
memset (array, 0, 20);
|
memset (array, 0, 20);
|
||||||
err = gpg_error (GPG_ERR_GENERAL);
|
err = gpg_error (GPG_ERR_GENERAL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user