Fix -no-tls1_2 in tests

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/18019)
This commit is contained in:
Todd Short 2022-04-01 10:54:45 -04:00
parent 269c349a76
commit 40fb5a4ce3
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@ jobs:
no-tests,
no-threads,
no-tls,
no-tls1_2,
no-tls1_3,
enable-trace enable-fips,
no-ts,

View File

@ -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(),