diff options
author | Steven McDonald <steven.mcdonald@anchor.net.au> | 2015-02-18 16:34:56 +1100 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-19 09:18:11 -0600 |
commit | 3801532512498a6368e2f852db127451f5244973 (patch) | |
tree | 9cb5e4118c10b6b60a799887d7c7eb0364eda955 /tests/hazmat/backends/test_openssl.py | |
parent | fab60f1cced530d5d0c53584d66ca91d77700a07 (diff) | |
download | cryptography-3801532512498a6368e2f852db127451f5244973.tar.gz cryptography-3801532512498a6368e2f852db127451f5244973.tar.bz2 cryptography-3801532512498a6368e2f852db127451f5244973.zip |
Allow the OpenSSL version string to begin with LibreSSL
LibreSSL aims to be source-compatible with OpenSSL, so there is no good
reason to fail this test simply because the name has changed.
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 |