From c9cddf05424c3292956123e7fa4c16cb80867b3f Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 17 May 2021 10:08:13 +1000 Subject: [PATCH] test: conditionally exclude unused code for no-tls1.2 build Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/15301) --- test/sslapitest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/sslapitest.c b/test/sslapitest.c index 21220d5834d..0a7295c5cb1 100644 --- a/test/sslapitest.c +++ b/test/sslapitest.c @@ -4649,7 +4649,9 @@ static int test_key_exchange(int idx) return testresult; } -# if !defined(OPENSSL_NO_EC) && !defined(OPENSSL_NO_DH) +# if !defined(OPENSSL_NO_TLS1_2) \ + && !defined(OPENSSL_NO_EC) \ + && !defined(OPENSSL_NO_DH) static int set_ssl_groups(SSL *serverssl, SSL *clientssl, int clientmulti, int isecdhe, int idx) { -- 2.47.3