FIX: 'emv roca' - not executing when client is compiled without WITH_SMARTCARD functionality, like for old devices

see  https://github.com/RfidResearchGroup/proxmark3/issues/85
This commit is contained in:
iceman1001 2019-01-25 11:42:52 +01:00
parent bccdde0123
commit 4fe4d74bfe

View file

@ -1600,6 +1600,14 @@ int CmdEMVRoca(const char *cmd) {
channel = ECC_CONTACT;
PrintChannel(channel);
#ifndef WITH_SMARTCARD
// not compiled with smartcard functionality, we need to exit
if ( channel == ECC_CONTACT ) {
PrintAndLogEx(WARNING, "PM3 Client is not compiled with support for SMARTCARD. Exiting.");
return 0;
}
#endif
// select card
uint8_t psenum = (channel == ECC_CONTACT) ? 1 : 2;