SmartCardInterface::attachByReader()

Open a session to the smart card that's located in the provided smart card reader.

Synopsis:

#include <smartcard_spi/SmartCardInterface.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardInterface::attachByReader(const sc_reader_name_t &readerName, sc_card_access_mode_t cardAccessMode, SmartCardSession &session)

Since:

BlackBerry 10.3.0

Arguments:

readerName

The reader name where the smart card to connect to is located.

cardAccessMode

The card access mode.

session

The smart card session.

Library:

libscs (For the qcc command, use the -l scs option to link against this library)

Description:

This function opens a session to the smart card that's located in the provided smart card reader. If the reader is unknown to the smart card subsystem, an error is returned.

Returns:

If successful, SC_SCARD_S_SUCCESS is returned. Otherwise, an error code is returned.