Revert "Also for SOPIN."

This reverts commit ad66170379.
This commit is contained in:
Pol Henarejos 2022-03-31 14:30:50 +02:00
parent ad66170379
commit 923e05a36c
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -449,8 +449,6 @@ static int cmd_verify() {
}
if (file_read_uint8(file_retries_sopin->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_sopin->data+2));
}
return SW_REFERENCE_NOT_FOUND();