Skip to content

Commit 99d4d2b

Browse files
Update directives to add code supporting MbedTLS latest version (#211)
* Update the preprocessor directives to add code supporting MbedTLS version >= v3.6.3 * Fix formatting * Fix formatting
1 parent 6c104e3 commit 99d4d2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/portable/mbedtls/core_pkcs11_mbedtls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ static CK_RV prvMbedTLS_Initialize( void )
476476
mbedtls_ctr_drbg_init( &xP11Context.xMbedDrbgCtx );
477477

478478
/* Initialise the global mutexes for the PSA API's */
479-
#if defined( MBEDTLS_PSA_CRYPTO_C )
479+
#if defined( MBEDTLS_PSA_CRYPTO_C ) && ( MBEDTLS_VERSION_NUMBER >= 0x03060300 )
480480
mbedtls_mutex_init( &mbedtls_threading_key_slot_mutex );
481481
mbedtls_mutex_init( &mbedtls_threading_psa_globaldata_mutex );
482482
mbedtls_mutex_init( &mbedtls_threading_psa_rngdata_mutex );

0 commit comments

Comments
 (0)