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