From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sascha Wilde Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: Small patch to enable use of gpg-agent with pgg Date: Wed, 22 Mar 2006 12:03:22 +0100 Message-ID: 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=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1143025442 12050 80.91.229.2 (22 Mar 2006 11:04:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Mar 2006 11:04:02 +0000 (UTC) Cc: emacs-devel@gnu.org, ding@gnus.org, Simon Josefsson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 22 12:03:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FM189-0001gR-54 for ged-emacs-devel@m.gmane.org; Wed, 22 Mar 2006 12:03:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FM18N-0003ns-9n for ged-emacs-devel@m.gmane.org; Wed, 22 Mar 2006 06:04:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FM184-0003nG-5M for emacs-devel@gnu.org; Wed, 22 Mar 2006 06:03:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FM182-0003ma-47 for emacs-devel@gnu.org; Wed, 22 Mar 2006 06:03:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FM182-0003mV-1Z for emacs-devel@gnu.org; Wed, 22 Mar 2006 06:03:50 -0500 Original-Received: from [62.141.58.119] (helo=km1136.keymachine.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FM187-00073o-RB for emacs-devel@gnu.org; Wed, 22 Mar 2006 06:03:56 -0500 Original-Received: from kenny.sha-bang.de (xdsld149.osnanet.de [212.95.103.149]) (authenticated bits=0) by km1136.keymachine.de (8.12.11/8.12.10) with ESMTP id k2MB3K04031701; Wed, 22 Mar 2006 12:03:21 +0100 Original-Received: from wilde by kenny.sha-bang.de with local (Kenny MUA v.0409034.42) ID 1FM17a-0005FG-F5; Wed, 22 Mar 2006 12:03:22 +0100 Original-To: Daiki Ueno In-Reply-To: (Daiki Ueno's message of "Wed, 22 Mar 2006 18:16:48 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:51956 gmane.emacs.gnus.general:62359 Archived-At: Hello Daiki, I'm afraid I don't understand your suggestion... Daiki Ueno wrote: >>>>>> In =20 >>>>>> 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. What exactly looks complicated to you? > 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) I don't understand this point -- with the proposed patch the user already only gets queried for the passphrase when gpg needs it -- or am I missing something? While I can imagine that a solution utilizing --status-fd might be more elegant, I don't see how this could improve usability (and I would expect it to be rather more than less complicated). Can you please explain what behavior you would expect from pgg, maybe with an example? Thanks sascha --=20 Sascha Wilde Nota bene: wenn Word f=FCr L=E4ngeres geeignet w=E4re, w=FCrde es schlie=DF= lich nicht Word, sondern Sentence, Page oder Article hei=DFen -- Matthias M=FChlich in dctt