0x85 and 0x86 should return not found to avoid authentication path.

Fixes #81 and #84.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2025-04-07 01:26:07 +02:00
parent 9b1dceb8da
commit 4b59bd6481
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -59,8 +59,5 @@ int cmd_verify() {
}
return set_res_sw(0x63, 0xc0 | file_read_uint8(file_retries_sopin));
}
else if (p2 == 0x85) {
return SW_OK();
}
return SW_REFERENCE_NOT_FOUND();
}