mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-28 08:36:56 +00:00
SSL tests: Skip tests using version not matching hardcoded version
This commit is contained in:
parent
930fbf60d6
commit
ac8c984784
|
@ -168,8 +168,10 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
|
|||
((void) etm);
|
||||
#endif
|
||||
|
||||
#if !defined(MBEDTLS_SSL_CONF_FIXED_MINOR_VER)
|
||||
t_out->minor_ver = ver;
|
||||
t_in->minor_ver = ver;
|
||||
#endif
|
||||
t_out->ivlen = ivlen;
|
||||
t_in->ivlen = ivlen;
|
||||
|
||||
|
@ -432,6 +434,11 @@ void ssl_crypt_record( int cipher_type, int hash_id,
|
|||
mbedtls_ssl_init( &ssl );
|
||||
mbedtls_ssl_transform_init( &t0 );
|
||||
mbedtls_ssl_transform_init( &t1 );
|
||||
|
||||
#if defined(MBEDTLS_SSL_CONF_FIXED_MINOR_VER)
|
||||
TEST_ASSUME( ver == MBEDTLS_SSL_CONF_FIXED_MINOR_VER );
|
||||
#endif
|
||||
|
||||
TEST_ASSERT( build_transforms( &t0, &t1, cipher_type, hash_id,
|
||||
etm, tag_mode, ver,
|
||||
(size_t) cid0_len,
|
||||
|
@ -573,6 +580,10 @@ void ssl_crypt_record_small( int cipher_type, int hash_id,
|
|||
(size_t) cid0_len,
|
||||
(size_t) cid1_len ) == 0 );
|
||||
|
||||
#if defined(MBEDTLS_SSL_CONF_FIXED_MINOR_VER)
|
||||
TEST_ASSUME( ver == MBEDTLS_SSL_CONF_FIXED_MINOR_VER );
|
||||
#endif
|
||||
|
||||
TEST_ASSERT( ( buf = mbedtls_calloc( 1, buflen ) ) != NULL );
|
||||
|
||||
for( mode=1; mode <= 3; mode++ )
|
||||
|
|
Loading…
Reference in a new issue