summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream/xmlstream.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/xmlstream/xmlstream.py')
-rw-r--r--slixmpp/xmlstream/xmlstream.py12
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
+