From 3b66a256e3760e88066ca11b7b49d924e42aa46b Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 26 Oct 2017 14:40:38 +0900 Subject: 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 --- agent/agent.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'agent/agent.h') diff --git a/agent/agent.h b/agent/agent.h index af64f335e..78a3764cb 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -255,6 +255,9 @@ struct server_control_s /* The current S2K which might be different from the calibrated count. */ unsigned long s2k_count; + + /* Recursion level of pinentry. */ + int pinentry_level; }; -- cgit