[PATCH] agent: Use CONFIRM --focus=ok for SSH, card and other confirmation.
NIIBE Yutaka
gniibe at fsij.org
Thu Nov 12 07:11:22 CET 2026
* agent/agent.h (CONFIRM_FLAG_WITHCANCEL, CONFIRM_FLAG_FOCUSOK): New.
(agent_get_confirmation): Change the last argument to FLAGS.
* agent/call-pinentry.c (agent_get_confirmation): Handle FLAGS.
* agent/command-ssh.c (data_sign): Use CONFIRM_FLAG_FOCUSOK.
* agent/findkey.c (prompt_for_card): Likewise.
(agent_key_from_file): Likewise.
* agent/trustlist.c (agent_marktrusted): Use CONFIRM_FLAG_WITHCANCEL.
--
It can work well only when the pinentry supports focus on the "ok"
button (curses and GTK for pinentry 1.3.3).
GnuPG-bug-id: 2265, 8182
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
agent/agent.h | 5 ++++-
agent/call-pinentry.c | 19 ++++++++++++-------
agent/command-ssh.c | 3 ++-
agent/findkey.c | 6 ++++--
agent/trustlist.c | 6 ++++--
5 files changed, 26 insertions(+), 13 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-agent-Use-CONFIRM-focus-ok-for-SSH-card-and-other-co.patch
Type: text/x-patch
Size: 5942 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20261112/747c28d6/attachment-0001.bin>
More information about the Gnupg-devel
mailing list