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
parent 14550557be
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;
case CMD_EMV_DUMP_CARD:
EMVdumpcard();
break;
/*
break;
case CMD_EMV_READ_RECORD:
EMVReadRecord(c->arg[0], c->arg[1], NULL);
break;
@ -904,7 +903,6 @@ void UsbPacketReceived(uint8_t *packet, int len) {
case CMD_EMV_FUZZ_RATS:
EMVFuzz_RATS(c->arg[0],c->d.asBytes);
break;
*/
#endif
#ifdef WITH_ICLASS
// 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 EMVSim();
extern void EMVTest();
extern void SimulateEMVcard();
#ifdef __cplusplus
}

View file

@ -12,7 +12,7 @@
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};
EMVFuzz_RATS(0xb, rats);
@ -132,7 +132,7 @@ void EMVSelectAID(uint8_t *AID, uint8_t AIDlen, emvcard* inputcard)
LEDsoff();
}
void EMVSelectPPSE()
void EMVSelectPPSE(void)
{
while(true) {
if(!emv_selectPPSE()) {
@ -224,7 +224,7 @@ int EMVGenerateAC(uint8_t refcontrol, emvcard* inputcard)
//function to perform paywave transaction
//takes in TTQ, amount authorised, unpredicable number and transaction currency code
int EMV_PaywaveTransaction()
int EMV_PaywaveTransaction(void)
{
uint8_t *resp = BigBuf_malloc(256);
tlvtag temptag;
@ -332,7 +332,7 @@ int EMV_PaywaveTransaction()
return 0;
}
int EMV_PaypassTransaction()
int EMV_PaypassTransaction(void)
{
uint8_t *resp = BigBuf_malloc(256);
tlvtag temptag; //buffer for decoded tags
@ -449,7 +449,7 @@ int EMV_PaypassTransaction()
return 0;
}
void EMVTransaction()
void EMVTransaction(void)
{
//params
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
// response to send, and send it.
//-----------------------------------------------------------------------------
void SimulateEMVcard()
void EMVSim(void)
{
/*