Only when not emulation.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -60,9 +60,11 @@ int cmd_list_keys() {
|
|||||||
res_APDU[res_APDU_size++] = f->fid & 0xff;
|
res_APDU[res_APDU_size++] = f->fid & 0xff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((apdu.rlen + 2 + 10) % 64 == 0) { // FIX for strange behaviour with PSCS and multiple of 64
|
#if !defined(ENABLE_EMULATION)
|
||||||
|
if ((apdu.rlen + 2 + 10) % 64 == 0) { // FIX for strange behaviour with PSCS and multiple of 64
|
||||||
|
res_APDU[res_APDU_size++] = 0;
|
||||||
res_APDU[res_APDU_size++] = 0;
|
res_APDU[res_APDU_size++] = 0;
|
||||||
res_APDU[res_APDU_size++] = 0;
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return SW_OK();
|
return SW_OK();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user