From 8f2671d2cc022af2f564e296bdeb3bb2d2734ef4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 31 Mar 2017 20:03:52 +0200 Subject: gpg: Pass CTRL to many more functions. -- For proper operations as a server we need to avoid global variables. Thus we need to pass the session state CTRL to most functions. Quite a lot of changes but fortunately straightforward to do. Signed-off-by: Werner Koch --- g10/call-agent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'g10/call-agent.c') diff --git a/g10/call-agent.c b/g10/call-agent.c index af06bf511..0ba978774 100644 --- a/g10/call-agent.c +++ b/g10/call-agent.c @@ -160,7 +160,8 @@ default_inq_cb (void *opaque, const char *line) char buf[32]; if (parm->keyinfo.keyid) - emit_status_need_passphrase (parm->keyinfo.keyid, + emit_status_need_passphrase (parm->ctrl, + parm->keyinfo.keyid, parm->keyinfo.mainkeyid, parm->keyinfo.pubkey_algo); -- cgit v1.2.3