Skip to content

Commit

Permalink
Expose SSL_OP_LEGACY_SERVER_CONNECT binding (#1234)
Browse files Browse the repository at this point in the history
* Expose `SSL_OP_LEGACY_SERVER_CONNECT` binding

based on pyca/cryptography#9303

refs mitmproxy/mitmproxy#6281

* Update CHANGELOG.rst
  • Loading branch information
mhils committed Jul 29, 2023
1 parent a81306e commit b259bfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Backward-incompatible changes:
- Dropped support for Python 3.6.
- The minimum ``cryptography`` version is now 41.0.0.
- Removed ``OpenSSL.crypto.loads_pkcs7`` and ``OpenSSL.crypto.loads_pkcs12`` which had been deprecated for 3 years.
- Added ``OpenSSL.SSL.OP_LEGACY_SERVER_CONNECT`` to allow legacy insecure renegotiation between OpenSSL and unpatched servers.
`#1234 <https://github.com/pyca/pyopenssl/pull/1234>`_.

Deprecations:
^^^^^^^^^^^^^
Expand Down
6 changes: 6 additions & 0 deletions src/OpenSSL/SSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@
except AttributeError:
pass

try:
OP_LEGACY_SERVER_CONNECT = _lib.SSL_OP_LEGACY_SERVER_CONNECT
__all__.append("OP_LEGACY_SERVER_CONNECT")
except AttributeError:
pass

OP_ALL = _lib.SSL_OP_ALL

VERIFY_PEER = _lib.SSL_VERIFY_PEER
Expand Down

0 comments on commit b259bfb

Please sign in to comment.