Browse code

tls: declare variable based on SSL_CTX_set_ecdh_auto

- fix unused variable warning introduced in previous commit

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