From: Frederik Wedel-Heinen Date: Tue, 30 Jan 2024 13:29:53 +0000 (+0100) Subject: Fix test runs on builds without tls1_3 X-Git-Tag: openssl-3.3.0-alpha1~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a909113ed3ab8df5708600aeff36fafa42049a83;p=thirdparty%2Fopenssl.git Fix test runs on builds without tls1_3 Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/23319) --- diff --git a/test/recipes/70-test_sslrecords.t b/test/recipes/70-test_sslrecords.t index a7d13c3abc8..8c95d48468d 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;