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.
(cherry picked from commit 3b66a256e3760e88066ca11b7b49d924e42aa46b)
- GnuPG-bug-id: T3190
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>