Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/OpenSSL/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -3221,14 +3221,15 @@ def load_pkcs7_data(type: int, buffer: Union[str, bytes]) -> PKCS7:
return pypkcs7


load_pkcs7_data = utils.deprecated(
utils.deprecated(
load_pkcs7_data,
__name__,
(
"PKCS#7 support in pyOpenSSL is deprecated. You should use the APIs "
"in cryptography."
),
DeprecationWarning,
name="load_pkcs7_data",
)


Expand Down Expand Up @@ -3319,12 +3320,13 @@ def load_pkcs12(
return pkcs12


load_pkcs12 = utils.deprecated(
utils.deprecated(
load_pkcs12,
__name__,
(
"PKCS#12 support in pyOpenSSL is deprecated. You should use the APIs "
"in cryptography."
),
DeprecationWarning,
name="load_pkcs12",
)