Remove the ssl_version option, as the defaults in python3.4 are sane
This commit is contained in:
parent
4a8fe56470
commit
e862c47b8b
1 changed files with 0 additions and 7 deletions
|
@ -103,13 +103,6 @@ class XMLStream(object):
|
||||||
self.ssl_context = ssl.create_default_context()
|
self.ssl_context = ssl.create_default_context()
|
||||||
self.ssl_context.check_hostname = False
|
self.ssl_context.check_hostname = False
|
||||||
self.ssl_context.verify_mode = ssl.CERT_NONE
|
self.ssl_context.verify_mode = ssl.CERT_NONE
|
||||||
#: Most XMPP servers support TLSv1, but OpenFire in particular
|
|
||||||
#: does not work well with it. For OpenFire, set
|
|
||||||
#: :attr:`ssl_version` to use ``SSLv23``::
|
|
||||||
#:
|
|
||||||
#: import ssl
|
|
||||||
#: xmpp.ssl_version = ssl.PROTOCOL_SSLv23
|
|
||||||
self.ssl_version = ssl.PROTOCOL_TLSv1
|
|
||||||
|
|
||||||
# The event to trigger when the create_connection() succeeds. It can
|
# The event to trigger when the create_connection() succeeds. It can
|
||||||
# be "connected" or "tls_success" depending on the step we are at.
|
# be "connected" or "tls_success" depending on the step we are at.
|
||||||
|
|
Loading…
Reference in a new issue