summaryrefslogtreecommitdiff
path: root/src/OpenSSL/SSL.py
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2016-03-11 14:59:39 +0100
committerHynek Schlawack <hs@ox.cx>2016-03-11 14:59:39 +0100
commit22a4b666a933f4dd3cd00709cd5c3ec754e6c05e (patch)
tree8403fccde0ab2d9772ec6dd8457298c7b6cebe34 /src/OpenSSL/SSL.py
parenta7a63af02faf633f2b400adfaace98219b2bde6c (diff)
downloadpyopenssl-22a4b666a933f4dd3cd00709cd5c3ec754e6c05e.tar.gz
More explicit assert
Diffstat (limited to 'src/OpenSSL/SSL.py')
-rw-r--r--src/OpenSSL/SSL.py2
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):