From 8217dc5239f7a649702c498b7b8a18263b813339 Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Fri, 30 Sep 2016 13:49:04 -0500 Subject: Minor documentation fixes --- slixmpp/clientxmpp.py | 7 +++++-- slixmpp/xmlstream/xmlstream.py | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/slixmpp/clientxmpp.py b/slixmpp/clientxmpp.py index 0971e304..a4bb9a60 100644 --- a/slixmpp/clientxmpp.py +++ b/slixmpp/clientxmpp.py @@ -141,8 +141,11 @@ class ClientXMPP(BaseXMPP): will be used. :param address: A tuple containing the server's host and port. - :param use_tls: Indicates if TLS should be used for the - connection. Defaults to ``True``. + :param force_starttls: Indicates that negotiation should be aborted + if the server does not advertise support for + STARTTLS. Defaults to ``True``. + :param disable_starttls: Disables TLS for the connection. + Defaults to ``False``. :param use_ssl: Indicates if the older SSL connection method should be used. Defaults to ``False``. """ diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index bd6c4e6f..686dfde8 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -256,9 +256,9 @@ class XMLStream(asyncio.BaseProtocol): TODO fix the comment :param force_starttls: If True, the connection will be aborted if the server does not initiate a STARTTLS - negociation. If None, the connection will be + negotiation. If None, the connection will be upgraded to TLS only if the server initiate - the STARTTLS negociation, otherwise it will + the STARTTLS negotiation, otherwise it will connect in clear. If False it will never upgrade to TLS, even if the server provides it. Use this for example if you’re on -- cgit v1.2.3