From 9995ba51b2772d33582e3a3518943445fabbb0c9 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 13 May 2021 12:11:32 +0900 Subject: [PATCH] scd: Handle the error code of PCSC_E_READER_UNAVAILABLE. * scd/apdu.c (pcsc_error_to_sw): Add PCSC_E_READER_UNAVAILABLE. -- Signed-off-by: NIIBE Yutaka --- scd/apdu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scd/apdu.c b/scd/apdu.c index 7c9c563b4..b189c523c 100644 --- a/scd/apdu.c +++ b/scd/apdu.c @@ -649,6 +649,7 @@ pcsc_error_to_sw (long ec) case PCSC_E_SERVICE_STOPPED: case PCSC_E_UNKNOWN_READER: rc = SW_HOST_NO_READER; break; case PCSC_E_NO_READERS_AVAILABLE:rc = SW_HOST_NO_READER; break; + case PCSC_E_READER_UNAVAILABLE: rc = SW_HOST_NO_READER; break; case PCSC_E_SHARING_VIOLATION: rc = SW_HOST_LOCKING_FAILED; break; case PCSC_E_NO_SMARTCARD: rc = SW_HOST_NO_CARD; break; case PCSC_W_REMOVED_CARD: rc = SW_HOST_NO_CARD; break;