* bug#21997: epa--key-widget-value-create ignores signing subkeys
@ 2015-11-23 17:38 John Wiegley
2022-05-12 12:32 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: John Wiegley @ 2015-11-23 17:38 UTC (permalink / raw)
To: 21997
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#21997: epa--key-widget-value-create ignores signing subkeys
2015-11-23 17:38 bug#21997: epa--key-widget-value-create ignores signing subkeys John Wiegley
@ 2022-05-12 12:32 ` Lars Ingebrigtsen
2022-06-09 15:02 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-12 12:32 UTC (permalink / raw)
To: 21997
John Wiegley <jwiegley@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#21997: epa--key-widget-value-create ignores signing subkeys
2022-05-12 12:32 ` Lars Ingebrigtsen
@ 2022-06-09 15:02 ` Lars Ingebrigtsen
0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-09 15:02 UTC (permalink / raw)
To: 21997
Lars Ingebrigtsen <larsi@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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-09 15:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-23 17:38 bug#21997: epa--key-widget-value-create ignores signing subkeys John Wiegley
2022-05-12 12:32 ` Lars Ingebrigtsen
2022-06-09 15:02 ` Lars Ingebrigtsen
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).