Make psa_open_key threadsafe
This is a simple case of register then unregister Signed-off-by: Ryan Everett <ryan.everett@arm.com>
This commit is contained in:
parent
0aab69d2eb
commit
e110a4c900
1 changed files with 1 additions and 1 deletions
|
@ -542,7 +542,7 @@ psa_status_t psa_open_key(mbedtls_svc_key_id_t key, psa_key_handle_t *handle)
|
|||
|
||||
*handle = key;
|
||||
|
||||
return psa_unregister_read(slot);
|
||||
return psa_unregister_read_under_mutex(slot);
|
||||
|
||||
#else /* MBEDTLS_PSA_CRYPTO_STORAGE_C || MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS */
|
||||
(void) key;
|
||||
|
|
Loading…
Reference in a new issue