mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-01-06 11:41:12 +03:00
Corrections to the new functions names and error message wording
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com>
This commit is contained in:
@@ -1003,8 +1003,8 @@ psa_status_t psa_wipe_key_slot( psa_key_slot_t *slot )
|
||||
if( slot->lock_count != 1 )
|
||||
{
|
||||
#if defined(MBEDTLS_TEST_HOOKS)
|
||||
if( *mbedtls_test_hook_value != NULL )
|
||||
( *mbedtls_test_hook_value )( slot->lock_count == 1, __FILE__, __LINE__ );
|
||||
if( *mbedtls_test_hook_assert_test != NULL )
|
||||
( *mbedtls_test_hook_assert_test )( slot->lock_count == 1, __FILE__, __LINE__ );
|
||||
#endif
|
||||
status = PSA_ERROR_CORRUPTION_DETECTED;
|
||||
}
|
||||
|
||||
@@ -416,8 +416,8 @@ psa_status_t psa_unlock_key_slot( psa_key_slot_t *slot )
|
||||
slot->lock_count = 1;
|
||||
|
||||
#if defined(MBEDTLS_TEST_HOOKS)
|
||||
if( *mbedtls_test_hook_value != NULL )
|
||||
( *mbedtls_test_hook_value )( slot->lock_count > 0, __FILE__, __LINE__ );
|
||||
if( *mbedtls_test_hook_assert_test != NULL )
|
||||
( *mbedtls_test_hook_assert_test )( slot->lock_count > 0, __FILE__, __LINE__ );
|
||||
#endif
|
||||
|
||||
return( PSA_ERROR_CORRUPTION_DETECTED );
|
||||
|
||||
Reference in New Issue
Block a user