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 c643a96 commit 8ae264cCopy full SHA for 8ae264c
Modules/_ssl.c
@@ -2728,12 +2728,12 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version)
2728
#endif
2729
2730
2731
-#ifndef OPENSSL_NO_ECDH
+#if !defined(OPENSSL_NO_ECDH) && !defined(OPENSSL_VERSION_1_1)
2732
/* Allow automatic ECDH curve selection (on OpenSSL 1.0.2+), or use
2733
prime256v1 by default. This is Apache mod_ssl's initialization
2734
policy, so we should be safe. OpenSSL 1.1 has it enabled by default.
2735
*/
2736
-#if defined(SSL_CTX_set_ecdh_auto) && !defined(OPENSSL_VERSION_1_1)
+#if defined(SSL_CTX_set_ecdh_auto)
2737
SSL_CTX_set_ecdh_auto(self->ctx, 1);
2738
#else
2739
{
0 commit comments