GNU bug report logs - #7797
24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg --list-key $SENDER`

Previous Next

Packages: gnus, emacs;

Reported by: Luca Capello <luca <at> pca.it>

Date: Thu, 6 Jan 2011 23:24:02 UTC

Severity: normal

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 7797-done <at> debbugs.gnu.org (full text, mbox):

From: Daiki Ueno <ueno <at> unixuser.org>
To: Luca Capello <luca <at> pca.it>
Cc: rfrancoise <at> debian.org, 7797-done <at> debbugs.gnu.org
Subject: Re: bug#7797: 24.0.50;
	[EasyPG/Gnus] always pick up the first key from `gpg --list-key
	$SENDER`
Date: Fri, 07 Jan 2011 18:34:59 +0900
Daiki Ueno <ueno <at> unixuser.org> writes:

> Luca Capello <luca <at> pca.it> writes:
>
>> gpg: skipped "8D3867D89DDB992B": unusable secret key
>> gpg: signing failed: unusable secret key
>
> You may want to try the patch I posted last month:
> http://lists.gnu.org/archive/html/emacs-devel/2010-12/msg00624.html
>
> Although this patch is a workaround, I'm going to push it for the time
> being.

OK, I fixed this in a better way (r102771).

My test case is:

$ mv .gnupg .gnupg.bak
$ gpg --gen-key # create a key foo <at> example.com
$ gpg --gen-key # create a key bar <at> example.com
$ gpg --gen-key # create a key baz <at> example.com
$ gpg --edit-key foo <at> example.com # revoke foo <at> example.com
$ gpg --delete-secret-key bar <at> example.com

(mml2015-epg-find-usable-secret-key
  (epg-make-context 'OpenPGP) "foo <at> example.com" 'sign)
=> nil
(mml2015-epg-find-usable-secret-key
  (epg-make-context 'OpenPGP) "bar <at> example.com" 'sign)
=> nil
(mml2015-epg-find-usable-secret-key
  (epg-make-context 'OpenPGP) "baz <at> example.com" 'sign)
=> (epg-key . ...)

Regards,
-- 
Daiki Ueno




This bug report was last modified 14 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.