From 3801532512498a6368e2f852db127451f5244973 Mon Sep 17 00:00:00 2001 From: Steven McDonald Date: Wed, 18 Feb 2015 16:34:56 +1100 Subject: 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. --- tests/hazmat/backends/test_openssl.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/hazmat/backends') 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 -- cgit v1.2.3