From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Halvorson Newsgroups: gmane.emacs.devel Subject: Re: gnupg interface Date: Fri, 16 May 2008 05:04:09 -0400 Message-ID: <87lk2ak4c6.wl%hhalvors@Princeton.EDU> References: <87r6c4xzml.wl%hhalvors@Princeton.EDU> <54a15d860805142112s410aacefyb54c1868939fd911@mail.gmail.com> <87od7726tz.wl%hhalvors@Princeton.EDU> <87zlqq99hx.fsf@broken.deisui.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1210928548 23313 80.91.229.12 (16 May 2008 09:02:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 09:02:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Daiki Ueno Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 16 11:03:03 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jwvq9-0000ri-6V for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 11:03:01 +0200 Original-Received: from localhost ([127.0.0.1]:51601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwvpP-0006Cq-Nn for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 05:02:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jwvnu-0005Jy-KQ for emacs-devel@gnu.org; Fri, 16 May 2008 05:00:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jwvnt-0005J3-Da for emacs-devel@gnu.org; Fri, 16 May 2008 05:00:41 -0400 Original-Received: from [199.232.76.173] (port=47057 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwvnt-0005Io-4d for emacs-devel@gnu.org; Fri, 16 May 2008 05:00:41 -0400 Original-Received: from postoffice03.princeton.edu ([128.112.131.174]:56462 helo=Princeton.EDU) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jwvns-0000vb-KD for emacs-devel@gnu.org; Fri, 16 May 2008 05:00:40 -0400 Original-Received: from smtpserver1.Princeton.EDU (smtpserver1.Princeton.EDU [128.112.129.65]) by Princeton.EDU (8.13.8/8.13.8) with ESMTP id m4G90RP1022879; Fri, 16 May 2008 05:00:33 -0400 (EDT) Original-Received: from phi-ghk3981.princeton.edu ([72.82.227.211]) (authenticated bits=0) by smtpserver1.Princeton.EDU (8.12.9/8.12.9) with ESMTP id m4G90FjN029717 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT); Fri, 16 May 2008 05:00:16 -0400 (EDT) In-Reply-To: <87zlqq99hx.fsf@broken.deisui.org> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?B?U2hpasWN?=) APEL/10.7 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:97251 Archived-At: At Fri, 16 May 2008 13:08:10 +0900, Daiki Ueno wrote: > > >>>>> In <87od7726tz.wl%hhalvors@Princeton.EDU> > >>>>> Hans Halvorson wrote: > > > > When I try to open with easypg (M-x epa-decrypt-file), Emacs hangs with > > > > minibuffer message: > > > > > > > > Decrypting sekritz.gpg...0% (0/1622) > > > I think now that the problem lies not at all with Emacs development, > > but with the upgrade to gnupg version 2, which forces (?) the use of > > gpg-agent. > > True. GnuPG 2.x does it. > > > It seems that gpg-agent is waiting for a passphrase (for decryption of > > the file). Here is the content of the log on the first run: > > > gpg --no-tty --status-fd 1 --yes --enable-progress-filter --command-fd 0 --output /home/anonym/foobar.txt --decrypt -- /home/anonym/sekritz.gpg > > [GNUPG:] PROGRESS /home/anonym/sekri ? 0 1622 > > gpg: 3DES encrypted data > > [GNUPG:] NEED_PASSPHRASE_SYM 2 3 2 > > can't connect to `/home/anonym/.gnupg/S.gpg-agent': Connection refused > > pinentry-curses: no LC_CTYPE known - assuming UTF-8 > > pinentry-curses: no LC_CTYPE known - assuming UTF-8 > > pinentry-curses: no LC_CTYPE known - assuming UTF-8 > > pinentry-curses: no LC_CTYPE known - assuming UTF-8 > > > So I start gpg-agent and try again: I do M-x epa-decrypt-file [RET] > > ~/sekritz.gpg [RET], and Emacs hangs. So I check my other windows, > > and realize that xterm has popped up a curses password dialog > > (pinentry-curses). But things are garbled: when I try to enter the > > password, it doesn't work. > > Currently pinentry-curses is not well integrated into Emacs, and I'm > recently trying to fix it. See: > http://article.gmane.org/gmane.emacs.devel/96207 > > > I could not find any documentation for how to set up easypg to work > > with gnupg version 2. Can easypg be used to decrypt gpg files (with > > gnupg v 2) when running Emacs in a text terminal? > > IIUC, GnuPG 2.x series are not just newer versions of GnuPG but on the > different product line from GnuPG 1.x series, and they can coexist in > the system. So unless you have any particular reason to choose GnuPG > 2.x, I'd recommend: > > 1. Install the latest GnuPG 1.x along with 2.x and let epg-gpg-program > to point the executable, or > > 2. Use other pinentry-program which interact through the windowing system > > Regards, > -- > Daiki Ueno Many thanks for your helpful responses. -Hans