test: conditionally exclude unused code for no-tls1.2 build
authorPauli <pauli@openssl.org>
Mon, 17 May 2021 00:08:13 +0000 (10:08 +1000)
committerPauli <pauli@openssl.org>
Tue, 18 May 2021 02:12:26 +0000 (12:12 +1000)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15301)

test/sslapitest.c

index 21220d5834d5480d6239cdad07152bb279491e10..0a7295c5cb1003a76c100f66e99154828b53bd28 100644 (file)
@@ -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)
 {