summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2021-11-04 06:45:09 +0800
committerGitHub <noreply@github.com>2021-11-03 18:45:09 -0400
commitc8fe4dd5e91b00a5817db283c6198ef7031da825 (patch)
tree3a9e1e8c877e5f6c4f2c9bd5e5f2b32e9928ed9c
parentf26bf21dde43fc7ab235b5deb15c6e2bb8fde83a (diff)
downloadpyopenssl-c8fe4dd5e91b00a5817db283c6198ef7031da825.tar.gz
remove SSL_CTX_set_ecdh_auto call (#1059)
They are a noop on 1.1.0+ and pyOpenSSL only supports 1.1.0+ now due to cryptography versions
-rw-r--r--src/OpenSSL/SSL.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py
index 7fd9ea4..d4173f9 100644
--- a/src/OpenSSL/SSL.py
+++ b/src/OpenSSL/SSL.py
@@ -724,12 +724,6 @@ class Context(object):
_openssl_assert(context != _ffi.NULL)
context = _ffi.gc(context, _lib.SSL_CTX_free)
- # Set SSL_CTX_set_ecdh_auto so that the ECDH curve will be
- # auto-selected. This function was added in 1.0.2 and made a noop in
- # 1.1.0+ (where it is set automatically).
- res = _lib.SSL_CTX_set_ecdh_auto(context, 1)
- _openssl_assert(res == 1)
-
self._context = context
self._passphrase_helper = None
self._passphrase_callback = None