Fix -no-tls1_2 in tests
authorTodd Short <todd.short@me.com>
Fri, 1 Apr 2022 14:54:45 +0000 (10:54 -0400)
committerTodd Short <todd.short@me.com>
Mon, 11 Apr 2022 14:28:55 +0000 (10:28 -0400)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/18019)

.github/workflows/run-checker-ci.yml
test/sslapitest.c

index 1aca0170f83eb7251e6333b39c0a8a44f6f51cf6..33ec553a8864607273ace14f190f8876714767c0 100644 (file)
@@ -28,6 +28,7 @@ jobs:
           no-tests,
           no-threads,
           no-tls,
+          no-tls1_2,
           no-tls1_3,
           enable-trace enable-fips,
           no-ts,
index a490961d80e756819e4fc6fb19e138fe687ab81f..2ab082e3e0b3be1363fa64d3d554eee8d20e0bef 100644 (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(),