aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-09-27 08:55:45 +0000
committerWerner Koch <[email protected]>2024-09-27 08:55:45 +0000
commit19871fa08c65bfef2298c1d77a326dcd554685cc (patch)
tree2704f0a0fa120e9619239ae60c795000a8b2d0aa
parentgpg: Exclude expired trusted keys from the key validation process. (diff)
downloadgnupg-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 '')
-rw-r--r--agent/findkey.c2
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);
}
}