From ffb2e05f2157e2888d6c2377556d21b749172386 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 17 Feb 2015 04:27:03 +0100 Subject: Check that ciphers have been initialized (if not, python will use the system default) --- slixmpp/xmlstream/xmlstream.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'slixmpp/xmlstream') diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index f7e166c1..2e109792 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -473,7 +473,8 @@ class XMLStream(asyncio.BaseProtocol): loop = asyncio.get_event_loop() self.event_when_connected = "tls_success" - self.ssl_context.set_ciphers(self.ciphers) + if self.ciphers is not None: + self.ssl_context.set_ciphers(self.ciphers) if self.keyfile and self.certfile: try: self.ssl_context.load_cert_chain(self.certfile, self.keyfile) -- cgit v1.2.3