Only when not emulation.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-06-21 21:11:18 +02:00
parent bb641ee134
commit 47acef71c8
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -60,9 +60,11 @@ int cmd_list_keys() {
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;
}
#endif
return SW_OK();
}