CHG: 'EMV' , at least it compiles, however working that is a completely different issue..

This commit is contained in:
iceman1001 2017-09-19 19:49:47 +02:00
commit b0bf1faa3d
3 changed files with 7 additions and 10 deletions

View file

@ -887,8 +887,7 @@ void UsbPacketReceived(uint8_t *packet, int len) {
break; break;
case CMD_EMV_DUMP_CARD: case CMD_EMV_DUMP_CARD:
EMVdumpcard(); EMVdumpcard();
break; break;
/*
case CMD_EMV_READ_RECORD: case CMD_EMV_READ_RECORD:
EMVReadRecord(c->arg[0], c->arg[1], NULL); EMVReadRecord(c->arg[0], c->arg[1], NULL);
break; break;
@ -904,7 +903,6 @@ void UsbPacketReceived(uint8_t *packet, int len) {
case CMD_EMV_FUZZ_RATS: case CMD_EMV_FUZZ_RATS:
EMVFuzz_RATS(c->arg[0],c->d.asBytes); EMVFuzz_RATS(c->arg[0],c->d.asBytes);
break; break;
*/
#endif #endif
#ifdef WITH_ICLASS #ifdef WITH_ICLASS
// Makes use of ISO14443a FPGA Firmware // Makes use of ISO14443a FPGA Firmware

View file

@ -246,7 +246,6 @@ extern void EMVSelectAID(uint8_t *AID, uint8_t AIDlen, emvcard* inputcard);
extern void EMVClone(uint8_t maxsfi, uint8_t maxrecord); extern void EMVClone(uint8_t maxsfi, uint8_t maxrecord);
extern void EMVSim(); extern void EMVSim();
extern void EMVTest(); extern void EMVTest();
extern void SimulateEMVcard();
#ifdef __cplusplus #ifdef __cplusplus
} }

View file

@ -12,7 +12,7 @@
static emvcard currentcard; //use to hold emv tags for the reader/card during communications static emvcard currentcard; //use to hold emv tags for the reader/card during communications
void EMVTest() void EMVTest(void)
{ {
uint8_t rats[0x0b] = {0x0b,0x78,0x80,0x81,0x02,0x4b,0x4f,0x4e,0x41, 0x14, 0x11}; uint8_t rats[0x0b] = {0x0b,0x78,0x80,0x81,0x02,0x4b,0x4f,0x4e,0x41, 0x14, 0x11};
EMVFuzz_RATS(0xb, rats); EMVFuzz_RATS(0xb, rats);
@ -132,7 +132,7 @@ void EMVSelectAID(uint8_t *AID, uint8_t AIDlen, emvcard* inputcard)
LEDsoff(); LEDsoff();
} }
void EMVSelectPPSE() void EMVSelectPPSE(void)
{ {
while(true) { while(true) {
if(!emv_selectPPSE()) { if(!emv_selectPPSE()) {
@ -224,7 +224,7 @@ int EMVGenerateAC(uint8_t refcontrol, emvcard* inputcard)
//function to perform paywave transaction //function to perform paywave transaction
//takes in TTQ, amount authorised, unpredicable number and transaction currency code //takes in TTQ, amount authorised, unpredicable number and transaction currency code
int EMV_PaywaveTransaction() int EMV_PaywaveTransaction(void)
{ {
uint8_t *resp = BigBuf_malloc(256); uint8_t *resp = BigBuf_malloc(256);
tlvtag temptag; tlvtag temptag;
@ -332,7 +332,7 @@ int EMV_PaywaveTransaction()
return 0; return 0;
} }
int EMV_PaypassTransaction() int EMV_PaypassTransaction(void)
{ {
uint8_t *resp = BigBuf_malloc(256); uint8_t *resp = BigBuf_malloc(256);
tlvtag temptag; //buffer for decoded tags tlvtag temptag; //buffer for decoded tags
@ -449,7 +449,7 @@ int EMV_PaypassTransaction()
return 0; return 0;
} }
void EMVTransaction() void EMVTransaction(void)
{ {
//params //params
uint8_t uid[10] = {0x00}; uint8_t uid[10] = {0x00};
@ -651,7 +651,7 @@ void EMVClone(uint8_t maxsfi, uint8_t maxrecord)
// Main loop of simulated tag: receive commands from reader, decide what // Main loop of simulated tag: receive commands from reader, decide what
// response to send, and send it. // response to send, and send it.
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void SimulateEMVcard() void EMVSim(void)
{ {
/* /*