diff options
author | Lance Stout <lancestout@gmail.com> | 2012-05-22 03:56:06 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-05-22 03:56:06 -0700 |
commit | f49311ef9ee76c2e4cce402e377867eff308aca0 (patch) | |
tree | 50bb75037f13552d1c77ea23c1f46dcb69e7a3bf /sleekxmpp/basexmpp.py | |
parent | 678e529efc0e6fff65133de6769a5596034d90c6 (diff) | |
download | slixmpp-f49311ef9ee76c2e4cce402e377867eff308aca0.tar.gz slixmpp-f49311ef9ee76c2e4cce402e377867eff308aca0.tar.bz2 slixmpp-f49311ef9ee76c2e4cce402e377867eff308aca0.tar.xz slixmpp-f49311ef9ee76c2e4cce402e377867eff308aca0.zip |
Add better certificate handling.
Certificate host names are now matched (using DNS, SRV, XMPPAddr, and
Common Name), along with expiration check.
Scheduled event to reset the stream once the server's cert expires.
Handle invalid cert trust chains gracefully now.
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r-- | sleekxmpp/basexmpp.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index 1c835460..63e3339c 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -68,6 +68,7 @@ class BaseXMPP(XMLStream): #: The JabberID (JID) used by this connection. self.boundjid = JID(jid) + self._expected_server_name = self.boundjid.host #: A dictionary mapping plugin names to plugins. self.plugin = PluginManager(self) |