From 40fb5a4ce3e90c9e8702aad0fcf43eb9f6edf419 Mon Sep 17 00:00:00 2001 From: Todd Short Date: Fri, 1 Apr 2022 10:54:45 -0400 Subject: [PATCH] Fix -no-tls1_2 in tests Reviewed-by: Tomas Mraz Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/18019) --- .github/workflows/run-checker-ci.yml | 1 + test/sslapitest.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/run-checker-ci.yml b/.github/workflows/run-checker-ci.yml index 1aca0170f8..33ec553a88 100644 --- a/.github/workflows/run-checker-ci.yml +++ b/.github/workflows/run-checker-ci.yml @@ -28,6 +28,7 @@ jobs: no-tests, no-threads, no-tls, + no-tls1_2, no-tls1_3, enable-trace enable-fips, no-ts, diff --git a/test/sslapitest.c b/test/sslapitest.c index a490961d80..2ab082e3e0 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -9427,7 +9427,11 @@ static int test_ticket_lifetime(int idx) #define TWO_WEEK_SEC (2 * ONE_WEEK_SEC) if (idx == 0) { +#ifdef OPENSSL_NO_TLS1_2 + return TEST_skip("TLS 1.2 is disabled."); +#else version = TLS1_2_VERSION; +#endif } if (!TEST_true(create_ssl_ctx_pair(libctx, TLS_server_method(), -- 2.34.1