diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2020-12-14 22:57:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 21:57:52 -0600 |
commit | cdbfd828fcbfdd21c61bde6ceb9db6a6329605f0 (patch) | |
tree | 8d2adb94c3fd846fc30e1e9debafaee0ea05c3c4 /src/OpenSSL/SSL.py | |
parent | 1b12dcefdd71ba81ff9c3de9899fdb73076a08d2 (diff) | |
download | pyopenssl-cdbfd828fcbfdd21c61bde6ceb9db6a6329605f0.tar.gz |
Fix for running on OpenSSL 1.1.0 + CI (#978)
* Test on OpenSSL 1.1.0 w/ Debian stretch
* Make pyOpenSSL compatible with openssl 1.1.0 again
Co-authored-by: Shane Harvey <shnhrv@gmail.com>
Diffstat (limited to 'src/OpenSSL/SSL.py')
-rw-r--r-- | src/OpenSSL/SSL.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py index 230b403..e5fea1e 100644 --- a/src/OpenSSL/SSL.py +++ b/src/OpenSSL/SSL.py @@ -146,7 +146,10 @@ OP_NO_SSLv3 = _lib.SSL_OP_NO_SSLv3 OP_NO_TLSv1 = _lib.SSL_OP_NO_TLSv1 OP_NO_TLSv1_1 = _lib.SSL_OP_NO_TLSv1_1 OP_NO_TLSv1_2 = _lib.SSL_OP_NO_TLSv1_2 -OP_NO_TLSv1_3 = _lib.SSL_OP_NO_TLSv1_3 +try: + OP_NO_TLSv1_3 = _lib.SSL_OP_NO_TLSv1_3 +except AttributeError: + pass MODE_RELEASE_BUFFERS = _lib.SSL_MODE_RELEASE_BUFFERS |