summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-02-28 20:32:33 +0100
committermathieui <mathieui@mathieui.net>2015-02-28 20:32:33 +0100
commit8da269de88b43f1e8464a6bce83b1fca65d406bb (patch)
tree6a86c7fd871eb15d5afcfcdea72e8df3a2b1c9d7
parent93ce318259c24c877a39c3b7928bf6b1b21e4554 (diff)
downloadslixmpp-8da269de88b43f1e8464a6bce83b1fca65d406bb.tar.gz
slixmpp-8da269de88b43f1e8464a6bce83b1fca65d406bb.tar.bz2
slixmpp-8da269de88b43f1e8464a6bce83b1fca65d406bb.tar.xz
slixmpp-8da269de88b43f1e8464a6bce83b1fca65d406bb.zip
Set XMLStream.socket after the SSL connection is made too
Fixes SCRAM-SHA-1-PLUS.
-rw-r--r--slixmpp/xmlstream/xmlstream.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py
index aec89c7f..2b165060 100644
--- a/slixmpp/xmlstream/xmlstream.py
+++ b/slixmpp/xmlstream/xmlstream.py
@@ -504,6 +504,7 @@ class XMLStream(asyncio.BaseProtocol):
der_cert = transp.get_extra_info("socket").getpeercert(True)
pem_cert = ssl.DER_cert_to_PEM_cert(der_cert)
self.event('ssl_cert', pem_cert)
+ self.socket = self.transport.get_extra_info("socket")
asyncio.async(ssl_coro())