summaryrefslogtreecommitdiff
path: root/src/OpenSSL/SSL.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2020-08-04 23:44:18 -0500
committerGitHub <noreply@github.com>2020-08-05 00:44:18 -0400
commit41dc136a28c9c66bafd1e5abd94e09fe2db1229f (patch)
treea322a25ab36e036a8f351b2aeba0ff2a1d48a20e /src/OpenSSL/SSL.py
parent9a80576f9fa841d0045f90e495055f8c61d49496 (diff)
downloadpyopenssl-41dc136a28c9c66bafd1e5abd94e09fe2db1229f.tar.gz
focal time (#929)
* focal time * larger dh params, assert on something * urllib3 fix * actually check an error
Diffstat (limited to 'src/OpenSSL/SSL.py')
-rw-r--r--src/OpenSSL/SSL.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py
index d809743..8a54994 100644
--- a/src/OpenSSL/SSL.py
+++ b/src/OpenSSL/SSL.py
@@ -1080,7 +1080,8 @@ class Context(object):
dh = _lib.PEM_read_bio_DHparams(bio, _ffi.NULL, _ffi.NULL, _ffi.NULL)
dh = _ffi.gc(dh, _lib.DH_free)
- _lib.SSL_CTX_set_tmp_dh(self._context, dh)
+ res = _lib.SSL_CTX_set_tmp_dh(self._context, dh)
+ _openssl_assert(res == 1)
def set_tmp_ecdh(self, curve):
"""