Browse code

tls: declare variable based on SSL_CTX_set_ecdh_auto

- fix unused variable warning introduced in previous commit

(cherry picked from commit 41b5e9473d79409712d46fdbb5a0b943ab880aa7)
(cherry picked from commit 52c7d2f4d6704c7ea232808110fc09c17c90c4db)
(cherry picked from commit 078c6f861fc52c28546dae5ce335002e5d5df99f)

Daniel-Constantin Mierla authored on 30/04/2021 06:53:47 • Henning Westerholt committed on 22/10/2021 11:54:34
Showing 1 changed files
... ...
@@ -62,7 +62,9 @@ extern EVP_PKEY * tls_engine_private_key(const char* key_id);
62 62
 #if !defined(OPENSSL_NO_ECDH) && !defined(OPENSSL_VERSION_1_1)
63 63
 static void setup_ecdh(SSL_CTX *ctx)
64 64
 {
65
+#if !defined(SSL_CTX_set_ecdh_auto)
65 66
    EC_KEY *ecdh;
67
+#endif
66 68
 
67 69
    if (SSLeay() < 0x1000005fL) {
68 70
       return;