Emv commands work with smartcard interface (RfidResearchGroup PR67 by @Merlokk) (#743)

* replace 'hf emv' commands by 'emv' commands
* Enable smartcard commands by default (-DWITH_SMARTCARD)
* update i2c.c from RfidResearchGroup repository
* update smartcard.c from RfidResearchGroup repository
This commit is contained in:
pwpiwi 2019-01-05 09:47:12 +01:00 committed by GitHub
commit 8d7d7b6187
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 811 additions and 750 deletions

View file

@ -415,6 +415,8 @@ int CmdHFList(const char *Cmd)
protocol = ISO_14443B;
} else if(strcmp(type,"topaz") == 0) {
protocol = TOPAZ;
} else if(strcmp(type, "7816") == 0) {
protocol = ISO_7816_4;
} else if(strcmp(type,"raw") == 0) {
protocol = -1; //No crc, no annotations
} else if (strcmp(type, "save") == 0) {
@ -592,7 +594,6 @@ static command_t CommandTable[] =
{"14b", CmdHF14B, 1, "{ ISO14443B RFIDs... }"},
{"15", CmdHF15, 1, "{ ISO15693 RFIDs... }"},
{"epa", CmdHFEPA, 1, "{ German Identification Card... }"},
{"emv", CmdHFEMV, 1, "{ EMV cards... }"},
{"legic", CmdHFLegic, 0, "{ LEGIC RFIDs... }"},
{"iclass", CmdHFiClass, 1, "{ ICLASS RFIDs... }"},
{"mf", CmdHFMF, 1, "{ MIFARE RFIDs... }"},