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: gnupg interface Date: Fri, 16 May 2008 13:08:10 +0900 Message-ID: <87zlqq99hx.fsf@broken.deisui.org> References: <87r6c4xzml.wl%hhalvors@Princeton.EDU> <54a15d860805142112s410aacefyb54c1868939fd911@mail.gmail.com> <87od7726tz.wl%hhalvors@Princeton.EDU> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210910933 9377 80.91.229.12 (16 May 2008 04:08:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 04:08:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Hans Halvorson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 16 06:09:28 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 1JwrG3-00017b-MG for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 06:09:27 +0200 Original-Received: from localhost ([127.0.0.1]:37069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwrFK-000304-2n for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 00:08:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwrF6-0002qh-8A for emacs-devel@gnu.org; Fri, 16 May 2008 00:08:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwrF4-0002pf-FJ for emacs-devel@gnu.org; Fri, 16 May 2008 00:08:27 -0400 Original-Received: from [199.232.76.173] (port=46828 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwrF4-0002pR-80 for emacs-devel@gnu.org; Fri, 16 May 2008 00:08:26 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.247]:11904) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwrEy-0006xi-6o for emacs-devel@gnu.org; Fri, 16 May 2008 00:08:26 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so966983rvb.6 for ; Thu, 15 May 2008 21:08:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type:sender; bh=VJeTSpU7U/BmE8VkOCVAtnVhvc+Oc7lKBvk9+hgAx/A=; b=sIRP2b1VkOiXmrTrK7WBVcit8qUyqJQ3eRGUZPEwAIPr0FA7ttyqXD1SZeL2xzahCtSNAMGC8krQF36dl1NTodCESb/FoOoOUfCK6xZyUTAm8ua8Qx80QeLGLHzHIoPq/5JE16orfMDZ5CuVktxNn8OWCirr4vQ34FzFIky6CL0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type:sender; b=qkaUmp9W2ZjpwxHY2/R7+bfjDtw/T17TiOqnbYrIXCIqmU6GSmVtyYGdy/rnRBIfFlKNq0v/VDoNyOwethvFzgWX3faeuxbim3bZjyuzDSCmKEhQp+JKUJ1dqYjqU4xA/fi0ViPZWKcJkeJ4JOaAE0JgyHWyl14xxW71tXmkvGs= Original-Received: by 10.140.249.20 with SMTP id w20mr1524778rvh.189.1210910895088; Thu, 15 May 2008 21:08:15 -0700 (PDT) Original-Received: from p360 ( [150.82.173.253]) by mx.google.com with ESMTPS id g31sm5045287rvb.2.2008.05.15.21.08.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 15 May 2008 21:08:13 -0700 (PDT) In-Reply-To: <87od7726tz.wl%hhalvors@Princeton.EDU> (Hans Halvorson's message of "Thu, 15 May 2008 06:35:20 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:97235 Archived-At: >>>>> 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