Smart card interface handle types as defined by the PC/SC specification.
Synopsis:
#include <smartcard/sc_data_types.h>
typedef enum
SC_HANDLE_MANAGER = 0
SC_HANDLE_READER = 1
SC_HANDLE_READER_SLOT_LOGICAL = 2
SC_HANDLE_CARD = 3
SC_HANDLE_CARD_HOLDER_VERIFIER = 4
SC_HANDLE_CARD_CRYPTO_PROVIDER_X = 5
SC_HANDLE_CUSTOM_COMMAND_PROVIDER = 6
} sc_handle_type_t;
Data:
- SC_HANDLE_MANAGER
- Handle for performing smart card manager operations.
Currently not supported.
- SC_HANDLE_READER
- Handle for performing direct reader operations.
Currently not supported.
- SC_HANDLE_READER_SLOT_LOGICAL
- Handle for performing slot logical operations.
- SC_HANDLE_CARD
- Handle for performing direct card operations.
Currently not supported.
- SC_HANDLE_CARD_HOLDER_VERIFIER
- Handle for performing card holder verification (CHV).
For example, the interface supports PIN verification and retrieving the number of remaining attempts.
- SC_HANDLE_CARD_CRYPTO_PROVIDER_X
- Handle for performing cryptographic operations.
In particular, the interface supports encryption, decryption, and signing.
- SC_HANDLE_CUSTOM_COMMAND_PROVIDER
- Handle for sending custom APDU commands to the card.
Library:
libscs (For the qcc command, use the -l scs option to link against this library)