unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Daiki Ueno <ueno@unixuser.org>
To: Luca Capello <luca@pca.it>
Cc: emacs-pretest-bug@gnu.org, rfrancoise@debian.org
Subject: Re: 23.0.60; EasyPG and OpenPGP smartcard: process epg not running
Date: Mon, 10 Mar 2008 18:12:07 +0900	[thread overview]
Message-ID: <8763vvhriw.fsf@broken.deisui.org> (raw)
In-Reply-To: <87hcfi4zkw.fsf@gismo.pca.it> (Luca Capello's message of "Fri, 07 Mar 2008 11:07:27 +0100")

>>>>> In <87hcfi4zkw.fsf@gismo.pca.it> 
>>>>>	Luca Capello <luca@pca.it> 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




  reply	other threads:[~2008-03-10  9:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-07  1:40 23.0.60; EasyPG and OpenPGP smartcard: process epg not running Luca Capello
2008-03-07  3:03 ` Daiki Ueno
2008-03-07 10:07   ` Luca Capello
2008-03-10  9:12     ` Daiki Ueno [this message]
2008-03-11  6:36       ` Luca Capello

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8763vvhriw.fsf@broken.deisui.org \
    --to=ueno@unixuser.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=luca@pca.it \
    --cc=rfrancoise@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).