aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2016-12-30 04:17:49 +0000
committerNIIBE Yutaka <[email protected]>2016-12-30 04:17:49 +0000
commitf300e12a793d59deb1a369713384eaabfa39b3e6 (patch)
tree9c60f5f566157604120e82b3cf26ee71e871cfd7 /scd/app.c
parentscd: Improve internal CCID driver. (diff)
downloadgnupg-f300e12a793d59deb1a369713384eaabfa39b3e6.tar.gz
gnupg-f300e12a793d59deb1a369713384eaabfa39b3e6.zip
scd: Fix card removal monitor.
* scd/app.c (app_reset): Call send_client_notification with REMOVAL. (scd_update_reader_status_file): Likewise. * scd/command.c (send_client_notifications): Distinguish removal. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to '')
-rw-r--r--scd/app.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/app.c b/scd/app.c
index fa0547567..39910d2f9 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -161,7 +161,7 @@ app_reset (app_t app, ctrl_t ctrl, int send_reset)
err = gpg_error (GPG_ERR_CARD_RESET);
/* Release the same application which is used by other sessions. */
- send_client_notifications (app);
+ send_client_notifications (app, 1);
}
else
{
@@ -1035,7 +1035,7 @@ scd_update_reader_status_file (void)
if (a->card_status != status)
{
report_change (a->slot, a->card_status, status);
- send_client_notifications (a);
+ send_client_notifications (a, status == 0);
if (status == 0)
{