scd: Don't send GET_STATUS packet if not needed.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 30 Jan 2017 00:05:37 +0000 (09:05 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 30 Jan 2017 00:05:37 +0000 (09:05 +0900)
commit7c8eee4d396a751d41fd1ee1e1b87b851fca172a
treeb6871442f132af693f7e1600a0657fd29f8518f8
parent216afba0d99582d0fbae1d6e925f4ddb349d9de3
scd: Don't send GET_STATUS packet if not needed.

* scd/apdu.c (apdu_get_status_internal): Add ON_WIRE arg.
(apdu_connect): Call apdu_get_status_internal with ON_WIRE enabled.
(apdu_get_status): For periodical check, call apdu_get_status_internal
with ON_WIRE disabled.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/apdu.c