X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/28415b5d902e391b5bbfd615b3a42d8cffbb0ce3..8db18d2f15d70c5b6df632863fe005ff733a64a0:/client/cmdhfepa.c diff --git a/client/cmdhfepa.c b/client/cmdhfepa.c index 68176bf6..2f7ee7bc 100644 --- a/client/cmdhfepa.c +++ b/client/cmdhfepa.c @@ -36,7 +36,7 @@ int CmdHFEPACollectPACENonces(const char *Cmd) m = m > 0 ? m : 1; n = n > 0 ? n : 1; - PrintAndLog("Collecting %u %"hhu"-byte nonces", n, m); + PrintAndLog("Collecting %u %u byte nonces", n, m); PrintAndLog("Start: %u", time(NULL)); // repeat n times for (unsigned int i = 0; i < n; i++) { @@ -81,7 +81,7 @@ int CmdHFEPAPACEReplay(const char *Cmd) uint8_t *apdus[] = {msesa_apdu, gn_apdu, map_apdu, pka_apdu, ma_apdu}; // usage message - static const char const *usage_msg = + static const char *usage_msg = "Please specify 5 APDUs separated by spaces. " "Example:\n preplay 0022C1A4 1068000000 1086000002 1234ABCDEF 1A2B3C4D"; @@ -178,8 +178,7 @@ int CmdHFEPAPACEReplay(const char *Cmd) // UI-related stuff -static const command_t CommandTable[] = -{ +static const command_t CommandTable[] = { {"help", CmdHelp, 1, "This help"}, {"cnonces", CmdHFEPACollectPACENonces, 0, " Acquire n>0 encrypted PACE nonces of size m>0 with d sec pauses"}, @@ -188,18 +187,15 @@ static const command_t CommandTable[] = {NULL, NULL, 0, NULL} }; -int CmdHelp(const char *Cmd) -{ +int CmdHelp(const char *Cmd) { CmdsHelp(CommandTable); return 0; } -int CmdHFEPA(const char *Cmd) -{ +int CmdHFEPA(const char *Cmd) { // flush clearCommandBuffer(); //WaitForResponseTimeout(CMD_ACK,NULL,100); - // parse CmdsParse(CommandTable, Cmd); return 0;