From: wahjava.ml@gmail.com (Ashish SHUKLA)
To: Daniel Dehennin <daniel.dehennin@baby-gnu.org>
Cc: Daiki Ueno <ueno@unixuser.org>, emacs-devel@gnu.org
Subject: Re: Gnus + GPG integration broken after revision 102412.
Date: Thu, 23 Dec 2010 08:42:57 +0530 [thread overview]
Message-ID: <86mxnxw5ae.fsf@chateau.d.if> (raw)
In-Reply-To: <87r5dab47f.fsf@hati.baby-gnu.org> (Daniel Dehennin's message of "Wed, 22 Dec 2010 09:29:40 +0100")
[-- Attachment #1: Type: text/plain, Size: 2138 bytes --]
Daniel Dehennin writes:
> wahjava.ml@gmail.com (Ashish SHUKLA) writes:
>> Daiki Ueno writes:
>>> wahjava.ml@gmail.com (Ashish SHUKLA) writes:
>>
>>>> #v+
>>>> /usr/local/bin/gpg2 --no-tty --status-fd 1 --yes --use-agent --command-fd 0 --armor --textmode --output /tmp/epg-output62957uOj --detach-sign -u 1F2F8410762E5E74
>>>> Warning: using insecure memory!
>>>> gpg: skipped "1F2F8410762E5E74": Unusable secret key
>>>> [GNUPG:] INV_SGNR 9 1F2F8410762E5E74
>>>> gpg: signing failed: Unusable secret key
>>>> #v-
>>>>
>>>> The above mentioned key id belongs to my GPG key which I revoked, but it's
>>>> still present in my system to decrypt old content encrypted with it.
>>
>>> It looks strange that mml2015 passes the expired key to gpg, since
>>> `mml2015-epg-sign' is expected to reject such a key through
>>> `mml2015-epg-find-usable-key'.
>>
>>> Do you see 1F2F8410762E5E74 key with:
>>
>>> (mml2015-epg-find-usable-key
>>> (epg-list-keys (epg-make-context 'OpenPGP) "1F2F8410762E5E74" t)
>>> 'sign)
>>
>> Yes, I see that key. And, please note that it's not expired, it's revoked.
> Hello,
> mml2015-epg-find-usable-key should remove revoked keys.
> Can you test the following for me?
> #v+
> (defun test-mml2015-epg-find-usable-key (signers)
> (let* ((context (epg-make-context))
> (keys (epg-list-keys context signers))
> (validities nil))
> (while keys
> (let ((pointer (epg-key-sub-key-list (car keys))))
> (while pointer
> (setq validities (cons
> (cons (epg-sub-key-id (car pointer)) (symbol-name (epg-sub-key-validity (car pointer))))
> validities))
> (setq pointer (cdr pointer))))
> (setq keys (cdr keys)))
> validities))
> (test-mml2015-epg-find-usable-key '("1F2F8410762E5E74"))
> #v-
This is what I get:
(("F80D89FB7B05E99F" . "revoked") ("1F2F8410762E5E74" . "revoked"))
HTH
--
Ashish SHUKLA
“It's good to be wrong. Don't feel shamed. Wear past mistakes as a
badge of honor because growth is everything. To stop learning is to
decay.” ("apokalyptik", "in a conversation to abbe", 2010)
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
prev parent reply other threads:[~2010-12-23 3:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 8:54 Gnus + GPG integration broken after revision 102412 Ashish SHUKLA
2010-12-21 1:32 ` Daiki Ueno
2010-12-21 11:06 ` Ashish SHUKLA
2010-12-21 17:53 ` Daniel Dehennin
2010-12-21 22:51 ` Ashish SHUKLA
2010-12-22 1:31 ` Daiki Ueno
2010-12-22 3:49 ` Ashish SHUKLA
2010-12-22 5:21 ` Daiki Ueno
2010-12-22 6:56 ` Ashish SHUKLA
2010-12-22 8:29 ` Daniel Dehennin
2010-12-23 3:12 ` Ashish SHUKLA [this message]
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=86mxnxw5ae.fsf@chateau.d.if \
--to=wahjava.ml@gmail.com \
--cc=daniel.dehennin@baby-gnu.org \
--cc=emacs-devel@gnu.org \
--cc=ueno@unixuser.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).