agent: Allow recursive use of pinentry.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 26 Oct 2017 05:40:38 +0000 (14:40 +0900)
committerWerner Koch <wk@gnupg.org>
Fri, 27 Oct 2017 12:15:50 +0000 (14:15 +0200)
commit4738256f2e0d22302377c9ec7b2ae3999338e6c6
treee63e4514bc6757743fb868f4e6379bb5b7df4386
parent05cb87276c21c3a47226c75026fa46a955553dd9
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>
(cherry picked from commit 3b66a256e3760e88066ca11b7b49d924e42aa46b)
agent/agent.h
agent/call-pinentry.c