mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
chg: emv commands should now compile. no testing done.
This commit is contained in:
parent
647411d10d
commit
9959d5c1e7
5 changed files with 21 additions and 12 deletions
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "cmdemv.h"
|
||||
|
||||
static int CmdHelp(const char *Cmd);
|
||||
|
||||
int UsageCmdHFEMVSelect(void) {
|
||||
PrintAndLog("HELP : Executes select applet command:\n");
|
||||
PrintAndLog("Usage: hf emv select [-s][-k][-a][-t] <HEX applet AID>\n");
|
||||
|
@ -289,8 +291,6 @@ int UsageCmdHFEMVExec(void) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
#define TLV_ADD(tag, value)( tlvdb_add(tlvRoot, tlvdb_fixed(tag, sizeof(value) - 1, (const unsigned char *)value)) )
|
||||
|
||||
int CmdHFEMVExec(const char *cmd) {
|
||||
bool activateField = false;
|
||||
bool showAPDU = false;
|
||||
|
@ -531,7 +531,6 @@ return 0;
|
|||
return 0;
|
||||
}
|
||||
|
||||
int CmdHelp(const char *Cmd);
|
||||
static command_t CommandTable[] = {
|
||||
{"help", CmdHelp, 1, "This help"},
|
||||
{"exec", CmdHFEMVExec, 0, "Executes EMV contactless transaction."},
|
||||
|
@ -542,6 +541,7 @@ static command_t CommandTable[] = {
|
|||
};
|
||||
|
||||
int CmdHFEMV(const char *Cmd) {
|
||||
clearCommandBuffer();
|
||||
CmdsParse(CommandTable, Cmd);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue