mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-15 20:08:01 +00:00
Fix checking status of PUK.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
e624f9ff72
commit
2f63966c60
1 changed files with 2 additions and 0 deletions
|
|
@ -68,6 +68,8 @@ int cmd_mse() {
|
|||
&chr_len);
|
||||
if (memcmp(chr, tag_data, chr_len) == 0) {
|
||||
ef_puk_aut = ef;
|
||||
if (puk_status[i] == 1)
|
||||
return SW_CONDITIONS_NOT_SATISFIED(); // It is correct
|
||||
return SW_OK();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue