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 7c85755 commit bf539cfCopy full SHA for bf539cf
onvif/util.py
@@ -101,4 +101,6 @@ def create_no_verify_ssl_context() -> ssl.SSLContext:
101
# This only works for OpenSSL >= 1.0.0
102
sslcontext.options |= ssl.OP_NO_COMPRESSION
103
sslcontext.set_default_verify_paths()
104
+ # ssl.OP_LEGACY_SERVER_CONNECT is only available in Python 3.12a4+
105
+ sslcontext.options |= getattr(ssl, "OP_LEGACY_SERVER_CONNECT", 0x4)
106
return sslcontext
0 commit comments