Home GnuPG
Diffusion GnuPG 20acc7c02265

g10,agent: Support CONFIRM for --delete-key.

Description

g10,agent: Support CONFIRM for --delete-key.

* agent/call-pinentry.c (agent_get_confirmation): Add call of
pinentry_loopback_confirm.
(agent_popup_message_start): Likewise.
(agent_popup_message_stop): Return if it's loopback mode.
* agent/command.c (pinentry_loopback_confirm): New.
* g10/call-agent.c (default_inq_cb): Support "CONFIRM" inquery
when PINENTRY_MODE_LOOPBACK mode.
(confirm_status_cb): New.
(agent_delete_key): Supply confirm_status_cb to set the description
string for confirmation.

In the Assuan communication, we introduce new interaction:

    [gpg]                            [gpg-agent]
            --- CMD: PKDECRYPT -->
            <-- STATUS: SETDESC "..."
            <-- STATUS: SETOK "..."
            <-- STATUS: SETNOTOK "..."
            <-- INQUERY: CONFIRM 0/1 (0 for display, 1 for user query)
	    --- INQUERY-result: -->
	    <-- RESULT: ...
  • GnuPG-bug-id: T3465
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 4 2019, 2:17 AM
Parents
rGeaf3b89d1115: doc: Add a section for gpg-check-pattern.
Branches
Unknown
Tags
Unknown
Tasks
T3465: --pinentry-mode loopback with --delete-secret-keys