Fix SSL compiler warning
This commit is contained in:
parent
a6a785d7a4
commit
9cb6bfc3a4
@ -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()
|
DH_free(dh); // ok to free, copied into ctx by SSL_CTX_set_tmp_dh()
|
||||||
|
|
||||||
#if defined(SSL_CTX_set_ecdh_auto)
|
#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
|
#endif
|
||||||
|
|
||||||
if (g_strlen(tls_ciphers) > 1)
|
if (g_strlen(tls_ciphers) > 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user