aboutsummaryrefslogtreecommitdiffstats
path: root/agent/call-pinentry.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-07-28 09:40:56 +0000
committerWerner Koch <[email protected]>2017-07-28 09:51:04 +0000
commit5cf95157c5db88dd599ac4d48f619782179b1438 (patch)
tree2fa55c6266866b4234f49af1682a5df4b8e2e309 /agent/call-pinentry.c
parentgpg: Minor rework for better readibility of get_best_pubkey_byname. (diff)
downloadgnupg-5cf95157c5db88dd599ac4d48f619782179b1438.tar.gz
gnupg-5cf95157c5db88dd599ac4d48f619782179b1438.zip
agent: For OCB key files return Bad Passprase instead of Checksum Error.
* agent/protect.c (do_decryption): Map error checksum to bad passpharse protection * agent/call-pinentry.c (unlock_pinentry): Don't munge the error source for corrupted protection. -- GnuPG-bug-id: 3266 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'agent/call-pinentry.c')
-rw-r--r--agent/call-pinentry.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/call-pinentry.c b/agent/call-pinentry.c
index cb7997faa..6a5c1fe1e 100644
--- a/agent/call-pinentry.c
+++ b/agent/call-pinentry.c
@@ -167,6 +167,10 @@ unlock_pinentry (gpg_error_t rc)
case GPG_ERR_BAD_PIN:
break;
+ case GPG_ERR_CORRUPTED_PROTECTION:
+ /* This comes from gpg-agent. */
+ break;
+
default:
rc = gpg_err_make (GPG_ERR_SOURCE_PINENTRY, gpg_err_code (rc));
break;