diff options
author | Frederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk> | 2024-01-31 09:16:47 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2024-02-09 08:16:56 +0000 |
commit | eb62ca5fb06295f7bc7b5e2b38cfdb9769f87e21 (patch) | |
tree | 54074e76a2fdf3e2c1c1d7f671487a05073436eb /test/recipes | |
parent | fe3029a14ff2d4898c23db7abd82388358e3bdeb (diff) | |
download | openssl-eb62ca5fb06295f7bc7b5e2b38cfdb9769f87e21.tar.gz |
Adds some version guards for dummy proxy.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23319)
Diffstat (limited to 'test/recipes')
-rw-r--r-- | test/recipes/70-test_sslrecords.t | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/recipes/70-test_sslrecords.t b/test/recipes/70-test_sslrecords.t index f3cbe09a44..b92e7cbcd9 100644 --- a/test/recipes/70-test_sslrecords.t +++ b/test/recipes/70-test_sslrecords.t @@ -26,6 +26,9 @@ plan skip_all => "$test_name needs the dynamic engine feature enabled" plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); +plan skip_all => "$test_name needs TLS1.2 or TLS1.3 for running dummyproxy check" + if disabled("tls1_3") && disabled("tls1_2"); + my $testplanisset = 0; my $inject_recs_num = undef; my $content_type = undef; @@ -46,9 +49,10 @@ my $dummyproxy = TLSProxy::Proxy->new( # 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 -$dummyproxy->serverflags("-tls1_2"); -$dummyproxy->clientflags("-no_tls1_3"); - +if (disabled("tls1_3")) { + $dummyproxy->serverflags("-tls1_2"); + $dummyproxy->clientflags("-no_tls1_3"); +} $dummyproxy->start() or plan skip_all => "Unable to start up Proxy for tests"; plan tests => 42; |