1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-29 19:48:43 +01:00

agent: Better diagnostic for a failed key unprotection.

* agent/findkey.c (unprotect): Print a diagnostic if unprotection
failed.
--

GnuPG-bug-id: 6375
This commit is contained in:
Werner Koch 2024-09-27 10:55:45 +02:00
parent 19f2f00bfd
commit 19871fa08c
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -850,6 +850,8 @@ unprotect (ctrl_t ctrl, const char *cache_nonce, const char *desc_text,
*keybuf = result;
return 0;
}
else if (opt.verbose)
log_info (_("Unprotecting key failed: %s\n"), gpg_strerror (rc));
xfree (pw);
}
}