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 78bfaf90f4fc96aaed85ca0b9493bb305ec897b4..14818f7dd2b64249d71371b2d8e1b944ea77d03a 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,7 +1,7 @@ %global pypi_name cryptography Name: python-%{pypi_name} Version: 42.0.2 -Release: 4 +Release: 5 Summary: PyCA's cryptography library License: ASL 2.0 or BSD URL: https://cryptography.io/en/latest/ @@ -93,6 +93,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest --ignore vendo %doc README.rst docs %changelog +* Mon Jul 29 2024 shixuantong - 42.0.2-5 +- add EVP_PKEY_set_alias_type api + * Fri Jul 26 2024 shixuantong - 42.0.2-4 - enable check