diff options
-rw-r--r-- | cryptography/hazmat/backends/__init__.py | 2 | ||||
-rw-r--r-- | tests/hazmat/backends/test_multibackend.py | 1 | ||||
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/cryptography/hazmat/backends/__init__.py b/cryptography/hazmat/backends/__init__.py index e4fd94ed..0818033f 100644 --- a/cryptography/hazmat/backends/__init__.py +++ b/cryptography/hazmat/backends/__init__.py @@ -25,5 +25,7 @@ if CommonCryptoBinding.is_available(): _default_backend = PrioritizedMultiBackend(_ALL_BACKENDS) + + def default_backend(): return _default_backend diff --git a/tests/hazmat/backends/test_multibackend.py b/tests/hazmat/backends/test_multibackend.py index 127c0d3e..f77d2680 100644 --- a/tests/hazmat/backends/test_multibackend.py +++ b/tests/hazmat/backends/test_multibackend.py @@ -80,7 +80,6 @@ class DummyPBKDF2HMAC(object): raise UnsupportedAlgorithm - class TestPrioritizedMultiBackend(object): def test_ciphers(self): backend = PrioritizedMultiBackend([ diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index f3b0bb15..0aff41e5 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -15,7 +15,6 @@ import pytest from cryptography import utils from cryptography.exceptions import UnsupportedAlgorithm, InternalError -from cryptography.hazmat.backends import default_backend from cryptography.hazmat.backends.openssl.backend import backend, Backend from cryptography.hazmat.primitives import interfaces from cryptography.hazmat.primitives.ciphers import Cipher |