mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Moving delete_file() outside.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
8504eed35c
commit
f593060007
1 changed files with 0 additions and 10 deletions
|
|
@ -433,16 +433,6 @@ uint32_t decrement_key_counter(file_t *fkey) {
|
|||
return 0xffffffff;
|
||||
}
|
||||
|
||||
int delete_file(file_t *ef) {
|
||||
meta_delete(ef->fid);
|
||||
if (flash_clear_file(ef) != CCID_OK)
|
||||
return CCID_EXEC_ERROR;
|
||||
if (delete_dynamic_file(ef) != CCID_OK)
|
||||
return CCID_EXEC_ERROR;
|
||||
low_flash_available();
|
||||
return CCID_OK;
|
||||
}
|
||||
|
||||
//Stores the private and public keys in flash
|
||||
int store_keys(void *key_ctx, int type, uint8_t key_id) {
|
||||
int r, key_size = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue