From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62514 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: pgg-gpg: BEGIN_SIGNING Date: Wed, 05 Apr 2006 10:40:53 +0200 Message-ID: <87fyks8ley.fsf@latte.josefsson.org> References: <2cd46e7f0510031250u66ea1349yb437d539ce4027ef@mail.gmail.com> <2cd46e7f0510200708x4640d1c2t50743cf439e52dd4@mail.gmail.com> <87pskfq361.fsf@latte.josefsson.org> <877j6mg2af.fsf@latte.josefsson.org> <87lkv1whmh.fsf@latte.josefsson.org> <897751e5-a148-4109-8da6-6f69cce0dec0@well-done.deisui.org> <87d5gd2ts1.fsf@latte.josefsson.org> <87wteiypvv.fsf@latte.josefsson.org> <87irq1evdk.fsf@catnip.gol.com> <0443f268-1caf-4aef-9a06-daa4a59b0682@well-done.deisui.org> <87slp587cw.fsf@latte.josefsson.org> <44c10525-91e8-4814-b616-d6d1050393c3_-_@well-done.deisui.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144226722 23650 80.91.229.2 (5 Apr 2006 08:45:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Apr 2006 08:45:22 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m11041@lists.math.uh.edu Wed Apr 05 10:45:20 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 1FR3da-0007rc-Sv for ding-account@gmane.org; Wed, 05 Apr 2006 10:45:15 +0200 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 1FR3dS-0004TZ-00; Wed, 05 Apr 2006 03:45:06 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FR3ZT-0004TR-00 for ding@lists.math.uh.edu; Wed, 05 Apr 2006 03:40:59 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FR3ZQ-0003xe-Lk for ding@lists.math.uh.edu; Wed, 05 Apr 2006 03:40:59 -0500 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 1FR3ZP-0000F5-00 for ; Wed, 05 Apr 2006 10:40:55 +0200 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-3sarge1) with ESMTP id k358erx0002365; Wed, 5 Apr 2006 10:40:53 +0200 Original-To: Daiki Ueno OpenPGP: id=B565716F; url=http://josefsson.org/key.txt X-Hashcash: 1:21:060405:ding@gnus.org::yAnjGVsEBDqG8W9K:kNs X-Hashcash: 1:21:060405:ueno@unixuser.org::tOCxJMCSMZUYT4eF:1ROx In-Reply-To: <44c10525-91e8-4814-b616-d6d1050393c3_-_@well-done.deisui.org> (Daiki Ueno's message of "Wed, 05 Apr 2006 10:52:17 +0900") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.5 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:62514 Archived-At: Daiki Ueno writes: >>>>>> In <87slp587cw.fsf@latte.josefsson.org> >>>>>> Simon Josefsson wrote: >> Daiki Ueno writes: > >> >>>>>> In <87irq1evdk.fsf@catnip.gol.com> >> >>>>>> Miles Bader wrote: >> >> Simon Josefsson writes: >> >> > What do you think? It might be ugly to depend on the 'gpg: writing' >> >> > output instead of the [GNUPG:] stuff, but I see no option here. >> > >> >> Of course if such a kludge is used, an important thing is to report the >> >> problem with the "official" interface as a bug... >> > >> > Yes. I think the root of the problem is that gpg does not emit any >> > trigger of signature creation. I'll propose a patch to GnuPG so as to >> > introduce BEGIN_SIGNING and END_SIGNING status. > >> That sounds like a good idea. > > BEGIN_SIGNING is now available in GnuPG 1.4.3. Should we install the > attached patch right now or wait for the new GnuPG packages available in > most distributions? I don't think we can assume that people use new GnuPG releases. > -(defcustom pgg-gpg-use-agent nil > - "Whether to use gnupg agent for key caching." > - :group 'pgg-gpg > - :type 'boolean) > - So I think this variable has to stay. > - (if (and sign (not pgg-gpg-use-agent)) > - (pgg-gpg-wait-for-status process '("GOOD_PASSPHRASE"))) > + (if sign > + (pgg-gpg-wait-for-status process '("BEGIN_SIGNING"))) > (process-send-region process start end) > (pgg-gpg-wait-for-completion process) > (save-excursion > @@ -302,8 +296,7 @@ > "--local-user" pgg-gpg-user-id) > (if pgg-text-mode '("--textmode")))) > (process (pgg-gpg-start-process args))) > - (unless pgg-gpg-use-agent > - (pgg-gpg-wait-for-status process '("GOOD_PASSPHRASE"))) > + (pgg-gpg-wait-for-status process '("BEGIN_SIGNING")) > (process-send-region process start end) > (pgg-gpg-wait-for-completion process) > (save-excursion Can't we change it, so that if pgg-gpg-use-agent is nil, it will wait for either GOOD_PASSPHRASE or BEGIN_SIGNING? Then it will work fine for everyone (both new and old GnuPG) except those with old GnuPG and smart cards, I think. I think we can get it so that pgg-gpg-use-agent is only ever needed if you use an old GnuPG with smart cards. We _could_ fix that too, and avoid pgg-gpg-use-agent completely, if we also searched for the 'gpg: writing to' string. But maybe that make the code too ugly to maintain.