1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

SE driver: validate_slot_number: support changing persistent data

Add a parameter to the p_validate_slot_number method to allow the
driver to modify the persistent data.

With the current structure of the core, the persistent data is already
updated. All it took was adding a way to modify it.
This commit is contained in:
Gilles Peskine
2019-10-01 14:27:23 +02:00
parent 3efcebbc5e
commit 5ec3a30edb
3 changed files with 13 additions and 0 deletions

View File

@ -222,6 +222,7 @@ psa_status_t psa_find_se_slot_for_key(
if( p_validate_slot_number == NULL )
return( PSA_ERROR_NOT_SUPPORTED );
status = p_validate_slot_number( &driver->context,
driver->internal.persistent_data,
attributes, method,
*slot_number );
}