From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.bugs Subject: bug#20550: 25.0.50; Add GnuPG 2.x support to epa-file-cache-passphrase-for-symmetric-encryption. Date: Tue, 12 May 2015 19:48:49 +0900 Message-ID: <87lhguxe9a.fsf-ueno@gnu.org> References: <87zj5a7mt4.fsf-ueno@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1431427757 10317 80.91.229.3 (12 May 2015 10:49:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2015 10:49:17 +0000 (UTC) Cc: Werner Koch , 20550@debbugs.gnu.org To: Artur Malabarba Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 12 12:49:07 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ys7kI-0002O6-Lo for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 May 2015 12:49:06 +0200 Original-Received: from localhost ([::1]:42095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys7kI-0005bU-0R for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 May 2015 06:49:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys7kF-0005bO-Gf for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 06:49:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys7kE-0000eK-I2 for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 06:49:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59949) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys7kE-0000dw-FK for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 06:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ys7kE-0000Sm-2w for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 06:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daiki Ueno Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 May 2015 10:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20550 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20550-submit@debbugs.gnu.org id=B20550.14314277381770 (code B ref 20550); Tue, 12 May 2015 10:49:01 +0000 Original-Received: (at 20550) by debbugs.gnu.org; 12 May 2015 10:48:58 +0000 Original-Received: from localhost ([127.0.0.1]:41691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys7k9-0000ST-C1 for submit@debbugs.gnu.org; Tue, 12 May 2015 06:48:57 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:53103 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ys7k7-0000SM-Sa for 20550@debbugs.gnu.org; Tue, 12 May 2015 06:48:56 -0400 Original-Received: from du-a.org ([219.94.251.20]:49520 helo=debian) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Ys7k6-0000tF-OW; Tue, 12 May 2015 06:48:55 -0400 In-Reply-To: (Artur Malabarba's message of "Tue, 12 May 2015 09:49:55 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:102699 Archived-At: Artur Malabarba writes: > - It made things worse in the sense that I now have to type the > password 4(!) times when saving the file (all prompts are inside > emacs). The first prompt is "Passphrase for symmetric encryption for > /.../file.gpg: ", then I get "Confirm password: ", then I get the > first one again, then the second one again. Oh, you are right. GnuPG 2.1 --pinentry-mode=loopback asks passphrase twice on symmetric encryption, while GnuPG 1.x does that only once (look at the GET_HIDDEN lines below): $ gpg2 --command-fd=1 --status-fd=1 --pinentry-mode=loopback --symmetric -o /dev/null < /dev/null gpg: NOTE: THIS IS A DEVELOPMENT VERSION! gpg: It is only intended for test purposes and should NOT be gpg: used in a production environment or with production keys! [GNUPG:] NEED_PASSPHRASE_SYM 7 3 2 [GNUPG:] GET_HIDDEN passphrase.enter test [GNUPG:] GOT_IT [GNUPG:] GET_HIDDEN passphrase.enter test [GNUPG:] GOT_IT [GNUPG:] BEGIN_ENCRYPTION 2 7 [GNUPG:] END_ENCRYPTION $ gpg --command-fd=1 --status-fd=1 --symmetric -o /dev/null < /dev/null [GNUPG:] NEED_PASSPHRASE_SYM 3 3 2 [GNUPG:] GET_HIDDEN passphrase.enter test [GNUPG:] GOT_IT [GNUPG:] BEGIN_ENCRYPTION 0 3 [GNUPG:] END_ENCRYPTION Though I suppose the repetition is meant to be a confirmation, I think it is not very useful for clients (since we already know that the confirmation is needed) and causes compatibility issues. Could this be fixed in GnuPG itself? Thanks, -- Daiki Ueno