From 8c2b3934c965dadb6e295eed92de78a3ce8e0391 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 17:05:32 +0000 Subject: [PATCH] chore: Bump cryptography from 39.0.2 to 41.0.2 Bumps [cryptography](https://github.com/pyca/cryptography) from 39.0.2 to 41.0.2. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/39.0.2...41.0.2) --- updated-dependencies: - dependency-name: cryptography dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- requirements.in | 2 +- requirements.txt | 2 +- tests/test_libs_crypto_utils.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 08633e24..3e56dc63 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -26,7 +26,7 @@ click==8.0.3 # via black coverage==7.1.0 # via -r requirements-dev.in -cryptography==39.0.2 +cryptography==41.0.2 # via # -c requirements.txt # secretstorage diff --git a/requirements.in b/requirements.in index bc2620f4..7a83292b 100644 --- a/requirements.in +++ b/requirements.in @@ -5,7 +5,7 @@ # Note: To install a package from a Git VCS repository, see the following example: # git+https://github.com/example/example.git@example-vcs-ref#egg=example-pkg[foo,bar]==1.42.3 -cryptography==39.0.2 +cryptography==41.0.2 defusedxml==0.7.1 Django>=2.2.24 djangorestframework>=3.10.3,<3.15 diff --git a/requirements.txt b/requirements.txt index dde0fe74..e12a9350 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ certifi==2022.6.15 # via signxml cffi==1.15.1 # via cryptography -cryptography==39.0.2 +cryptography==41.0.2 # via # -r requirements.in # pyopenssl diff --git a/tests/test_libs_crypto_utils.py b/tests/test_libs_crypto_utils.py index bb24b423..853332c0 100644 --- a/tests/test_libs_crypto_utils.py +++ b/tests/test_libs_crypto_utils.py @@ -488,7 +488,7 @@ def test_load_der_x509_cert_ok_cert_real_dte_1(self) -> None: some_microsoft_extension_oid = oid.ObjectIdentifier("1.3.6.1.4.1.311.21.7") some_microsoft_ext = cert_extensions.get_extension_for_oid(some_microsoft_extension_oid) self.assertEqual(some_microsoft_ext.critical, False) - self.assertTrue(isinstance(some_microsoft_ext.value.value, bytes)) + self.assertTrue(isinstance(some_microsoft_ext.value.public_bytes(), bytes)) def test_load_der_x509_cert_ok_cert_real_dte_3(self) -> None: cert_der_bytes = utils.read_test_file_bytes(