We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df11ce6 commit 564ace8Copy full SHA for 564ace8
Modules/_ssl.c
@@ -2418,12 +2418,12 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version)
2418
#endif
2419
2420
2421
-#ifndef OPENSSL_NO_ECDH
+#if !defined(OPENSSL_NO_ECDH) && !defined(OPENSSL_VERSION_1_1)
2422
/* Allow automatic ECDH curve selection (on OpenSSL 1.0.2+), or use
2423
prime256v1 by default. This is Apache mod_ssl's initialization
2424
policy, so we should be safe. OpenSSL 1.1 has it enabled by default.
2425
*/
2426
-#if defined(SSL_CTX_set_ecdh_auto) && !defined(OPENSSL_VERSION_1_1)
+#if defined(SSL_CTX_set_ecdh_auto)
2427
SSL_CTX_set_ecdh_auto(self->ctx, 1);
2428
#else
2429
{
0 commit comments