fix unused variable issue

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2022-06-19 13:47:00 +08:00
parent f55886a217
commit d099cf0325
3 changed files with 2 additions and 3 deletions

View File

@ -2164,7 +2164,6 @@ static inline int mbedtls_ssl_sig_alg_is_supported(
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
static inline int mbedtls_ssl_tls13_check_sig_alg_cert_key_match(
mbedtls_ssl_context *ssl,
uint16_t sig_alg,
mbedtls_pk_context *key)
{

View File

@ -873,7 +873,7 @@ static int ssl_tls13_select_sig_alg_for_certificate_verify(
}
if( mbedtls_ssl_sig_alg_is_supported( ssl, *sig_alg) &&
mbedtls_ssl_tls13_check_sig_alg_cert_key_match(
ssl, *sig_alg, own_key ) )
*sig_alg, own_key ) )
{
*algorithm = *sig_alg;
return( 0 );

View File

@ -390,7 +390,7 @@ static int ssl_tls13_pick_key_cert( mbedtls_ssl_context *ssl )
}
if( mbedtls_ssl_tls13_check_sig_alg_cert_key_match(
ssl, *sig_alg, &key_cert->cert->pk ) )
*sig_alg, &key_cert->cert->pk ) )
{
ssl->handshake->key_cert = key_cert;
MBEDTLS_SSL_DEBUG_CRT(