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..92009d235eace56a9acf10e1d6f79ec76c0e3b3e 100644 --- a/backport-provide-openssl-apis-related-to-SM-for-python.patch +++ b/backport-provide-openssl-apis-related-to-SM-for-python.patch @@ -9,18 +9,18 @@ Signed-off-by: hanxinke 1 file changed, 7 insertions(+) diff --git a/src/_cffi_src/openssl/evp.py b/src/_cffi_src/openssl/evp.py -index 54f5388..c304684 100644 +index f25c9bb..9d369c9 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; +@@ -22,6 +22,7 @@ static const int EVP_PKEY_EC; + static const int EVP_MAX_MD_SIZE; - static const int Cryptography_HAS_SCRYPT; static const int Cryptography_HAS_EVP_PKEY_DHX; +static const int EVP_PKEY_SM2; - static const long Cryptography_HAS_300_FIPS; - static const long Cryptography_HAS_300_EVP_CIPHER; """ -@@ -69,6 +70,9 @@ int EVP_VerifyUpdate(EVP_MD_CTX *, const void *, size_t); + + FUNCTIONS = """ +@@ -44,6 +45,9 @@ int EVP_VerifyUpdate(EVP_MD_CTX *, const void *, size_t); int EVP_VerifyFinal(EVP_MD_CTX *, const unsigned char *, unsigned int, EVP_PKEY *); @@ -30,16 +30,16 @@ 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 *); - - int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *, int, int, void *); +@@ -56,6 +60,9 @@ void EVP_MD_CTX_free(EVP_MD_CTX *); + int EVP_PKEY_bits(const EVP_PKEY *); + int EVP_PKEY_assign_RSA(EVP_PKEY *, RSA *); +void EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx); +const EVP_MD *EVP_sm3(void); + - int EVP_default_properties_enable_fips(OSSL_LIB_CTX *, int); """ + CUSTOMIZATIONS = """ -- -2.27.0 +2.31.1 diff --git a/cryptography-42.0.7.tar.gz b/cryptography-42.0.7.tar.gz deleted file mode 100644 index 2e6b5c3489350dd6fff9f1798c58d5334bf91110..0000000000000000000000000000000000000000 Binary files a/cryptography-42.0.7.tar.gz and /dev/null differ diff --git a/cryptography-43.0.1.tar.gz b/cryptography-43.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4f0abc75e5c553027ec5bb5616de606a9ee22619 Binary files /dev/null and b/cryptography-43.0.1.tar.gz differ diff --git a/python-cryptography.spec b/python-cryptography.spec index 05778dcca112bf6f7713b54ece11371512762fc2..36f569d6660e39484a822ef61e122c30c738c625 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 +Version: 43.0.1 +Release: 1 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 Sep 30 2024 zhangxianting - 43.0.1-1 +- update to version 43.0.1 + * Fri Jul 26 2024 shixuantong - 42.0.7-2 - enable check