Skip to content

Commit c8fe4dd

Browse files
authored
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
1 parent f26bf21 commit c8fe4dd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/OpenSSL/SSL.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -724,12 +724,6 @@ def __init__(self, method):
724724
_openssl_assert(context != _ffi.NULL)
725725
context = _ffi.gc(context, _lib.SSL_CTX_free)
726726

727-
# Set SSL_CTX_set_ecdh_auto so that the ECDH curve will be
728-
# auto-selected. This function was added in 1.0.2 and made a noop in
729-
# 1.1.0+ (where it is set automatically).
730-
res = _lib.SSL_CTX_set_ecdh_auto(context, 1)
731-
_openssl_assert(res == 1)
732-
733727
self._context = context
734728
self._passphrase_helper = None
735729
self._passphrase_callback = None

0 commit comments

Comments
 (0)