diff options
author | mathieui <mathieui@mathieui.net> | 2014-10-30 19:51:00 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-10-30 19:51:00 +0100 |
commit | 6da625dbdbbcb378109568ff841cb73c5324cf0d (patch) | |
tree | 33e765370a6890b7820ca60717e9c7d9f42ce099 | |
parent | e862c47b8b9d5de2552c55f3f84704eb260f91c5 (diff) | |
download | slixmpp-6da625dbdbbcb378109568ff841cb73c5324cf0d.tar.gz slixmpp-6da625dbdbbcb378109568ff841cb73c5324cf0d.tar.bz2 slixmpp-6da625dbdbbcb378109568ff841cb73c5324cf0d.tar.xz slixmpp-6da625dbdbbcb378109568ff841cb73c5324cf0d.zip |
Make the "ciphers" option work again
-rw-r--r-- | slixmpp/xmlstream/xmlstream.py | 12 |
1 files changed, 11 insertions, 1 deletions
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 + |