From 41dc136a28c9c66bafd1e5abd94e09fe2db1229f Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 4 Aug 2020 23:44:18 -0500 Subject: focal time (#929) * focal time * larger dh params, assert on something * urllib3 fix * actually check an error --- src/OpenSSL/SSL.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/OpenSSL/SSL.py') 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): """ -- cgit v1.2.1