Moving delete_file() outside.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-10-09 22:07:21 +02:00
parent 8504eed35c
commit f593060007
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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;