From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno 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 21:25:06 +0900 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> <877j6mg2af.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 1143030319 30293 80.91.229.2 (22 Mar 2006 12:25:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Mar 2006 12:25:19 +0000 (UTC) Cc: Sascha Wilde , ding@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 22 13:25:16 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 1FM2Ok-0000nP-Re for ged-emacs-devel@m.gmane.org; Wed, 22 Mar 2006 13:25:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FM2P0-0000F0-6d for ged-emacs-devel@m.gmane.org; Wed, 22 Mar 2006 07:25:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FM2Oo-0000Ef-EU for emacs-devel@gnu.org; Wed, 22 Mar 2006 07:25:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FM2Om-0000EN-N6 for emacs-devel@gnu.org; Wed, 22 Mar 2006 07:25:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FM2Om-0000EK-Iu for emacs-devel@gnu.org; Wed, 22 Mar 2006 07:25:12 -0500 Original-Received: from [221.255.76.220] (helo=localhost) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FM2Os-0005HG-UE for emacs-devel@gnu.org; Wed, 22 Mar 2006 07:25:19 -0500 Original-Received: from localhost ([127.0.0.1] helo=well-done.deisui.org ident=ueno) by localhost with esmtp (Exim 4.60) (envelope-from ) id 1FM2Og-000650-5T; Wed, 22 Mar 2006 21:25:06 +0900 Original-To: Simon Josefsson X-Attribution: DU In-Reply-To: <877j6mg2af.fsf@latte.josefsson.org> (Simon Josefsson's message of "Wed, 22 Mar 2006 12:13:44 +0100") User-Agent: T-gnus/6.17.3 (based on No Gnus v0.3) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.2 XEmacs/21.4.16 (i686-pc-linux) MULE 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:51958 gmane.emacs.gnus.general:62362 Archived-At: >>>>> In <877j6mg2af.fsf@latte.josefsson.org> >>>>> Simon Josefsson wrote: > Sascha Wilde writes: > >> 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? > Right now, pgg assume that gpg will need a passphrase so it asks the > user for one. It may be better if pgg postpone the passphrase query > until gpg tell pgg that it needs a passphrase. Then it is only > queried for when it is needed. This should be more reliable, but > slightly more complicated to implement (asynchronous code). Thanks for your explanation. This is what I wanted to say. We may need some experiments to see gpg use status fd as expected, though. Anyway, I'll try to implement this. Regards, -- Daiki Ueno