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.pretest.bugs Subject: Re: 23.0.60; EasyPG and OpenPGP smartcard: process epg not running Date: Mon, 10 Mar 2008 18:12:07 +0900 Message-ID: <8763vvhriw.fsf@broken.deisui.org> References: <87od9r5n1y.fsf@gismo.pca.it> <87skz31bia.fsf@broken.deisui.org> <87hcfi4zkw.fsf@gismo.pca.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1205140352 11575 80.91.229.12 (10 Mar 2008 09:12:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2008 09:12:32 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, rfrancoise@debian.org To: Luca Capello Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 10 10:12:58 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JYe41-0004n4-SW for ged-emacs-devel@m.gmane.org; Mon, 10 Mar 2008 10:12:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYe3T-0003kR-Hr for ged-emacs-devel@m.gmane.org; Mon, 10 Mar 2008 05:12:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JYe3P-0003ir-95 for emacs-devel@gnu.org; Mon, 10 Mar 2008 05:12:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JYe3N-0003gP-8W for emacs-devel@gnu.org; Mon, 10 Mar 2008 05:12:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYe3N-0003gG-5T for emacs-devel@gnu.org; Mon, 10 Mar 2008 05:12:17 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JYe3N-0003gu-5p for emacs-devel@gnu.org; Mon, 10 Mar 2008 05:12:17 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JYe3M-0007yA-JC for emacs-pretest-bug@gnu.org; Mon, 10 Mar 2008 05:12:16 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JYe3J-0003ff-Sn for emacs-pretest-bug@gnu.org; Mon, 10 Mar 2008 05:12:16 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.244]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JYe3J-0003fA-Hw for emacs-pretest-bug@gnu.org; Mon, 10 Mar 2008 05:12:13 -0400 Original-Received: by an-out-0708.google.com with SMTP id c25so573641ana.84 for ; Mon, 10 Mar 2008 02:12:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type:sender; bh=IDJeHq42IgAzrPupGbgs5rFkJkAPGMAa0Hvl+CdushY=; b=FYD9nbnTH4HVibbQ0vgX7jecgmPnARbOlB1JoXequZVQKNsv3AqNjXziXKTf9ChQdyD2SdaSp2BlWxgbYf1HqHpNniIsiSpabg0kW6MHW61FWuksTzwlDs2Qe+rSTWz5sLXWSq3CW3XkuafOfuPxbtlkECOo6vO09pBPdGHT/I8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type:sender; b=HFry5TLBf5jwJM8Ehoq/9x+RBLssjdkVhO5639d4CsCwfKWm6drtu41F7wPMk9fT/8WBLMv5Z0CVeB083UfneBbXJNL3jMLFOb+VworcCqEw0u76MdwbbCQO1aHEX2QTQ4ZhXDJVbN9wDqYrfyXJZla7u0TxjXkBRN4TMz8rsIc= Original-Received: by 10.101.68.19 with SMTP id v19mr10634450ank.94.1205140332296; Mon, 10 Mar 2008 02:12:12 -0700 (PDT) Original-Received: from p360 ( [150.82.173.253]) by mx.google.com with ESMTPS id 6sm12555099agb.13.2008.03.10.02.12.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Mar 2008 02:12:11 -0700 (PDT) In-Reply-To: <87hcfi4zkw.fsf@gismo.pca.it> (Luca Capello's message of "Fri, 07 Mar 2008 11:07:27 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:92015 gmane.emacs.pretest.bugs:21497 Archived-At: >>>>> In <87hcfi4zkw.fsf@gismo.pca.it> >>>>> Luca Capello wrote: > BTW, AFAIK there's no mailing list for EasyPG, thus I reported the bug > here. In case I'm wrong, could you point me to the correct direction? There is a bug tracker: http://sourceforge.jp/projects/epg/tracker/ But I think here is also the right place. > > This looks like that GnuPG got some data (not a passphrase) as the > > passphrase, before prompting you. Can you work around this by: > > > > (setq epg-gpg-minimum-version "100") > This solves the situation for `epa-sign-region'. Then, it seems a GnuPG issue. I'll look into the detail. > However, there was another problem, which I erroneously thought it was > due to the same error (my fault). If I try to sign mail on Gnus with > EasyPG, I got another error. It seems the problem is in the function > `mml2015-epg-passphrase-callback` (lisp/gnus/mml2015.el:1004). I've just applied the following fix to the Gnus CVS. It will appear after the next CVS synch. Index: mml2015.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/mml2015.el,v retrieving revision 7.52 retrieving revision 7.53 diff -c -r7.52 -r7.53 *** mml2015.el 2 Mar 2008 17:43:01 -0000 7.52 --- mml2015.el 10 Mar 2008 08:59:56 -0000 7.53 *************** *** 999,1005 **** (defun mml2015-epg-passphrase-callback (context key-id ignore) (if (eq key-id 'SYM) (epg-passphrase-callback-function context key-id nil) ! (let* (entry (passphrase (password-read (if (eq key-id 'PIN) --- 999,1009 ---- (defun mml2015-epg-passphrase-callback (context key-id ignore) (if (eq key-id 'SYM) (epg-passphrase-callback-function context key-id nil) ! (let* ((password-cache-key-id ! (if (eq key-id 'PIN) ! "PIN" ! key-id)) ! entry (passphrase (password-read (if (eq key-id 'PIN) *************** *** 1007,1020 **** (if (setq entry (assoc key-id epg-user-id-alist)) (format "Passphrase for %s %s: " key-id (cdr entry)) (format "Passphrase for %s: " key-id))) ! (if (eq key-id 'PIN) ! "PIN" ! key-id)))) (when passphrase (let ((password-cache-expiry mml2015-passphrase-cache-expiry)) ! (password-cache-add key-id passphrase)) (setq mml2015-epg-secret-key-id-list ! (cons key-id mml2015-epg-secret-key-id-list)) (copy-sequence passphrase))))) (defun mml2015-epg-find-usable-key (keys usage) --- 1011,1022 ---- (if (setq entry (assoc key-id epg-user-id-alist)) (format "Passphrase for %s %s: " key-id (cdr entry)) (format "Passphrase for %s: " key-id))) ! password-cache-key-id))) (when passphrase (let ((password-cache-expiry mml2015-passphrase-cache-expiry)) ! (password-cache-add password-cache-key-id passphrase)) (setq mml2015-epg-secret-key-id-list ! (cons password-cache-key-id mml2015-epg-secret-key-id-list)) (copy-sequence passphrase))))) (defun mml2015-epg-find-usable-key (keys usage) Regards, -- Daiki Ueno