diff options
| author | Werner Koch <[email protected]> | 2024-09-27 08:55:45 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2024-09-27 08:55:45 +0000 |
| commit | 19871fa08c65bfef2298c1d77a326dcd554685cc (patch) | |
| tree | 2704f0a0fa120e9619239ae60c795000a8b2d0aa /agent/findkey.c | |
| parent | gpg: Exclude expired trusted keys from the key validation process. (diff) | |
| download | gnupg-19871fa08c65bfef2298c1d77a326dcd554685cc.tar.gz gnupg-19871fa08c65bfef2298c1d77a326dcd554685cc.zip | |
agent: Better diagnostic for a failed key unprotection.
* agent/findkey.c (unprotect): Print a diagnostic if unprotection
failed.
--
GnuPG-bug-id: 6375
Diffstat (limited to 'agent/findkey.c')
| -rw-r--r-- | agent/findkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/findkey.c b/agent/findkey.c index c0cbce7a2..8efb7b320 100644 --- a/agent/findkey.c +++ b/agent/findkey.c @@ -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); } } |
