New str_nfc_target() function in API.

This allow to convert a nfc_target struct into allocated string.
This commit is contained in:
Romuald Conty 2012-09-17 13:47:54 +00:00
parent 82e3416619
commit 310d7eba07
13 changed files with 726 additions and 622 deletions

View file

@ -250,7 +250,7 @@ main(int argc, char *argv[])
}
printf("Found tag:\n");
print_nfc_iso14443a_info(ntRealTarget.nti.nai, false);
print_nfc_target(ntRealTarget, false);
if (initiator_only_mode) {
if (print_hex_fd4(ntRealTarget.nti.nai.abtUid, ntRealTarget.nti.nai.szUidLen, "UID") != EXIT_SUCCESS) {
fprintf(stderr, "Error while printing UID to FD4\n");
@ -350,7 +350,7 @@ main(int argc, char *argv[])
memcpy(&(ntEmulatedTarget.nti.nai.abtAts[4]), pbtTkt, szTk);
printf("We will emulate:\n");
print_nfc_iso14443a_info(ntEmulatedTarget.nti.nai, false);
print_nfc_target(ntEmulatedTarget, false);
// Try to open the NFC emulator device
pndTarget = nfc_open(NULL, connstrings[0]);