summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/xmlstream.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-06-15 15:29:53 -0700
committerLance Stout <lancestout@gmail.com>2012-06-15 15:29:53 -0700
commita08c2161a7be82b849a5d3aa765a65cf0a6661e7 (patch)
treeacdb3a078e7bf9fdcb6e54bdf6bd52130c02b9d3 /sleekxmpp/xmlstream/xmlstream.py
parent0e36a0135407ea9a274517c7cfd5fe32eda0491f (diff)
downloadslixmpp-a08c2161a7be82b849a5d3aa765a65cf0a6661e7.tar.gz
slixmpp-a08c2161a7be82b849a5d3aa765a65cf0a6661e7.tar.bz2
slixmpp-a08c2161a7be82b849a5d3aa765a65cf0a6661e7.tar.xz
slixmpp-a08c2161a7be82b849a5d3aa765a65cf0a6661e7.zip
Ensure that ssl_invalid_cert returns PEM formatted certifcate data.
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index c0d02e9b..40ae38c9 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -534,7 +534,7 @@ class XMLStream(object):
if not self.event_handled('ssl_invalid_cert'):
self.disconnect(send_close=False)
else:
- self.event('ssl_invalid_cert', cert, direct=True)
+ self.event('ssl_invalid_cert', pem_cert, direct=True)
self.set_socket(self.socket, ignore=True)
#this event is where you should set your application state
@@ -821,7 +821,7 @@ class XMLStream(object):
if not self.event_handled('ssl_invalid_cert'):
self.disconnect(self.auto_reconnect, send_close=False)
else:
- self.event('ssl_invalid_cert', cert, direct=True)
+ self.event('ssl_invalid_cert', pem_cert, direct=True)
self.set_socket(self.socket)
return True