changed 'emv *' - to try 14b if 14a fails. <experimental>

This commit is contained in:
iceman1001 2021-04-24 14:53:40 +02:00
parent 96ae77caf8
commit 94fc054277

View file

@ -18,6 +18,7 @@
#include "cmdsmartcard.h" // ExchangeAPDUSC #include "cmdsmartcard.h" // ExchangeAPDUSC
#include "ui.h" #include "ui.h"
#include "cmdhf14a.h" #include "cmdhf14a.h"
#include "cmdhf14b.h"
#include "dol.h" #include "dol.h"
#include "emv_tags.h" #include "emv_tags.h"
#include "emvjson.h" #include "emvjson.h"
@ -301,6 +302,8 @@ static int EMVExchangeEx(EMVCommandChannel channel, bool ActivateField, bool Lea
case ECC_CONTACTLESS: case ECC_CONTACTLESS:
res = ExchangeAPDU14a(data, datalen, ActivateField, LeaveFieldON, Result, (int)MaxResultLen, (int *)ResultLen); res = ExchangeAPDU14a(data, datalen, ActivateField, LeaveFieldON, Result, (int)MaxResultLen, (int *)ResultLen);
if (res) { if (res) {
res = exchange_14b_apdu(data, datalen, ActivateField, LeaveFieldON, Result, (int)MaxResultLen, (int *)ResultLen, 4000);
if (res)
return res; return res;
} }
break; break;