From a85baf166b9d9aec6e662a0657d2d21bcfd3df28 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 29 Jan 2014 22:15:51 -0600 Subject: add windows support to random engine tests --- tests/hazmat/backends/test_openssl.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/hazmat/backends') diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index e527ed19..ea716204 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -11,6 +11,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +import sys + import cffi import pytest @@ -25,6 +27,11 @@ from cryptography.hazmat.primitives.ciphers.algorithms import AES from cryptography.hazmat.primitives.ciphers.modes import CBC +if sys.platform != "win32": + libraries = ["crypto", "ssl"] +else: # pragma: no cover + libraries = ["libeay32", "ssleay32", "advapi32"] + ffi = cffi.FFI() ffi.cdef(""" @@ -77,7 +84,7 @@ dummy_engine = ffi.verify( return 1; } """, - libraries=["crypto", "ssl"], + libraries=libraries ) -- cgit v1.2.3