SmartCardSession::transmit()

Send a request to the smart card.

Synopsis:

#include <smartcard_spi/SmartCardSession.hpp>
virtual sc_response_code_t smartcard_spi::SmartCardSession::transmit(const SmartCardIoHeader &requestIoHeader, const unsigned char *requestData, unsigned int requestDataLength, SmartCardIoHeader &responseIoHeader, unsigned char *responseData, unsigned int &responseDataLength)=0

Since:

BlackBerry 10.3.0

Arguments:

requestIoHeader

The protocol control information structure corresponding to the protocol to use for sending.

requestData

The buffer containing the data to be sent to the smart card.

requestDataLength

The length of requestData.

responseIoHeader

The protocol control information structure corresponding to the protocol used to receive data from the smart card, which is is populated by this function.

responseData

The data buffer used to store the response, which is populated by this function. It must be large enough to hold the maximum amount of data that may be returned.

responseDataLength

On input, this parameter specifies the length of responseData. Upon return, this parameter specifies the number of bytes returned by the card.

Library:

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

Description:

This function sends a request to the smart card.

Returns:

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