Revert "PIN remaining tries only returned when user is not logged in. If so, it returns always OK."
This reverts commit 86e38419ac.
This commit is contained in:
@@ -439,8 +439,6 @@ static int cmd_verify() {
|
|||||||
}
|
}
|
||||||
if (file_read_uint8(file_retries_pin1->data+2) == 0)
|
if (file_read_uint8(file_retries_pin1->data+2) == 0)
|
||||||
return SW_PIN_BLOCKED();
|
return SW_PIN_BLOCKED();
|
||||||
if (isUserAuthenticated && has_session_pin)
|
|
||||||
return SW_OK();
|
|
||||||
return set_res_sw(0x63, 0xc0 | file_read_uint8(file_retries_pin1->data+2));
|
return set_res_sw(0x63, 0xc0 | file_read_uint8(file_retries_pin1->data+2));
|
||||||
}
|
}
|
||||||
else if (p2 == 0x88) { //SOPin
|
else if (p2 == 0x88) { //SOPin
|
||||||
|
|||||||
Reference in New Issue
Block a user