Add return value check for cerificate verify

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2021-11-05 13:32:38 +08:00
parent 834886d211
commit 5398c10b89
2 changed files with 7 additions and 2 deletions

View File

@ -503,6 +503,7 @@ int mbedtls_ssl_tls13_process_certificate_verify( mbedtls_ssl_context *ssl )
cleanup:
MBEDTLS_SSL_DEBUG_MSG( 2, ( "<= parse certificate verify" ) );
MBEDTLS_SSL_DEBUG_RET( 1, "mbedtls_ssl_tls13_process_certificate_verify", ret );
return( ret );
#else
((void) ssl);

View File

@ -8833,7 +8833,9 @@ run_test "TLS1.3: Test client hello msg work - openssl" \
-c "=> ssl_tls1_3_process_server_hello" \
-c "<= parse encrypted extensions" \
-c "Certificate verification flags clear" \
-c "<= parse certificate verify"
-c "=> parse certificate verify" \
-c "<= parse certificate verify" \
-c "mbedtls_ssl_tls13_process_certificate_verify() returned 0"
requires_gnutls_tls1_3
requires_gnutls_next_no_ticket
@ -8864,7 +8866,9 @@ run_test "TLS1.3: Test client hello msg work - gnutls" \
-c "=> ssl_tls1_3_process_server_hello" \
-c "<= parse encrypted extensions" \
-c "Certificate verification flags clear" \
-c "<= parse certificate verify"
-c "=> parse certificate verify" \
-c "<= parse certificate verify" \
-c "mbedtls_ssl_tls13_process_certificate_verify() returned 0"
# Test heap memory usage after handshake
requires_config_enabled MBEDTLS_MEMORY_DEBUG