1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Merge pull request #5546 from SiliconLabs/mbedtls-2.28/feature/PSEC-3195-PSA-test-suites-NOT-using-UID-0

Backport 2.28: feat: Update test_suite_psa_its to NOT use UID=0
This commit is contained in:
Manuel Pégourié-Gonnard
2022-02-17 11:49:41 +01:00
committed by GitHub
4 changed files with 48 additions and 24 deletions

View File

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