bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7797: 24.0.50; [EasyPG/Gnus] always pick up the first key from `gpg


From: Daiki Ueno
Subject: 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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Daiki Ueno <address@hidden> writes:

> Luca Capello <address@hidden> 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 address@hidden
$ gpg --gen-key # create a key address@hidden
$ gpg --gen-key # create a key address@hidden
$ gpg --edit-key address@hidden # revoke address@hidden
$ gpg --delete-secret-key address@hidden

(mml2015-epg-find-usable-secret-key
  (epg-make-context 'OpenPGP) "address@hidden" 'sign)
=> nil
(mml2015-epg-find-usable-secret-key
  (epg-make-context 'OpenPGP) "address@hidden" 'sign)
=> nil
(mml2015-epg-find-usable-secret-key
  (epg-make-context 'OpenPGP) "address@hidden" 'sign)
=> (epg-key . ...)

Regards,
-- 
Daiki Ueno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]