From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.devel Subject: Re: bad epg.el+GPG2 behavior: unavoidable passphrase pinentry prompt Date: Sun, 29 Sep 2013 11:24:56 -0400 Message-ID: References: <878uyg0yp1.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1380468307 10962 80.91.229.3 (29 Sep 2013 15:25:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Sep 2013 15:25:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 29 17:25:11 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VQIrv-0007Qa-GO for ged-emacs-devel@m.gmane.org; Sun, 29 Sep 2013 17:25:11 +0200 Original-Received: from localhost ([::1]:45084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQIrv-0003WF-2O for ged-emacs-devel@m.gmane.org; Sun, 29 Sep 2013 11:25:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQIrq-0003Qd-Sd for emacs-devel@gnu.org; Sun, 29 Sep 2013 11:25:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQIrq-0005oc-1W for emacs-devel@gnu.org; Sun, 29 Sep 2013 11:25:06 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQIrp-0005oV-VQ for emacs-devel@gnu.org; Sun, 29 Sep 2013 11:25:05 -0400 Original-Received: from du-a.org ([2001:e41:db5e:fb14::1]:35913 helo=localhost.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1VQIro-0001vD-7i for emacs-devel@gnu.org; Sun, 29 Sep 2013 11:25:05 -0400 In-Reply-To: <878uyg0yp1.fsf@flea.lifelogs.com> (Ted Zlatanov's message of "Sun, 29 Sep 2013 05:22:34 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163714 Archived-At: Ted Zlatanov writes: > It used to be possible to do > > GPG_AGENT_INFO=none gpg --decrypt foo.gpg > GPG_AGENT_INFO=none gpg --batch --decrypt foo.gpg > etc. > > but with GPG 2.x that seems to be disabled and the pinentry prompt pops > up no matter what. Without waiting for changes on the GPG side, the > only option seems to be to downgrade to GPG 1.x, which is not a great > solution. I haven't found a configuration option to disable the popup, > and even removing /usr/bin/pinentry and disabling the gpg-agent doesn't > work: Nowadays, GnuPG 2.1 or later has --pinentry-mode option, which provides a way to bypass the graphical pinentry prompt, like: $ gpg --batch --decrypt --pinetry-mode=loopback authinfo.gpg which just behaves like gpg1. I added the support to epg.el (see epg-pinentry-mode) some time ago, but not yet added any user option in epa.el. Patches (and testing) are welcome. Regards, -- Daiki Ueno