Make the "ciphers" option work again

This commit is contained in:
mathieui 2014-10-30 19:51:00 +01:00
parent e862c47b8b
commit 6da625dbdb

View file

@ -111,7 +111,7 @@ class XMLStream(object):
#: The list of accepted ciphers, in OpenSSL Format. #: The list of accepted ciphers, in OpenSSL Format.
#: It might be useful to override it for improved security #: It might be useful to override it for improved security
#: over the python defaults. #: over the python defaults.
self.ciphers = None self._ciphers = None
#: Path to a file containing certificates for verifying the #: Path to a file containing certificates for verifying the
#: server SSL certificate. A non-``None`` value will trigger #: server SSL certificate. A non-``None`` value will trigger
@ -871,3 +871,13 @@ class XMLStream(object):
:param exception: An unhandled exception object. :param exception: An unhandled exception object.
""" """
pass pass
@property
def ciphers(self):
return self._ciphers
@ciphers.setter
def ciphers(self, value):
self.ssl_context.set_ciphers(value)
self._ciphers = value