diff --git a/Revert-Remove-now-unused-bindings-8778.patch b/Revert-Remove-now-unused-bindings-8778.patch index 38f6e2499c99a160bece4ac295b239e12fa9d95e..85e3a047e6c0448648ad6a1ee0cb04237674c1c7 100644 --- a/Revert-Remove-now-unused-bindings-8778.patch +++ b/Revert-Remove-now-unused-bindings-8778.patch @@ -5,11 +5,11 @@ Subject: [PATCH 5/5] Revert 'Remove now unused bindings (#8778)' https://github.com/pyca/cryptography/commit/c7cbfeccac42e434a5c67578054b9b5df50659bb --- - src/_cffi_src/openssl/evp.py | 9 +++++++++ - 1 file changed, 9 insertions(+) + src/_cffi_src/openssl/evp.py | 12 ++++++++++++ + 1 file changed, 12 insertions(+) diff --git a/src/_cffi_src/openssl/evp.py b/src/_cffi_src/openssl/evp.py -index e01b22f..5b0cd46 100644 +index e01b22f..7306e73 100644 --- a/src/_cffi_src/openssl/evp.py +++ b/src/_cffi_src/openssl/evp.py @@ -53,6 +53,10 @@ EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void); @@ -35,7 +35,17 @@ index e01b22f..5b0cd46 100644 void EVP_PKEY_CTX_free(EVP_PKEY_CTX *); int EVP_PKEY_sign_init(EVP_PKEY_CTX *); int EVP_PKEY_sign(EVP_PKEY_CTX *, unsigned char *, size_t *, -@@ -110,6 +117,8 @@ void EVP_MD_CTX_free(EVP_MD_CTX *); +@@ -103,6 +110,9 @@ int EVP_PKEY_set1_DSA(EVP_PKEY *, DSA *); + + int EVP_PKEY_cmp(const EVP_PKEY *, const EVP_PKEY *); + ++int EVP_PKEY_keygen_init(EVP_PKEY_CTX *); ++int EVP_PKEY_keygen(EVP_PKEY_CTX *, EVP_PKEY **); ++ + int EVP_PKEY_id(const EVP_PKEY *); + + EVP_MD_CTX *EVP_MD_CTX_new(void); +@@ -110,6 +120,8 @@ void EVP_MD_CTX_free(EVP_MD_CTX *); int EVP_DigestSign(EVP_MD_CTX *, unsigned char *, size_t *, const unsigned char *, size_t); @@ -45,5 +55,5 @@ index e01b22f..5b0cd46 100644 int EVP_PKEY_bits(const EVP_PKEY *); -- -2.43.0 +2.27.0 diff --git a/python-cryptography.spec b/python-cryptography.spec index 22857883353c05db70dedb294ffb175d8853eca5..61e9a478d05dfd726c50a5567c30ac798d374031 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: 6 +Release: 7 Summary: PyCA's cryptography library License: ASL 2.0 or BSD URL: https://cryptography.io/en/latest/ @@ -106,6 +106,9 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest --ignore vendo %doc README.rst docs %changelog +* Wed Jun 11 2025 shixuantong - 42.0.2-7 +- add EVP_PKEY_keygen_init and EVP_PKEY_keygen + * Tue Jun 10 2025 shixuantong - 42.0.2-6 - Revert bound openssl symbols to support sm2 for python