nfc_se_transaction_check_source_gid()

Validate the authenticity of a transaction notification.

Synopsis:

#include "nfc/nfc_se_transaction.h"
 
NFC_API nfc_result_t nfc_se_transaction_check_source_gid(int64_t sourceGid)

Since:

BlackBerry 10.3.0

Arguments:

sourceGid

The provided GID to verify against the NFC services.

Library:

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

Description:

A transaction notification that an application receives contains the group ID (GID) of the source process. Call this function to verify that the source of the received notification is the NFC service, not another application. The GID of an authentic transaction notification is added by the operating system and cannot be spoofed.

Returns:

NFC_RESULT_SUCCESS if the GID belongs to the NFC service; one of the following error codes otherwise: