diff --git a/backport-provide-openssl-apis-related-to-SM-for-python.patch b/backport-provide-openssl-apis-related-to-SM-for-python.patch index 68f469a5e2265c599a56e0e4e1116bcecae6cdca..d9c122125b65fda026395b91f21fc393b8a9bc92 100644 --- a/backport-provide-openssl-apis-related-to-SM-for-python.patch +++ b/backport-provide-openssl-apis-related-to-SM-for-python.patch @@ -5,11 +5,11 @@ Subject: [PATCH] provide openssl apis related to SM for python Signed-off-by: hanxinke --- - src/_cffi_src/openssl/evp.py | 7 +++++++ - 1 file changed, 7 insertions(+) + src/_cffi_src/openssl/evp.py | 8 ++++++++ + 1 file changed, 8 insertions(+) diff --git a/src/_cffi_src/openssl/evp.py b/src/_cffi_src/openssl/evp.py -index 54f5388..c304684 100644 +index 54f5388..5803775 100644 --- a/src/_cffi_src/openssl/evp.py +++ b/src/_cffi_src/openssl/evp.py @@ -32,6 +32,7 @@ static const int EVP_CTRL_AEAD_SET_TAG; @@ -30,10 +30,11 @@ index 54f5388..c304684 100644 int EVP_PKEY_set1_RSA(EVP_PKEY *, RSA *); int EVP_PKEY_set1_DSA(EVP_PKEY *, DSA *); -@@ -84,6 +88,9 @@ int EVP_PKEY_assign_RSA(EVP_PKEY *, RSA *); +@@ -84,6 +88,10 @@ int EVP_PKEY_assign_RSA(EVP_PKEY *, RSA *); int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *, int, int, void *); ++int EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type); +void EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx); +const EVP_MD *EVP_sm3(void); + diff --git a/python-cryptography.spec b/python-cryptography.spec index 05778dcca112bf6f7713b54ece11371512762fc2..377787de0c7d3a95570710537b8a858e5d270445 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,7 +1,7 @@ %global pypi_name cryptography Name: python-%{pypi_name} Version: 42.0.7 -Release: 2 +Release: 3 Summary: PyCA's cryptography library License: (Apache-2.0 OR BSD-3-Clause) AND PSF-2.0 URL: https://cryptography.io/en/latest/ @@ -92,6 +92,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest --ignore vendo %doc README.rst docs %changelog +* Mon Jul 29 2024 shixuantong - 42.0.7-3 +- add EVP_PKEY_set_alias_type api + * Fri Jul 26 2024 shixuantong - 42.0.7-2 - enable check