From 9cb6bfc3a4c21850bf3473fbdc7ee512c3412b2d Mon Sep 17 00:00:00 2001 From: Alexandre Quesnel <131881+aquesnel@users.noreply.github.com> Date: Tue, 17 Nov 2020 04:01:19 +0000 Subject: [PATCH] Fix SSL compiler warning --- common/ssl_calls.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/ssl_calls.c b/common/ssl_calls.c index d1003b8a..f86dc063 100644 --- a/common/ssl_calls.c +++ b/common/ssl_calls.c @@ -720,7 +720,10 @@ ssl_tls_accept(struct ssl_tls *self, long ssl_protocols, DH_free(dh); // ok to free, copied into ctx by SSL_CTX_set_tmp_dh() #if defined(SSL_CTX_set_ecdh_auto) - SSL_CTX_set_ecdh_auto(self->ctx, 1); + if(!SSL_CTX_set_ecdh_auto(self->ctx, 1)) + { + LOG(LOG_LEVEL_WARNING, "TLS ecdh auto failed to be enabled"); + } #endif if (g_strlen(tls_ciphers) > 1)