nfc_se_transaction_get_aid()

Retrieve an AID used in a transaction.

Synopsis:

#include "nfc/nfc_se_transaction.h"
 
NFC_API nfc_result_t nfc_se_transaction_get_aid(nfc_se_transaction_t *transaction, unsigned int index, const uint8_t **aid, size_t *aidLength)

Since:

BlackBerry 10.0.0

Arguments:

transaction

The transaction to retrieve AID from.

index

The index of the AID to retrieve. This is a zero-based index, therefore it must be lower than the result returned from nfc_se_transaction_get_number_of_aids().

aid

A pointer to be filled in with the AID data.

aidLength

A pointer to a size_t value, which is filled in with the number of octets in the AID.

Library:

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

Description:

Passing a value of NULL as an argument is not supported.

Returns:

NFC_RESULT_SUCCESS if the AID is successfully retrieved; otherwise NFC_RESULT_INVALID_PARAMETER if transaction is NULL, or if index is out of bounds.