Skip to content

Commit

Permalink
tls: declare variable based on SSL_CTX_set_ecdh_auto
Browse files Browse the repository at this point in the history
- fix unused variable warning introduced in previous commit

(cherry picked from commit 41b5e94)
(cherry picked from commit 52c7d2f)
  • Loading branch information
miconda committed May 26, 2021
1 parent cd8a871 commit 078c6f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/tls/tls_domain.c
Expand Up @@ -63,7 +63,9 @@ extern EVP_PKEY * tls_engine_private_key(const char* key_id);
#if !defined(OPENSSL_NO_ECDH) && !defined(OPENSSL_VERSION_1_1)
static void setup_ecdh(SSL_CTX *ctx)
{
#if !defined(SSL_CTX_set_ecdh_auto)
EC_KEY *ecdh;
#endif

if (SSLeay() < 0x1000005fL) {
return;
Expand Down

0 comments on commit 078c6f8

Please sign in to comment.