Use PSA status to Mbed TLS error code conversion function

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2022-02-15 09:14:15 +01:00
parent 87829e5429
commit b788c044b7

View file

@ -7509,7 +7509,7 @@ int mbedtls_ssl_get_handshake_transcript( mbedtls_ssl_context *ssl,
goto exit; goto exit;
exit: exit:
return( ( status == PSA_SUCCESS ) ? 0 : MBEDTLS_ERR_ERROR_GENERIC_ERROR ); return( psa_ssl_status_to_mbedtls( status ) );
} }
#else /* MBEDTLS_USE_PSA_CRYPTO */ #else /* MBEDTLS_USE_PSA_CRYPTO */