diff options
author | Lance Stout <lancestout@gmail.com> | 2011-11-11 01:52:18 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-11-11 01:52:18 -0800 |
commit | 9f9e8db8144204b64d099437c9cdcdd9944514bc (patch) | |
tree | 20aeca4ff03fb60612836ba6e165700a88296a76 | |
parent | b8efcc7cf0f4545bd7072b4c495f4d0031c511eb (diff) | |
download | slixmpp-9f9e8db8144204b64d099437c9cdcdd9944514bc.tar.gz slixmpp-9f9e8db8144204b64d099437c9cdcdd9944514bc.tar.bz2 slixmpp-9f9e8db8144204b64d099437c9cdcdd9944514bc.tar.xz slixmpp-9f9e8db8144204b64d099437c9cdcdd9944514bc.zip |
Add use_ssl parameter to ClientXMPP.connect
-rw-r--r-- | sleekxmpp/clientxmpp.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index b7963a42..191f9e91 100644 --- a/sleekxmpp/clientxmpp.py +++ b/sleekxmpp/clientxmpp.py @@ -119,7 +119,8 @@ class ClientXMPP(BaseXMPP): self.register_plugin('feature_mechanisms', pconfig={'use_mech': sasl_mech} if sasl_mech else None) - def connect(self, address=tuple(), reattempt=True, use_tls=True): + def connect(self, address=tuple(), reattempt=True, + use_tls=True, use_ssl=False): """ Connect to the XMPP server. @@ -133,13 +134,16 @@ class ClientXMPP(BaseXMPP): error occurs. Defaults to True. use_tls -- Indicates if TLS should be used for the connection. Defaults to True. + use_ssl -- Indicates if the older SSL connection method + should be used. Defaults to False. """ self.session_started_event.clear() if not address: address = (self.boundjid.host, 5222) return XMLStream.connect(self, address[0], address[1], - use_tls=use_tls, reattempt=reattempt) + use_tls=use_tls, use_ssl=use_ssl, + reattempt=reattempt) def get_dns_records(self, domain, port=None): """ |