From 55c566ded5483ccf01aaa68b246e64b83e1ac4d8 Mon Sep 17 00:00:00 2001 From: MaertHaekkinen Date: Tue, 16 Aug 2022 16:20:45 +0300 Subject: [PATCH] cryptography: Rename parameter of serialize_key_and_certificates (#8543) --- stubs/cryptography/@tests/stubtest_allowlist.txt | 1 - .../cryptography/hazmat/primitives/serialization/pkcs12.pyi | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/stubs/cryptography/@tests/stubtest_allowlist.txt b/stubs/cryptography/@tests/stubtest_allowlist.txt index 52bdeb872..30c5be3a5 100644 --- a/stubs/cryptography/@tests/stubtest_allowlist.txt +++ b/stubs/cryptography/@tests/stubtest_allowlist.txt @@ -15,7 +15,6 @@ cryptography.hazmat.primitives.hashes.BLAKE2s.__init__ cryptography.hazmat.primitives.hashes.Hash.__init__ cryptography.hazmat.primitives.hmac.HMAC.__init__ cryptography.hazmat.primitives.hmac.HMAC.update -cryptography.hazmat.primitives.serialization.pkcs12.serialize_key_and_certificates cryptography.hazmat.primitives.serialization.pkcs7.PKCS7SignatureBuilder.__init__ cryptography.x509.CertificateBuilder.public_key cryptography.x509.CertificateBuilder.serial_number diff --git a/stubs/cryptography/cryptography/hazmat/primitives/serialization/pkcs12.pyi b/stubs/cryptography/cryptography/hazmat/primitives/serialization/pkcs12.pyi index 72c91f7a6..f40dd7376 100644 --- a/stubs/cryptography/cryptography/hazmat/primitives/serialization/pkcs12.pyi +++ b/stubs/cryptography/cryptography/hazmat/primitives/serialization/pkcs12.pyi @@ -14,5 +14,5 @@ def serialize_key_and_certificates( key: RSAPrivateKeyWithSerialization | EllipticCurvePrivateKeyWithSerialization | DSAPrivateKeyWithSerialization, cert: Certificate | None, cas: list[Certificate] | None, - enc: KeySerializationEncryption, + encryption_algorithm: KeySerializationEncryption, ) -> bytes: ...