Skip to content
Snippets Groups Projects
Commit 7b0c54a6 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix connection to openfire server using TLS. Fixes #5530

parent 4287d266
No related branches found
No related tags found
No related merge requests found
......@@ -351,6 +351,8 @@ class NonBlockingTLS(PlugIn):
tcpsock = self._owner
# See http://docs.python.org/dev/library/ssl.html
tcpsock._sslContext = OpenSSL.SSL.Context(OpenSSL.SSL.SSLv23_METHOD)
tcpsock._sslContext.set_options(OpenSSL.SSL.OP_NO_SSLv2 | \
OpenSSL.SSL.OP_NO_TICKET)
tcpsock.ssl_errnum = 0
tcpsock._sslContext.set_verify(OpenSSL.SSL.VERIFY_PEER,
self._ssl_verify_callback)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment