saltbundlepy-pyopenssl/revert_switch_to_new_utils_deprecation.patch

37 lines
812 B
Diff

Index: pyOpenSSL-23.2.0/src/OpenSSL/crypto.py
===================================================================
--- pyOpenSSL-23.2.0.orig/src/OpenSSL/crypto.py
+++ pyOpenSSL-23.2.0/src/OpenSSL/crypto.py
@@ -3260,7 +3260,7 @@ def load_pkcs7_data(type: int, buffer: U
return pypkcs7
-utils.deprecated(
+load_pkcs7_data = utils.deprecated(
load_pkcs7_data,
__name__,
(
@@ -3268,7 +3268,6 @@ utils.deprecated(
"in cryptography."
),
DeprecationWarning,
- name="load_pkcs7_data",
)
@@ -3359,7 +3358,7 @@ def load_pkcs12(
return pkcs12
-utils.deprecated(
+load_pkcs12 = utils.deprecated(
load_pkcs12,
__name__,
(
@@ -3367,5 +3366,4 @@ utils.deprecated(
"in cryptography."
),
DeprecationWarning,
- name="load_pkcs12",
)