Browse Source

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)
Todd Short 2 years ago
parent
commit
40fb5a4ce3
2 changed files with 5 additions and 0 deletions
  1. 1 0
      .github/workflows/run-checker-ci.yml
  2. 4 0
      test/sslapitest.c

+ 1 - 0
.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,

+ 4 - 0
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(),