Module: kamailio
Branch: master
Commit: 41b5e9473d79409712d46fdbb5a0b943ab880aa7
URL:
https://github.com/kamailio/kamailio/commit/41b5e9473d79409712d46fdbb5a0b94…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-30T08:53:47+02:00
tls: declare variable based on SSL_CTX_set_ecdh_auto
- fix unused variable warning introduced in previous commit
---
Modified: src/modules/tls/tls_domain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/41b5e9473d79409712d46fdbb5a0b94…
Patch:
https://github.com/kamailio/kamailio/commit/41b5e9473d79409712d46fdbb5a0b94…
---
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) {