agent, sm: Set CTX after start_agent.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 27 Sep 2016 05:45:21 +0000 (14:45 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 27 Sep 2016 05:45:21 +0000 (14:45 +0900)
commit4e4843e735f32b5e79a51d8062da55bfaab6ad77
tree32551fc764650052a74aed365ae49f0b7cbabdf4
parent836b72363168cbb0051fc2356f61788468db211c
agent, sm: Set CTX after start_agent.

* g10/call-agent.c (agent_keytocard): Assign parm.ctx after start_agent.
* sm/call-agent.c (gpgsm_agent_pksign, gpgsm_scd_pksign)
(gpgsm_agent_readkey, gpgsm_agent_scd_serialno)
(gpgsm_agent_scd_keypairinfo, gpgsm_agent_marktrusted)
(gpgsm_agent_passwd, gpgsm_agent_get_confirmation)
(gpgsm_agent_ask_passphrase, gpgsm_agent_keywrap_key)
(gpgsm_agent_export_key): Likewise.

--

Reported-by: Rainer Perske
GnuPG-bug-id: 2699
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/call-agent.c
sm/call-agent.c