diff options
author | Hynek Schlawack <hs@ox.cx> | 2016-03-11 14:59:39 +0100 |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2016-03-11 14:59:39 +0100 |
commit | 22a4b666a933f4dd3cd00709cd5c3ec754e6c05e (patch) | |
tree | 8403fccde0ab2d9772ec6dd8457298c7b6cebe34 /src/OpenSSL/SSL.py | |
parent | a7a63af02faf633f2b400adfaace98219b2bde6c (diff) | |
download | pyopenssl-22a4b666a933f4dd3cd00709cd5c3ec754e6c05e.tar.gz |
More explicit assert
Diffstat (limited to 'src/OpenSSL/SSL.py')
-rw-r--r-- | src/OpenSSL/SSL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py index ffb1998..10116ed 100644 --- a/src/OpenSSL/SSL.py +++ b/src/OpenSSL/SSL.py @@ -823,7 +823,7 @@ class Context(object): raise TypeError("cipher_list must be a byte string.") _openssl_assert( - _lib.SSL_CTX_set_cipher_list(self._context, cipher_list) + _lib.SSL_CTX_set_cipher_list(self._context, cipher_list) == 1 ) def set_client_ca_list(self, certificate_authorities): |