[dwd] re-enable TLS. Fixes #4674

This commit is contained in:
Yann Leboulanger 2009-01-17 12:43:13 +00:00
parent 03aa7de56c
commit 48d4199237
1 changed files with 2 additions and 1 deletions

View File

@ -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)