mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-02 04:46:24 +00:00
PIN remaining tries only returned when user is not logged in. If so, it returns always OK.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
7cf166d615
commit
86e38419ac
1 changed files with 2 additions and 0 deletions
|
|
@ -439,6 +439,8 @@ static int cmd_verify() {
|
|||
}
|
||||
if (file_read_uint8(file_retries_pin1->data+2) == 0)
|
||||
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));
|
||||
}
|
||||
else if (p2 == 0x88) { //SOPin
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue