diff options
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 9 |
1 files changed, 8 insertions, 1 deletions
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 ) |