mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-27 04:51:06 +00:00
BUGFIX: psa_its_set now rejects UID = 0
Signed-off-by: pespacek <peter.spacek@silabs.com>
This commit is contained in:
parent
97f188289d
commit
55f15c7e6c
|
@ -184,6 +184,11 @@ psa_status_t psa_its_set( psa_storage_uid_t uid,
|
||||||
const void *p_data,
|
const void *p_data,
|
||||||
psa_storage_create_flags_t create_flags )
|
psa_storage_create_flags_t create_flags )
|
||||||
{
|
{
|
||||||
|
if( uid == 0 )
|
||||||
|
{
|
||||||
|
return (PSA_ERROR_INVALID_HANDLE);
|
||||||
|
}
|
||||||
|
|
||||||
psa_status_t status = PSA_ERROR_STORAGE_FAILURE;
|
psa_status_t status = PSA_ERROR_STORAGE_FAILURE;
|
||||||
char filename[PSA_ITS_STORAGE_FILENAME_LENGTH];
|
char filename[PSA_ITS_STORAGE_FILENAME_LENGTH];
|
||||||
FILE *stream = NULL;
|
FILE *stream = NULL;
|
||||||
|
|
Loading…
Reference in a new issue