GNU bug report logs - #21997
epa--key-widget-value-create ignores signing subkeys

Previous Next

Package: emacs;

Reported by: John Wiegley <jwiegley <at> gmail.com>

Date: Mon, 23 Nov 2015 17:40:03 UTC

Severity: normal

Tags: moreinfo

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21997 in the body.
You can then email your comments to 21997 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21997; Package emacs. (Mon, 23 Nov 2015 17:40:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Wiegley <jwiegley <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 23 Nov 2015 17:40:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: John Wiegley <jwiegley <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: epa--key-widget-value-create ignores signing subkeys
Date: Mon, 23 Nov 2015 09:38:52 -0800
When listing secret keys using `M-x epa-list-secret-keys', one can press RET
on the inserted widget to see a list of associated subkeys. This shows that
epa.el is correctly parsing the subkeys of one's secret key.

However, the :value of that widget always chooses the first subkey, as seen
here:

    (defun epa--key-widget-value-create (widget)
      (let* ((key (widget-get widget :value))
-->          (primary-sub-key (car (epg-key-sub-key-list key)))
             (primary-user-id (car (epg-key-user-id-list key))))
        ...))

For people with multiple subkeys -- especially those who use dedicated subkeys
for signing and/or encrypting -- it would be nice to be able to select which
subkey(s) to use. The only way I can see this fitting into the current EasyPG
selection architecture would be to present each subkey as if it were a
separate, virtual secret key. In other words, where every subkey becomes a
separate widget in the list and selection buffers.

This also affects mml signing in Gnus, since it also uses the widget :value to
determine which key to use for signing.

John




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21997; Package emacs. (Thu, 12 May 2022 12:33:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#21997: epa--key-widget-value-create ignores signing subkeys
Date: Thu, 12 May 2022 14:32:23 +0200
John Wiegley <jwiegley <at> gmail.com> writes:

> When listing secret keys using `M-x epa-list-secret-keys', one can press RET
> on the inserted widget to see a list of associated subkeys. This shows that
> epa.el is correctly parsing the subkeys of one's secret key.
>
> However, the :value of that widget always chooses the first subkey, as seen
> here:
>
>     (defun epa--key-widget-value-create (widget)
>       (let* ((key (widget-get widget :value))
> -->          (primary-sub-key (car (epg-key-sub-key-list key)))
>              (primary-user-id (car (epg-key-user-id-list key))))
>         ...))

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I think I vaguely remember something like this being fixed over the last
couple of years (and the `epa--key-widget-value-create' function no
longer exists).  Do you still see this problem in recent Emacs versions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 12 May 2022 12:33:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21997; Package emacs. (Thu, 09 Jun 2022 15:03:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 21997 <at> debbugs.gnu.org
Subject: Re: bug#21997: epa--key-widget-value-create ignores signing subkeys
Date: Thu, 09 Jun 2022 17:02:44 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I think I vaguely remember something like this being fixed over the last
> couple of years (and the `epa--key-widget-value-create' function no
> longer exists).  Do you still see this problem in recent Emacs versions?

More information was requested, but no response was given within a
month, so I'm closing this bug report.  If the problem still exists,
please respond to this email and we'll reopen the bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)  bloggy blog:
   http://lars.ingebrigtsen.no




bug closed, send any further explanations to 21997 <at> debbugs.gnu.org and John Wiegley <jwiegley <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 09 Jun 2022 15:03:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 08 Jul 2022 11:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 348 days ago.

Previous Next


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