BUGFIX: psa_its_set now rejects UID = 0
Signed-off-by: pespacek <peter.spacek@silabs.com>
This commit is contained in:
parent
d2da19b8eb
commit
e990100ddb
1 changed files with 5 additions and 0 deletions
|
@ -184,6 +184,11 @@ psa_status_t psa_its_set( psa_storage_uid_t uid,
|
|||
const void *p_data,
|
||||
psa_storage_create_flags_t create_flags )
|
||||
{
|
||||
if( uid == 0 )
|
||||
{
|
||||
return (PSA_ERROR_INVALID_HANDLE);
|
||||
}
|
||||
|
||||
psa_status_t status = PSA_ERROR_STORAGE_FAILURE;
|
||||
char filename[PSA_ITS_STORAGE_FILENAME_LENGTH];
|
||||
FILE *stream = NULL;
|
||||
|
|
Loading…
Reference in a new issue