Fix sending INQUIRE_MAXLEN for symmetric data.

* g10/passphrase.c (passphrase_to_dek_ext): Write the status message.
This commit is contained in:
Ben Kibbey 2015-08-16 12:23:21 -04:00
parent f126ca6156
commit 93f5295df5
1 changed files with 8 additions and 0 deletions

View File

@ -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,