From 71929bd91f34213b9f4a3a0a493c218c35fa25eb Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 22 Jan 2024 08:01:37 -0500 Subject: [PATCH] Remove binding that's not used anymore (#10224) --- src/_cffi_src/openssl/evp.py | 2 -- src/cryptography/hazmat/bindings/openssl/_conditional.py | 7 ------- 2 files changed, 9 deletions(-) diff --git a/src/_cffi_src/openssl/evp.py b/src/_cffi_src/openssl/evp.py index 7e80f36229f8..54f5388b83d0 100644 --- a/src/_cffi_src/openssl/evp.py +++ b/src/_cffi_src/openssl/evp.py @@ -20,7 +20,6 @@ static const int EVP_PKEY_RSA_PSS; static const int EVP_PKEY_DSA; static const int EVP_PKEY_DH; -static const int EVP_PKEY_DHX; static const int EVP_PKEY_EC; static const int EVP_PKEY_X25519; static const int EVP_PKEY_ED25519; @@ -93,7 +92,6 @@ const long Cryptography_HAS_EVP_PKEY_DHX = 1; #else const long Cryptography_HAS_EVP_PKEY_DHX = 0; -const long EVP_PKEY_DHX = -1; #endif #if CRYPTOGRAPHY_IS_LIBRESSL || defined(OPENSSL_NO_SCRYPT) diff --git a/src/cryptography/hazmat/bindings/openssl/_conditional.py b/src/cryptography/hazmat/bindings/openssl/_conditional.py index 21e517352c7f..30cc3bfa25ef 100644 --- a/src/cryptography/hazmat/bindings/openssl/_conditional.py +++ b/src/cryptography/hazmat/bindings/openssl/_conditional.py @@ -28,12 +28,6 @@ def cryptography_has_tls_st() -> list[str]: ] -def cryptography_has_evp_pkey_dhx() -> list[str]: - return [ - "EVP_PKEY_DHX", - ] - - def cryptography_has_mem_functions() -> list[str]: return [ "Cryptography_CRYPTO_set_mem_functions", @@ -208,7 +202,6 @@ def cryptography_has_get_extms_support() -> list[str]: "Cryptography_HAS_SET_CERT_CB": cryptography_has_set_cert_cb, "Cryptography_HAS_SSL_ST": cryptography_has_ssl_st, "Cryptography_HAS_TLS_ST": cryptography_has_tls_st, - "Cryptography_HAS_EVP_PKEY_DHX": cryptography_has_evp_pkey_dhx, "Cryptography_HAS_MEM_FUNCTIONS": cryptography_has_mem_functions, "Cryptography_HAS_ED448": cryptography_has_ed448, "Cryptography_HAS_SIGALGS": cryptography_has_ssl_sigalgs,