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:28:55 -0400 |
commit | 40fb5a4ce3e90c9e8702aad0fcf43eb9f6edf419 (patch) | |
tree | 4c2dc4d79753704c021c692d01d7b95dfc655918 /test | |
parent | 269c349a7688daae48d95e582e62ff181888c854 (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)
Diffstat (limited to 'test')
-rw-r--r-- | test/sslapitest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/sslapitest.c b/test/sslapitest.c index a490961d80..2ab082e3e0 100644 --- a/test/sslapitest.c +++ b/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(), |