From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: Small patch to enable use of gpg-agent with pgg Date: Wed, 22 Mar 2006 10:48:53 +0100 Message-ID: <8764m6hksa.fsf@latte.josefsson.org> References: <2cd46e7f0510031250u66ea1349yb437d539ce4027ef@mail.gmail.com> <2cd46e7f0510061541w73bb6a92wb6d22829b6e804ae@mail.gmail.com> <20051007100014.GB4850@kenny.sha-bang.local> <2cd46e7f0510071106k3d4d3e6agc36f16a37d8b6bc6@mail.gmail.com> <20051007214952.GA30235@kenny.sha-bang.local> <20051008103627.GA1218@kenny.sha-bang.local> <2cd46e7f0510081131h14e2bbeaga7f1a33ebd6347c8@mail.gmail.com> <2cd46e7f0510101415t76825ea7u9749fe23da54ce@mail.gmail.com> <2cd46e7f0510121647x3c51fb65pc883ed61f4e864ab@mail.gmail.com> <2cd46e7f0510200708x4640d1c2t50743cf439e52dd4@mail.gmail.com> <87pskfq361.fsf@latte.josefsson.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1143020975 27961 80.91.229.2 (22 Mar 2006 09:49:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Mar 2006 09:49:35 +0000 (UTC) Cc: Sascha Wilde , ding@gnus.org, emacs-devel@gnu.org Original-X-From: ding-owner+m10882@lists.math.uh.edu Wed Mar 22 10:49:33 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FLzy8-0002yA-Ry for ding-account@gmane.org; Wed, 22 Mar 2006 10:49:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FLzy1-00088i-00; Wed, 22 Mar 2006 03:49:25 -0600 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FLzxn-00087F-00 for ding@lists.math.uh.edu; Wed, 22 Mar 2006 03:49:11 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FLzxl-0000d8-6k for ding@lists.math.uh.edu; Wed, 22 Mar 2006 03:49:11 -0600 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FLzxk-0001Pj-00 for ; Wed, 22 Mar 2006 10:49:08 +0100 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3) with ESMTP id k2M9mrD0007726; Wed, 22 Mar 2006 10:48:54 +0100 Original-To: Daiki Ueno OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:060322:ueno@unixuser.org::XcWdiIwVIFEN1xRd:1WGV X-Hashcash: 1:21:060322:wilde@sha-bang.de::scflTGsxg/jzaCpG:1gqk X-Hashcash: 1:21:060322:ding@gnus.org::/rtjZ2D4Z49rwUN5:1XJA X-Hashcash: 1:21:060322:emacs-devel@gnu.org::cxu9k6tq6qggwP0y:TNNE In-Reply-To: (Daiki Ueno's message of "Wed, 22 Mar 2006 18:16:48 +0900") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on yxa-iv X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62355 gmane.emacs.devel:51954 Archived-At: Daiki Ueno writes: > Hello, > >>>>>> In >>>>>> Sascha Wilde wrote: >> This is very error prone. As I wrote before on emacs-devel: there are >> certain situations in which using the agent will fail -- even if it is >> available: for example: on an text console running the standard >> pin-entry program (which uses curses) from within emacs won't work. >> That's why I think this option should be explicitly enabled by the user. > >> Another problem is, that checking for $GPG_AGENT_INFO is not >> sufficient, the environment variable will stay set, even is the agent >> was killed. > > That looks a bit complicated for me. Is there a choice of utilizing > --status-fd output? That is, query a user for his passphrase only when > gpg requested (i.e. we see NEED_PASSPHRASE) > > Though I know that this solution involves some coding to make use of > asynchronous process, I expect that it is not so hard to implement. Hi Daiki! I like this. Would you like to implement it?