Commit 8520077a authored by François Grisez's avatar François Grisez

Fix build on Debian < 9

parent f3887afc
......@@ -580,7 +580,9 @@ int tls_init_context(tls_t *tls, tls_issues_t const *ti)
SSL_CTX_set_verify_depth(tls->ctx, ti->verify_depth);
SSL_CTX_set_verify(tls->ctx, verify, tls_verify_cb);
#if OPENSSL_VERSION_NUMBER >= 0x1000200fL // OPENSSL_VERSION_NUMBER >= 1.0.2
SSL_CTX_set_ecdh_auto(tls->ctx, 1);
#endif
if (!SSL_CTX_set_cipher_list(tls->ctx, ti->ciphers)) {
SU_DEBUG_1(("%s: error setting cipher list\n", "tls_init_context"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment