summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-09-17 16:37:52 -0700
committerLance Stout <lancestout@gmail.com>2013-09-17 16:37:52 -0700
commitb8b2f37e7b06647a48dfcb41c44c10121b04c514 (patch)
tree8c85414e898e73c711d71925f8696dfcf56c6c6a
parent00152358deb824b03830f5d2d03d5588c08db71e (diff)
downloadslixmpp-b8b2f37e7b06647a48dfcb41c44c10121b04c514.tar.gz
slixmpp-b8b2f37e7b06647a48dfcb41c44c10121b04c514.tar.bz2
slixmpp-b8b2f37e7b06647a48dfcb41c44c10121b04c514.tar.xz
slixmpp-b8b2f37e7b06647a48dfcb41c44c10121b04c514.zip
Make the ssl version log usable
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 8242a127..c503cdd2 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -819,7 +819,8 @@ class XMLStream(object):
to be restarted.
"""
log.info("Negotiating TLS")
- log.info("Using SSL version: %s", str(self.ssl_version))
+ ssl_versions = {3: 'TLS 1.0', 1: 'SSL 3', 2: 'SSL 2/3'}
+ log.info("Using SSL version: %s", ssl_versions[self.ssl_version])
if self.ca_certs is None:
cert_policy = ssl.CERT_NONE
else: