Skip to content

Commit 30792ed

Browse files
authored
Expose SSL_OP_LEGACY_SERVER_CONNECT binding
based on pyca/cryptography#9303 refs mitmproxy/mitmproxy#6281
1 parent a81306e commit 30792ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/OpenSSL/SSL.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@
217217
except AttributeError:
218218
pass
219219

220+
try:
221+
OP_LEGACY_SERVER_CONNECT = _lib.SSL_OP_LEGACY_SERVER_CONNECT
222+
__all__.append("OP_LEGACY_SERVER_CONNECT")
223+
except AttributeError:
224+
pass
225+
220226
OP_ALL = _lib.SSL_OP_ALL
221227

222228
VERIFY_PEER = _lib.SSL_VERIFY_PEER

0 commit comments

Comments
 (0)