Skip to content

Commit

Permalink
Remove OpenSSL 1.1 test cases that were still run for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 19, 2024
1 parent 213850c commit 56c6ea8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/tls.d
Original file line number Diff line number Diff line change
Expand Up @@ -255,27 +255,18 @@ void testConn(TLSVersion cli_version, TLSVersion srv_version, bool expect_succes

void testVersion()
{
// NOTE: SSLv3 is not supported anymore by current OpenSSL versions
// NOTE: Ubuntu 20.04 has removed support for TLSv1/TLSv1.1 from OpenSSL
version (linux) enum support_old_tls = false;
else enum support_old_tls = true;

testConn(TLSVersion.ssl3, TLSVersion.any, false);
testConn(TLSVersion.ssl3, TLSVersion.ssl3, false);
testConn(TLSVersion.ssl3, TLSVersion.tls1, false);
testConn(TLSVersion.ssl3, TLSVersion.tls1_1, false);
testConn(TLSVersion.ssl3, TLSVersion.tls1_2, false);

if (support_old_tls) testConn(TLSVersion.tls1, TLSVersion.any, true);
testConn(TLSVersion.tls1, TLSVersion.ssl3, false);
if (support_old_tls) testConn(TLSVersion.tls1, TLSVersion.tls1, true);
testConn(TLSVersion.tls1, TLSVersion.tls1_1, false);
testConn(TLSVersion.tls1, TLSVersion.tls1_2, false);

if (support_old_tls) testConn(TLSVersion.tls1_1, TLSVersion.any, true);
testConn(TLSVersion.tls1_1, TLSVersion.ssl3, false);
testConn(TLSVersion.tls1_1, TLSVersion.tls1, false);
if (support_old_tls) testConn(TLSVersion.tls1_1, TLSVersion.tls1_1, true);
testConn(TLSVersion.tls1_1, TLSVersion.tls1_2, false);

testConn(TLSVersion.tls1_2, TLSVersion.any, true);
Expand All @@ -286,8 +277,6 @@ void testVersion()

testConn(TLSVersion.any, TLSVersion.any, true);
testConn(TLSVersion.any, TLSVersion.ssl3, false);
if (support_old_tls) testConn(TLSVersion.any, TLSVersion.tls1, true);
if (support_old_tls) testConn(TLSVersion.any, TLSVersion.tls1_1, true);
testConn(TLSVersion.any, TLSVersion.tls1_2, true);
}

Expand Down

0 comments on commit 56c6ea8

Please sign in to comment.