diff options
author | Frederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk> | 2024-01-30 14:29:53 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2024-02-09 08:16:56 +0000 |
commit | a909113ed3ab8df5708600aeff36fafa42049a83 (patch) | |
tree | d27ca676a85103bcbf77a0d2d79d259f788d6dd2 | |
parent | 5f7694c825131e3f364388e42cda5aeac0f37754 (diff) | |
download | openssl-a909113ed3ab8df5708600aeff36fafa42049a83.tar.gz |
Fix test runs on builds without tls1_3
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23319)
-rw-r--r-- | test/recipes/70-test_sslrecords.t | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/recipes/70-test_sslrecords.t b/test/recipes/70-test_sslrecords.t index a7d13c3abc..8c95d48468 100644 --- a/test/recipes/70-test_sslrecords.t +++ b/test/recipes/70-test_sslrecords.t @@ -41,6 +41,12 @@ my $proxy = TLSProxy::Proxy->new( (!$ENV{HARNESS_ACTIVE} || $ENV{HARNESS_VERBOSE}) ); +# Avoid failures with tls1_3 disabled builds +# TLSProxy defaults to use tls1_3 and tls1_2 is required by the tests so +# set it here and check that a simple proxy works before running the tests +$proxy->serverflags("-tls1_2"); +$proxy->clientflags("-no_tls1_3"); + $proxy->start() or plan skip_all => "Unable to start up Proxy for tests"; plan tests => 42; @@ -79,6 +85,7 @@ sub run_tests SKIP: { skip "Record tests not intended for dtls", 1 if $run_test_as_dtls == 1; #Test 1: Injecting out of context empty records should fail + $proxy->clear(); $content_type = TLSProxy::Record::RT_APPLICATION_DATA; $inject_recs_num = 1; $fatal_alert = 0; |