mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
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:
parent
bccdde0123
commit
4fe4d74bfe
1 changed files with 8 additions and 0 deletions
|
@ -1599,6 +1599,14 @@ int CmdEMVRoca(const char *cmd) {
|
||||||
if (arg_get_lit(2))
|
if (arg_get_lit(2))
|
||||||
channel = ECC_CONTACT;
|
channel = ECC_CONTACT;
|
||||||
PrintChannel(channel);
|
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
|
// select card
|
||||||
uint8_t psenum = (channel == ECC_CONTACT) ? 1 : 2;
|
uint8_t psenum = (channel == ECC_CONTACT) ? 1 : 2;
|
||||||
|
|
Loading…
Reference in a new issue