Ensure that ssl_invalid_cert returns PEM formatted certifcate data.
This commit is contained in:
parent
0e36a01354
commit
a08c2161a7
1 changed files with 2 additions and 2 deletions
|
@ -534,7 +534,7 @@ class XMLStream(object):
|
||||||
if not self.event_handled('ssl_invalid_cert'):
|
if not self.event_handled('ssl_invalid_cert'):
|
||||||
self.disconnect(send_close=False)
|
self.disconnect(send_close=False)
|
||||||
else:
|
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)
|
self.set_socket(self.socket, ignore=True)
|
||||||
#this event is where you should set your application state
|
#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'):
|
if not self.event_handled('ssl_invalid_cert'):
|
||||||
self.disconnect(self.auto_reconnect, send_close=False)
|
self.disconnect(self.auto_reconnect, send_close=False)
|
||||||
else:
|
else:
|
||||||
self.event('ssl_invalid_cert', cert, direct=True)
|
self.event('ssl_invalid_cert', pem_cert, direct=True)
|
||||||
|
|
||||||
self.set_socket(self.socket)
|
self.set_socket(self.socket)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue