Skip to content

Commit

Permalink
guard the smarttonfc command
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Jan 14, 2025
1 parent fc06caf commit 00f9403
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions armsrc/appmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,7 @@ static void PacketReceived(PacketCommandNG *packet) {
ReaderIso14443a(packet);
break;
}
#ifdef WITH_SMARTCARD
case CMD_HF_ISO14443A_EMV_SIMULATE: {
struct p {
uint16_t flags;
Expand All @@ -1676,6 +1677,7 @@ static void PacketReceived(PacketCommandNG *packet) {
EMVsim(payload->flags, payload->exitAfter, payload->uid, payload->atqa, payload->sak);
break;
}
#endif
case CMD_HF_ISO14443A_SIMULATE: {
struct p {
uint8_t tagtype;
Expand Down
2 changes: 1 addition & 1 deletion client/src/emv/cmdemv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2980,7 +2980,7 @@ static command_t CommandTable[] = {
{"search", CmdEMVSearch, IfPm3Iso14443, "Try to select all applets from applets list and print installed applets"},
{"select", CmdEMVSelect, IfPm3Iso14443, "Select applet"},
{"-----------", CmdHelp, IfPm3Iso14443a, "---------------------- " _CYAN_("simulation") " ---------------------"},
{"smart2nfc", CmdEMVSmartToNFC, IfPm3Iso14443, "Complete transaction as a nfc smart card, using the ISO-7816 interface for auth"},
{"smart2nfc", CmdEMVSmartToNFC, IfPm3Smartcard, "Complete transaction as a nfc smart card, using the ISO-7816 interface for auth"},
/*
{"getrng", CmdEMVGetrng, IfPm3Iso14443, "Get random number from terminal"},
{"eload", CmdEmvELoad, IfPm3Iso14443, "Load EMV tag into device"},
Expand Down

0 comments on commit 00f9403

Please sign in to comment.