mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-05 21:41:06 +01:00
Fix sending INQUIRE_MAXLEN for symmetric data.
* g10/passphrase.c (passphrase_to_dek_ext): Write the status message.
This commit is contained in:
parent
f126ca6156
commit
93f5295df5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user