diff options
author | mathieui <mathieui@mathieui.net> | 2015-02-28 20:32:33 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-02-28 20:32:33 +0100 |
commit | 8da269de88b43f1e8464a6bce83b1fca65d406bb (patch) | |
tree | 6a86c7fd871eb15d5afcfcdea72e8df3a2b1c9d7 | |
parent | 93ce318259c24c877a39c3b7928bf6b1b21e4554 (diff) | |
download | slixmpp-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.py | 1 |
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()) |