From 474b7df73d32d240de2ca7cde44dd00a9b20eebc Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 1 Oct 2024 09:22:48 -0400 Subject: [PATCH] See if we can remove this check (#11678) --- tests/hazmat/primitives/test_pkcs12.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tests/hazmat/primitives/test_pkcs12.py b/tests/hazmat/primitives/test_pkcs12.py index 99bb122c1f1e..71b16b538229 100644 --- a/tests/hazmat/primitives/test_pkcs12.py +++ b/tests/hazmat/primitives/test_pkcs12.py @@ -9,7 +9,6 @@ import pytest from cryptography import x509 -from cryptography.hazmat.bindings._rust import openssl as rust_openssl from cryptography.hazmat.decrepit.ciphers.algorithms import RC2 from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import ( @@ -632,11 +631,6 @@ def test_key_serialization_encryption( iters, iter_der, ): - if ( - enc_alg is PBES.PBESv2SHA256AndAES256CBC - ) and not rust_openssl.CRYPTOGRAPHY_OPENSSL_300_OR_GREATER: - pytest.skip("PBESv2 is not supported on OpenSSL < 3.0") - builder = serialization.PrivateFormat.PKCS12.encryption_builder() if enc_alg is not None: builder = builder.key_cert_algorithm(enc_alg)