From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62517 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: Re: pgg-gpg: BEGIN_SIGNING Date: Wed, 05 Apr 2006 19:06:44 +0900 Message-ID: <1d247daf-c9b5-4da8-a34d-4ecf01acc268@well-done.deisui.org> References: <2cd46e7f0510031250u66ea1349yb437d539ce4027ef@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> <87fyks8ley.fsf@latte.josefsson.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Wed_Apr__5_19:06:44_2006-1" X-Trace: sea.gmane.org 1144231647 7953 80.91.229.2 (5 Apr 2006 10:07:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Apr 2006 10:07:27 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m11044@lists.math.uh.edu Wed Apr 05 12:07:25 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 1FR4v2-0005Ha-DL for ding-account@gmane.org; Wed, 05 Apr 2006 12:07:20 +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 1FR4uy-0004jW-00; Wed, 05 Apr 2006 05:07:16 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FR4uZ-0004jQ-00 for ding@lists.math.uh.edu; Wed, 05 Apr 2006 05:06:51 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1FR4uY-0003uQ-Rp for ding@lists.math.uh.edu; Wed, 05 Apr 2006 05:06:51 -0500 Original-Received: from g96069.scn-net.ne.jp ([210.231.96.69] helo=well-done.deisui.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FR4uX-0001N9-00 for ; Wed, 05 Apr 2006 12:06:49 +0200 Original-Received: from [150.82.173.221] (helo=well-done.deisui.org) by well-done.deisui.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1FR4uW-0005gX-3v; Wed, 05 Apr 2006 19:06:48 +0900 Original-To: Simon Josefsson X-Attribution: DU In-Reply-To: <87fyks8ley.fsf@latte.josefsson.org> (Simon Josefsson's message of "Wed, 05 Apr 2006 10:40:53 +0200") User-Agent: T-gnus/6.17.2 (based on No Gnus v0.2) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.4 (patch 17) (Jumbo Shrimp) (i686-pc-linux) X-Spam-Score: -0.0 (/) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62517 Archived-At: --Multipart_Wed_Apr__5_19:06:44_2006-1 Content-Type: text/plain; charset=US-ASCII >>>>> In <87fyks8ley.fsf@latte.josefsson.org> >>>>> Simon Josefsson wrote: > I don't think we can assume that people use new GnuPG releases. I see. I expect that new GnuPG releases will spread faster than other softwares not related to security though. > 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. Ok, here is the patch. --Multipart_Wed_Apr__5_19:06:44_2006-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="pgg-gpg.el.diff" Content-Transfer-Encoding: 7bit Index: lisp/pgg-gpg.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/pgg-gpg.el,v retrieving revision 7.20 diff -u -r7.20 pgg-gpg.el --- lisp/pgg-gpg.el 4 Apr 2006 10:33:07 -0000 7.20 +++ lisp/pgg-gpg.el 5 Apr 2006 09:56:53 -0000 @@ -256,7 +256,7 @@ (list pgg-gpg-user-id)))))))) (process (pgg-gpg-start-process args))) (if (and sign (not pgg-gpg-use-agent)) - (pgg-gpg-wait-for-status process '("GOOD_PASSPHRASE"))) + (pgg-gpg-wait-for-status process '("BEGIN_SIGNING" "GOOD_PASSPHRASE"))) (process-send-region process start end) (pgg-gpg-wait-for-completion process) (save-excursion @@ -303,7 +303,7 @@ (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" "GOOD_PASSPHRASE"))) (process-send-region process start end) (pgg-gpg-wait-for-completion process) (save-excursion --Multipart_Wed_Apr__5_19:06:44_2006-1 Content-Type: text/plain; charset=US-ASCII Regards, -- Daiki Ueno --Multipart_Wed_Apr__5_19:06:44_2006-1--