From 93f5295df512269dd8fecbd649b11cbacf78e864 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sun, 16 Aug 2015 12:23:21 -0400 Subject: Fix sending INQUIRE_MAXLEN for symmetric data. * g10/passphrase.c (passphrase_to_dek_ext): Write the status message. --- g10/passphrase.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'g10/passphrase.c') 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, -- cgit v1.2.3