Module: kamailio
Branch: 5.5
Commit: 52c7d2f4d6704c7ea232808110fc09c17c90c4db
URL:
https://github.com/kamailio/kamailio/commit/52c7d2f4d6704c7ea232808110fc09c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-03T09:44:00+02:00
tls: declare variable based on SSL_CTX_set_ecdh_auto
- fix unused variable warning introduced in previous commit
(cherry picked from commit 41b5e9473d79409712d46fdbb5a0b943ab880aa7)
---
Modified: src/modules/tls/tls_domain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/52c7d2f4d6704c7ea232808110fc09c…
Patch:
https://github.com/kamailio/kamailio/commit/52c7d2f4d6704c7ea232808110fc09c…
---
diff --git a/src/modules/tls/tls_domain.c b/src/modules/tls/tls_domain.c
index c2231b0db0..b5160ec833 100644
--- a/src/modules/tls/tls_domain.c
+++ b/src/modules/tls/tls_domain.c
@@ -65,7 +65,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 OPENSSL_VERSION_NUMBER < 0x010100000L
if (SSLeay() < 0x1000005fL) {