mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
agent: Stop scdaemon after reload when disable_scdaemon.
* agent/call-scd.c (agent_card_killscd): New. * agent/gpg-agent.c (agent_sighup_action): Call agent_card_killscd. -- GnuPG-bug-id: 4326 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
265e6d6706
commit
7158a5696d
@ -618,6 +618,7 @@ int agent_card_scd (ctrl_t ctrl, const char *cmdline,
|
||||
void agent_card_free_keyinfo (struct card_key_info_s *l);
|
||||
gpg_error_t agent_card_keyinfo (ctrl_t ctrl, const char *keygrip,
|
||||
struct card_key_info_s **result);
|
||||
void agent_card_killscd (void);
|
||||
|
||||
|
||||
/*-- learncard.c --*/
|
||||
|
@ -1515,3 +1515,12 @@ agent_card_scd (ctrl_t ctrl, const char *cmdline,
|
||||
|
||||
return unlock_scd (ctrl, 0);
|
||||
}
|
||||
|
||||
void
|
||||
agent_card_killscd (void)
|
||||
{
|
||||
if (primary_scd_ctx == NULL)
|
||||
return;
|
||||
assuan_transact (primary_scd_ctx, "KILLSCD",
|
||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
@ -2441,6 +2441,9 @@ agent_sighup_action (void)
|
||||
"pinentry" binary that one can be used in case the
|
||||
"pinentry-basic" fallback was in use. */
|
||||
gnupg_module_name_flush_some ();
|
||||
|
||||
if (opt.disable_scdaemon)
|
||||
agent_card_killscd ();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user