From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/62513 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.gnus.general Subject: pgg-gpg: BEGIN_SIGNING Date: Wed, 05 Apr 2006 10:52:17 +0900 Message-ID: <44c10525-91e8-4814-b616-d6d1050393c3_-_@well-done.deisui.org> References: <2cd46e7f0510031250u66ea1349yb437d539ce4027ef@mail.gmail.com> <2cd46e7f0510121647x3c51fb65pc883ed61f4e864ab@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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart_Wed_Apr__5_10:52:17_2006-1" X-Trace: sea.gmane.org 1144201988 17897 80.91.229.2 (5 Apr 2006 01:53:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Apr 2006 01:53:08 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m11040@lists.math.uh.edu Wed Apr 05 03:53:07 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 1FQxCl-0004UE-00 for ding-account@gmane.org; Wed, 05 Apr 2006 03:53:07 +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 1FQxCf-00046g-00; Tue, 04 Apr 2006 20:53:01 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FQxC8-00046b-00 for ding@lists.math.uh.edu; Tue, 04 Apr 2006 20:52:28 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FQxC7-0002Ek-Lv for ding@lists.math.uh.edu; Tue, 04 Apr 2006 20:52:28 -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 1FQxC5-00030e-00 for ; Wed, 05 Apr 2006 03:52:26 +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 1FQxBz-0004qF-1Q; Wed, 05 Apr 2006 10:52:19 +0900 Original-To: Simon Josefsson X-Attribution: DU In-Reply-To: <87slp587cw.fsf@latte.josefsson.org> (Simon Josefsson's message of "Sun, 26 Mar 2006 19:05:03 +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.3 (/) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:62513 Archived-At: --Multipart_Wed_Apr__5_10:52:17_2006-1 Content-Type: text/plain; charset=US-ASCII >>>>> 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? --Multipart_Wed_Apr__5_10:52:17_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 01:51:34 -0000 @@ -50,11 +50,6 @@ :type '(choice (const :tag "New `--recipient' option" "--recipient") (const :tag "Old `--remote-user' option" "--remote-user"))) -(defcustom pgg-gpg-use-agent nil - "Whether to use gnupg agent for key caching." - :group 'pgg-gpg - :type 'boolean) - (defvar pgg-gpg-user-id nil "GnuPG ID of your default identity.") @@ -76,7 +71,6 @@ "--command-fd" "0" "--yes" ; overwrite "--output" output-file-name) - (if pgg-gpg-use-agent '("--use-agent")) pgg-gpg-extra-args args)) (coding-system-for-write 'binary) @@ -255,8 +249,8 @@ (if pgg-encrypt-for-me (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"))) + (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 --Multipart_Wed_Apr__5_10:52:17_2006-1 Content-Type: text/plain; charset=US-ASCII Regards, -- Daiki Ueno --Multipart_Wed_Apr__5_10:52:17_2006-1--