mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 15:55:50 +01:00
ssl_tls.c: Fix inappropriate use of ssl context
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
f1ed5951e3
commit
e7dad1f616
@ -1361,7 +1361,7 @@ static int ssl_populate_transform( mbedtls_ssl_transform *transform,
|
|||||||
* the structure field for the IV, which the PSA-based
|
* the structure field for the IV, which the PSA-based
|
||||||
* implementation currently doesn't. */
|
* implementation currently doesn't. */
|
||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
||||||
if( ssl->minor_ver == MBEDTLS_SSL_MINOR_VERSION_3 )
|
if( minor_ver == MBEDTLS_SSL_MINOR_VERSION_3 )
|
||||||
{
|
{
|
||||||
ret = mbedtls_cipher_setup_psa( &transform->cipher_ctx_enc,
|
ret = mbedtls_cipher_setup_psa( &transform->cipher_ctx_enc,
|
||||||
cipher_info, transform->taglen );
|
cipher_info, transform->taglen );
|
||||||
@ -1404,7 +1404,7 @@ static int ssl_populate_transform( mbedtls_ssl_transform *transform,
|
|||||||
* the structure field for the IV, which the PSA-based
|
* the structure field for the IV, which the PSA-based
|
||||||
* implementation currently doesn't. */
|
* implementation currently doesn't. */
|
||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
|
||||||
if( ssl->minor_ver == MBEDTLS_SSL_MINOR_VERSION_3 )
|
if( minor_ver == MBEDTLS_SSL_MINOR_VERSION_3 )
|
||||||
{
|
{
|
||||||
ret = mbedtls_cipher_setup_psa( &transform->cipher_ctx_dec,
|
ret = mbedtls_cipher_setup_psa( &transform->cipher_ctx_dec,
|
||||||
cipher_info, transform->taglen );
|
cipher_info, transform->taglen );
|
||||||
|
Loading…
Reference in New Issue
Block a user