From a1d3ecd7adf9f17ba20b061106088d13f8b77c03 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 This is specific for OpenSSL_1_1_1-stable branch Reviewed-by: Tomas Mraz Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/18080) --- .github/workflows/run-checker-ci.yml | 1 + test/sslapitest.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/run-checker-ci.yml b/.github/workflows/run-checker-ci.yml index a999492207b..ec208578ab8 100644 --- a/.github/workflows/run-checker-ci.yml +++ b/.github/workflows/run-checker-ci.yml @@ -20,6 +20,7 @@ jobs: no-tests, no-threads, no-tls, + no-tls1_2, no-tls1_3, no-ts, no-ui, diff --git a/test/sslapitest.c b/test/sslapitest.c index a322f21d335..ee6940cf1ec 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -6751,7 +6751,12 @@ static int test_ticket_lifetime(int idx) #define TWO_WEEK_SEC (2 * ONE_WEEK_SEC) if (idx == 0) { +#ifdef OPENSSL_NO_TLS1_2 + TEST_info("Skipping: TLS 1.2 is disabled."); + return 1; +#else version = TLS1_2_VERSION; +#endif } if (!TEST_true(create_ssl_ctx_pair(TLS_server_method(), -- 2.47.2