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)

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