diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-02-19 13:00:19 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-02-19 13:00:19 -0800 |
commit | bae5a64971c70ef25b0e9f6346cf474ca3808180 (patch) | |
tree | 810c8527da7e6c8304320149987811d84670ade4 /tests/hazmat/backends/test_openssl.py | |
parent | 4680b1d3a0dcb44954ed31dbde451acbfb4698fd (diff) | |
parent | 8996f672f2c2fa49ecb59841e0b6bfea17e8ce13 (diff) | |
download | cryptography-bae5a64971c70ef25b0e9f6346cf474ca3808180.tar.gz cryptography-bae5a64971c70ef25b0e9f6346cf474ca3808180.tar.bz2 cryptography-bae5a64971c70ef25b0e9f6346cf474ca3808180.zip |
Merge pull request #1679 from reaperhulk/libre-support
LibreSSL support
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 21e902f1..2bf66a0c 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -71,10 +71,13 @@ class TestOpenSSL(object): Unfortunately, this define does not appear to have a formal content definition, so for now we'll test to see - if it starts with OpenSSL as that appears to be true - for every OpenSSL. + if it starts with OpenSSL or LibreSSL as that appears + to be true for every OpenSSL-alike. """ - assert backend.openssl_version_text().startswith("OpenSSL") + assert ( + backend.openssl_version_text().startswith("OpenSSL") or + backend.openssl_version_text().startswith("LibreSSL") + ) def test_supports_cipher(self): assert backend.cipher_supported(None, None) is False |