Merge pull request #5296 from paul-elliott-arm/test_suite_ssl_returns

Add checked returns to common functions in SSL tests without them.
This commit is contained in:
Gilles Peskine 2021-12-09 23:17:10 +01:00 committed by GitHub
commit 9c8c243c41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4332,7 +4332,7 @@ void ssl_session_serialize_version_check( int corrupt_major,
corrupt_config == 1 };
mbedtls_ssl_session_init( &session );
ssl_populate_session_tls12( &session, 0, NULL );
TEST_ASSERT( ssl_populate_session_tls12( &session, 0, NULL ) == 0 );
/* Infer length of serialized session. */
TEST_ASSERT( mbedtls_ssl_session_save( &session,
@ -4904,7 +4904,7 @@ void conf_curve()
mbedtls_ssl_context ssl;
mbedtls_ssl_init( &ssl );
mbedtls_ssl_setup( &ssl, &conf );
TEST_ASSERT( mbedtls_ssl_setup( &ssl, &conf ) == 0 );
TEST_ASSERT( ssl.handshake != NULL && ssl.handshake->group_list != NULL );
TEST_ASSERT( ssl.conf != NULL && ssl.conf->group_list == NULL );
@ -4937,7 +4937,7 @@ void conf_group()
mbedtls_ssl_context ssl;
mbedtls_ssl_init( &ssl );
mbedtls_ssl_setup( &ssl, &conf );
TEST_ASSERT( mbedtls_ssl_setup( &ssl, &conf ) == 0 );
TEST_ASSERT( ssl.conf != NULL && ssl.conf->group_list != NULL );