From 6da625dbdbbcb378109568ff841cb73c5324cf0d Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 30 Oct 2014 19:51:00 +0100 Subject: Make the "ciphers" option work again --- slixmpp/xmlstream/xmlstream.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index aa0e80fd..16e1aa22 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -111,7 +111,7 @@ class XMLStream(object): #: The list of accepted ciphers, in OpenSSL Format. #: It might be useful to override it for improved security #: over the python defaults. - self.ciphers = None + self._ciphers = None #: Path to a file containing certificates for verifying the #: server SSL certificate. A non-``None`` value will trigger @@ -871,3 +871,13 @@ class XMLStream(object): :param exception: An unhandled exception object. """ pass + + @property + def ciphers(self): + return self._ciphers + + @ciphers.setter + def ciphers(self, value): + self.ssl_context.set_ciphers(value) + self._ciphers = value + -- cgit v1.2.3