mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-06 20:23:05 +00:00
Fix deleting KEK.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
9256a72c3e
commit
da841b82d4
1 changed files with 1 additions and 1 deletions
|
|
@ -992,7 +992,7 @@ static int cmd_key_domain() {
|
|||
if (delete_file(tf) != CCID_OK)
|
||||
return SW_EXEC_ERROR();
|
||||
}
|
||||
if ((tf = search_dynamic_file(EF_XKEK+p2))) {
|
||||
if (p1 == 0x3 && (tf = search_dynamic_file(EF_XKEK+p2))) {
|
||||
if (delete_file(tf) != CCID_OK)
|
||||
return SW_EXEC_ERROR();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue