Fixing return value for ssl_tls13_write_certificate_body()

Signed-off-by: pespacek <peter.spacek@silabs.com>
This commit is contained in:
pespacek 2022-06-07 10:53:39 +02:00
parent 3493587e05
commit 670913f4dc

View file

@ -253,7 +253,6 @@ static int ssl_tls13_parse_certificate_verify( mbedtls_ssl_context *ssl,
}
MBEDTLS_SSL_DEBUG_BUF( 3, "verify hash", verify_hash, verify_hash_len );
#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
if( sig_alg == MBEDTLS_PK_RSASSA_PSS )
{
@ -990,7 +989,7 @@ static int ssl_tls13_write_certificate_verify_body( mbedtls_ssl_context *ssl,
verify_buffer_len,
verify_hash,sizeof( verify_hash ),
&verify_hash_len ) != PSA_SUCCESS )
return( ret );
return( psa_ssl_status_to_mbedtls( status ) );
MBEDTLS_SSL_DEBUG_BUF( 3, "verify hash", verify_hash, verify_hash_len );