[dwd] re-enable TLS. Fixes #4674
This commit is contained in:
parent
03aa7de56c
commit
48d4199237
|
@ -329,7 +329,8 @@ class NonBlockingTLS(PlugIn):
|
||||||
log.debug("_startSSL_pyOpenSSL called")
|
log.debug("_startSSL_pyOpenSSL called")
|
||||||
tcpsock = self._owner
|
tcpsock = self._owner
|
||||||
# See http://docs.python.org/dev/library/ssl.html
|
# See http://docs.python.org/dev/library/ssl.html
|
||||||
tcpsock._sslContext = OpenSSL.SSL.Context(OpenSSL.SSL.SSLv3_METHOD)
|
tcpsock._sslContext = OpenSSL.SSL.Context(OpenSSL.SSL.SSLv23_METHOD)
|
||||||
|
tcpsock._sslContext.set_options(OpenSSL.SSL.OP_NO_SSLv2)
|
||||||
tcpsock.ssl_errnum = 0
|
tcpsock.ssl_errnum = 0
|
||||||
tcpsock._sslContext.set_verify(OpenSSL.SSL.VERIFY_PEER,
|
tcpsock._sslContext.set_verify(OpenSSL.SSL.VERIFY_PEER,
|
||||||
self._ssl_verify_callback)
|
self._ssl_verify_callback)
|
||||||
|
|
Loading…
Reference in New Issue