diff options
| author | Werner Koch <[email protected]> | 2004-09-29 13:50:31 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2004-09-29 13:50:31 +0000 |
| commit | 530a0a91c4f5dc935278f64be26090f51acc9586 (patch) | |
| tree | 144e3ce60590e21529cfe33af20c25f6eb1581bf /agent/protect-tool.c | |
| parent | Changed license of the manual stuff to GPL. (diff) | |
| download | gnupg-530a0a91c4f5dc935278f64be26090f51acc9586.tar.gz gnupg-530a0a91c4f5dc935278f64be26090f51acc9586.zip | |
* minip12.c (parse_bag_encrypted_data): Print error if a bad
passphrase has been given.
* gpg-agent.texi (Invoking GPG-AGENT): Add a few words about the
expected pinentry filename.
* import.c (parse_p12): Write an error status line for bad
passphrases. Add new arg CTRL and changed caller.
* export.c (export_p12): Likewise.
Diffstat (limited to 'agent/protect-tool.c')
| -rw-r--r-- | agent/protect-tool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/protect-tool.c b/agent/protect-tool.c index 7cfb760b8..286adde54 100644 --- a/agent/protect-tool.c +++ b/agent/protect-tool.c @@ -882,6 +882,8 @@ export_p12_file (const char *fname) release_passphrase (pw); if (rc) { + if (opt_status_msg && gpg_err_code (rc) == GPG_ERR_BAD_PASSPHRASE ) + log_info ("[PROTECT-TOOL:] bad-passphrase\n"); log_error ("unprotecting key `%s' failed: %s\n", fname, gpg_strerror (rc)); xfree (key); |
