mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01:00
scd: handle reader/token removal.
* scd/apdu.c (pcsc_error_to_sw): PCSC_E_UNKNOWN_READER means SW_HOST_NO_READER.
This commit is contained in:
parent
8db2e4039f
commit
34b78c7d82
@ -841,6 +841,7 @@ pcsc_error_to_sw (long ec)
|
|||||||
case PCSC_E_CANCELLED: rc = SW_HOST_ABORTED; break;
|
case PCSC_E_CANCELLED: rc = SW_HOST_ABORTED; break;
|
||||||
case PCSC_E_NO_MEMORY: rc = SW_HOST_OUT_OF_CORE; break;
|
case PCSC_E_NO_MEMORY: rc = SW_HOST_OUT_OF_CORE; break;
|
||||||
case PCSC_E_TIMEOUT: rc = SW_HOST_CARD_IO_ERROR; break;
|
case PCSC_E_TIMEOUT: rc = SW_HOST_CARD_IO_ERROR; break;
|
||||||
|
case PCSC_E_UNKNOWN_READER: rc = SW_HOST_NO_READER; break;
|
||||||
case PCSC_E_SHARING_VIOLATION: rc = SW_HOST_LOCKING_FAILED; 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_E_NO_SMARTCARD: rc = SW_HOST_NO_CARD; break;
|
||||||
case PCSC_W_REMOVED_CARD: rc = SW_HOST_NO_CARD; break;
|
case PCSC_W_REMOVED_CARD: rc = SW_HOST_NO_CARD; break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user