From: Todd Short Date: Fri, 1 Apr 2022 14:54:45 +0000 (-0400) Subject: Fix -no-tls1_2 in tests X-Git-Tag: OpenSSL_1_1_1o~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1d3ecd7adf9f17ba20b061106088d13f8b77c03;p=thirdparty%2Fopenssl.git 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) --- 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(),