diff options
author | Todd Short <todd.short@me.com> | 2022-04-01 10:54:45 -0400 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2022-04-11 10:51:55 -0400 |
commit | 2773e758fa55bb765a628fcdfbcd2b4018476130 (patch) | |
tree | ba901f3200bca7628300b46d408e90dad0b72d50 | |
parent | d52611bc4707f47a0adeaace7192190d98595275 (diff) |
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)
(cherry picked from commit 40fb5a4ce3e90c9e8702aad0fcf43eb9f6edf419)
-rw-r--r-- | .github/workflows/run-checker-ci.yml | 1 | ||||
-rw-r--r-- | test/sslapitest.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/run-checker-ci.yml b/.github/workflows/run-checker-ci.yml index 1aca0170f8..33ec553a88 100644 --- a/.github/workflows/run-checker-ci.yml +++ b/.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, diff --git a/test/sslapitest.c b/test/sslapitest.c index 937dcf1c17..8a9393d123 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -9401,7 +9401,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(), |