mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
PUK AUT may return 0x9001.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -346,7 +346,7 @@ int process_apdu() {
|
|||||||
|
|
||||||
uint16_t set_res_sw(uint8_t sw1, uint8_t sw2) {
|
uint16_t set_res_sw(uint8_t sw1, uint8_t sw2) {
|
||||||
apdu.sw = (sw1 << 8) | sw2;
|
apdu.sw = (sw1 << 8) | sw2;
|
||||||
if (sw1 != 0x90 || sw2 != 0x00)
|
if (sw1 != 0x90)
|
||||||
res_APDU_size = 0;
|
res_APDU_size = 0;
|
||||||
return make_uint16_t(sw1, sw2);
|
return make_uint16_t(sw1, sw2);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user