Module: kamailio
Branch: 5.4
Commit: 078c6f861fc52c28546dae5ce335002e5d5df99f
URL:
https://github.com/kamailio/kamailio/commit/078c6f861fc52c28546dae5ce335002…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-26T08:26:26+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)
(cherry picked from commit 52c7d2f4d6704c7ea232808110fc09c17c90c4db)
---
Modified: src/modules/tls/tls_domain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/078c6f861fc52c28546dae5ce335002…
Patch:
https://github.com/kamailio/kamailio/commit/078c6f861fc52c28546dae5ce335002…
---
diff --git a/src/modules/tls/tls_domain.c b/src/modules/tls/tls_domain.c
index 22897075c7..7ad847d2e4 100644
--- a/src/modules/tls/tls_domain.c
+++ b/src/modules/tls/tls_domain.c
@@ -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;