diff options
author | Ben Kibbey <[email protected]> | 2015-08-16 16:23:21 +0000 |
---|---|---|
committer | Ben Kibbey <[email protected]> | 2015-08-16 16:54:04 +0000 |
commit | 93f5295df512269dd8fecbd649b11cbacf78e864 (patch) | |
tree | 149224d475de8ec9f982c65f5a681b39dfff1fba /g10/passphrase.c | |
parent | Inform a user about inquire length limit. (diff) | |
download | gnupg-93f5295df512269dd8fecbd649b11cbacf78e864.tar.gz gnupg-93f5295df512269dd8fecbd649b11cbacf78e864.zip |
Fix sending INQUIRE_MAXLEN for symmetric data.
* g10/passphrase.c (passphrase_to_dek_ext): Write the status message.
Diffstat (limited to 'g10/passphrase.c')
-rw-r--r-- | g10/passphrase.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/g10/passphrase.c b/g10/passphrase.c index 08984eff9..5eb2562b0 100644 --- a/g10/passphrase.c +++ b/g10/passphrase.c @@ -533,6 +533,14 @@ passphrase_to_dek_ext (u32 *keyid, int pubkey_algo, s2k_cacheid = s2k_cacheidbuf; } + if (opt.pinentry_mode == PINENTRY_MODE_LOOPBACK) + { + char buf[32]; + + snprintf (buf, sizeof (buf), "%u", 100); + write_status_text (STATUS_INQUIRE_MAXLEN, buf); + } + /* Divert to the gpg-agent. */ pw = passphrase_get (keyid, mode == 2, s2k_cacheid, (mode == 2 || mode == 4)? opt.passphrase_repeat : 0, |