SmartCardCustomCommandProvider::sendApdu()

Send a custom APDU command.

Synopsis:

#include <smartcard_spi/SmartCardCustomCommandProvider.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardCustomCommandProvider::sendApdu(const unsigned char *apduCommand, unsigned int apduCommandLength, unsigned char *apduResponse, unsigned int &apduResponseLength)

Since:

BlackBerry 10.3.0

Arguments:

apduCommand

The APDU command to send.

apduCommandLength

The length of the APDU command to send.

apduResponse

The response APDU, which is populated by this function.

apduResponseLength

The response APDU length.

Library:

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

Description:

This function sends a custom APDU command.

Returns:

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