#48 OpenPGP prompt window for passphrase is prompted twice

open
nobody
None
before_1.4
Minor
2015-12-28
2012-08-08
No

Bug 21946 migrated from Mozdev.org

STR:
1. select in messages list an encrypt message;
2. enigmail prompt for passphrase;
3. click Cancel button on dialog: enigmail prompt the same window again.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5pre) Gecko/20091028
Lightning/1.0pre Shredder/3.0pre ID:20091028031844

Enigmail version 0.97b (20091028-0556)

------- Comment #1 From [:Aureliano Buendía] 2009-12-07 10:48:26 [reply] -------

It happens also with

Enigmail version 1.0 (20091206-0812)

Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a1pre) Gecko/20091206
Lightning/1.1a1pre Shredder/3.1a1pre ID:20091206032122

------- Comment #2 From Patrick Brunschwig 2010-02-06 05:25:54 [reply] -------

Update: this only affects PGP/MIME encrypted messages. I think that Thunderbird
tries to call load the message twice if the 1st attempt failed, but I need to
verify it.

------- Comment #3 From Olav Seyfarth 2010-06-18 00:43:12 [reply] -------

EM 1.1, TB 3.1, GPG4win 2.0.3, W7

For an INLINE encrypted-only message, I get one pinentry dialog that asks for
the passphrase for that specific key and if I cancel that, I get another
pinentry dialog asking for my PIN (I have an OpenPGP SmartCard on my keyring
and the card inserted).

For a PGP/MIME encrypted-only message, I get the same two dialogs THREE times
if I always cancel them.

I'd expect that Engimail/GnuPG try several keys, but in fact the specific
pinentry dialog asks three times for the passphrase for the same encryption
key.

------- Comment #4 From Patrick Brunschwig 2010-06-18 08:15:35 [reply] -------

GnuPG does not tell Enigmail that pinentry was cancelled, it just tells that
the creation of the message has failed. I think it's some Thunderbird-internal
process that tries to send such a message again.

In any case: inline-PGP and PGP/MIME are two completely different stories;
passphrase handling in Enigmail vs. pinentry are yet two entirely different
stories. I believe by now that sending using Enigmail for passphrase handling
is working OK; pinentry not.(In reply to comment #3)

I'd expect that Engimail/GnuPG try several keys, but in fact the specific
pinentry dialog asks three times for the passphrase for the same encryption
key.

If GnuPG tries several keys or not is not known to Enigmail, nor does Enigmail
have an influence on it.

Discussion

  • Olav, do you still observe this?

     
  • Jens Krueger
    Jens Krueger
    2015-12-28

    I observed a different behavior as described in STR above:
    1. select in messages list an encrypt message;
    2. enigmail prompt first time for passphrase;
    3. while typing passphrase a second prompt window appears (ca. 4 seconds later) on exact the same position, but the focus remains on the first prompt window. As a result I can't type anything into the second prompt window and its not moveable - so the only way is to cancel the second prompt window.
    4. cancel the second prompt window.
    5. continue with passphrase input in the first prompt window.
    6. click ok - decryption successful

     
    Attachments
    • Jens Krueger
      Jens Krueger
      2016-01-10

      Adding the line

      use-standard-socket

      in ~/.gnupg/gpg-agent.conf fixes this issue (for me).