Make the "ciphers" option work again
This commit is contained in:
parent
e862c47b8b
commit
6da625dbdb
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue