agent: Allow recursive use of pinentry.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 26 Oct 2017 05:40:38 +0000 (14:40 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 26 Oct 2017 05:40:38 +0000 (14:40 +0900)
commit3b66a256e3760e88066ca11b7b49d924e42aa46b
tree85e4ee80b548cdd9fc1783bd26f009dd3efdc120
parentbf26c08b95389718ba07f12789d372c6f438134f
agent: Allow recursive use of pinentry.

* agent/agent.h (struct server_control_s): Add pinentry_level.
* agent/call-pinentry.c (agent_popup_message_stop): Not clear
ENTRY_CTX here.
(unlock_pinentry): Handle recursion.  Clear ENTRY_CTX here.
(start_pinentry): Allow recursive use.

--

GnuPG-bug-id: 3190
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/agent.h
agent/call-pinentry.c