]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
crypto-util: drop unused deprecated symbols
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 Jun 2026 12:14:47 +0000 (21:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 2 Jul 2026 18:02:56 +0000 (03:02 +0900)
src/shared/crypto-util.c
src/shared/crypto-util.h

index 281085688898ccf12507974492c8de5775f9e3be..68455abc64ca8b324d84af60b67e2f6009b7eba1 100644 (file)
@@ -327,23 +327,6 @@ REENABLE_WARNING;
 DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(ENGINE*, sym_ENGINE_free, ENGINE_freep, NULL);
 #endif
 
-#if !defined(OPENSSL_NO_DEPRECATED_3_0)
-DISABLE_WARNING_DEPRECATED_DECLARATIONS;
-DLSYM_PROTOTYPE(ECDSA_do_verify) = NULL;
-DLSYM_PROTOTYPE(EC_KEY_check_key) = NULL;
-DLSYM_PROTOTYPE(EC_KEY_free) = NULL;
-DLSYM_PROTOTYPE(EC_KEY_new) = NULL;
-DLSYM_PROTOTYPE(EC_KEY_set_group) = NULL;
-DLSYM_PROTOTYPE(EC_KEY_set_public_key) = NULL;
-DLSYM_PROTOTYPE(EVP_PKEY_assign) = NULL;
-DLSYM_PROTOTYPE(RSAPublicKey_dup) = NULL;
-DLSYM_PROTOTYPE(RSA_free) = NULL;
-DLSYM_PROTOTYPE(RSA_new) = NULL;
-DLSYM_PROTOTYPE(RSA_set0_key) = NULL;
-DLSYM_PROTOTYPE(RSA_size) = NULL;
-REENABLE_WARNING;
-#endif
-
 #ifndef OPENSSL_NO_UI_CONSOLE
 static DLSYM_PROTOTYPE(UI_OpenSSL) = NULL;
 static DLSYM_PROTOTYPE(UI_create_method) = NULL;
@@ -656,20 +639,6 @@ int dlopen_libcrypto(int log_level) {
                         DLSYM_ARG_FORCE(ENGINE_init),
                         DLSYM_ARG_FORCE(ENGINE_load_private_key),
 #endif
-#if !defined(OPENSSL_NO_DEPRECATED_3_0)
-                        DLSYM_ARG_FORCE(ECDSA_do_verify),
-                        DLSYM_ARG_FORCE(EC_KEY_check_key),
-                        DLSYM_ARG_FORCE(EC_KEY_free),
-                        DLSYM_ARG_FORCE(EC_KEY_new),
-                        DLSYM_ARG_FORCE(EC_KEY_set_group),
-                        DLSYM_ARG_FORCE(EC_KEY_set_public_key),
-                        DLSYM_ARG_FORCE(EVP_PKEY_assign),
-                        DLSYM_ARG_FORCE(RSAPublicKey_dup),
-                        DLSYM_ARG_FORCE(RSA_free),
-                        DLSYM_ARG_FORCE(RSA_new),
-                        DLSYM_ARG_FORCE(RSA_set0_key),
-                        DLSYM_ARG_FORCE(RSA_size),
-#endif
 #ifndef OPENSSL_NO_UI_CONSOLE
                         DLSYM_ARG(UI_OpenSSL),
                         DLSYM_ARG(UI_create_method),
index 6ecf66bbf65df352987eb78fb637e6b6fac50c35..b0358090a779716a356d1608967a81c1409105c1 100644 (file)
@@ -283,26 +283,6 @@ extern DLSYM_PROTOTYPE(i2d_PUBKEY);
 extern DLSYM_PROTOTYPE(i2d_X509);
 extern DLSYM_PROTOTYPE(i2d_X509_NAME);
 
-#if !defined(OPENSSL_NO_DEPRECATED_3_0)
-DISABLE_WARNING_DEPRECATED_DECLARATIONS;
-extern DLSYM_PROTOTYPE(ECDSA_do_verify);
-extern DLSYM_PROTOTYPE(EC_KEY_check_key);
-extern DLSYM_PROTOTYPE(EC_KEY_free);
-extern DLSYM_PROTOTYPE(EC_KEY_new);
-extern DLSYM_PROTOTYPE(EC_KEY_set_group);
-extern DLSYM_PROTOTYPE(EC_KEY_set_public_key);
-extern DLSYM_PROTOTYPE(EVP_PKEY_assign);
-extern DLSYM_PROTOTYPE(RSAPublicKey_dup);
-extern DLSYM_PROTOTYPE(RSA_free);
-extern DLSYM_PROTOTYPE(RSA_new);
-extern DLSYM_PROTOTYPE(RSA_set0_key);
-extern DLSYM_PROTOTYPE(RSA_size);
-REENABLE_WARNING;
-
-DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(EC_KEY*, sym_EC_KEY_free, EC_KEY_freep, NULL);
-DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(RSA*, sym_RSA_free, RSA_freep, NULL);
-#endif
-
 /* Mirrors of OpenSSL macros that go through our dlopen'd sym_* variants, so we don't end up linking against
  * libcrypto just for these. */
 #define sym_BIO_get_md_ctx(b, mdcp) sym_BIO_ctrl((b), BIO_C_GET_MD_CTX, 0, (char*) (mdcp))
@@ -312,7 +292,6 @@ DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(RSA*, sym_RSA_free, RSA_freep, NULL);
 #define sym_BN_one(a) sym_BN_set_word(a, 1)
 #define sym_EVP_MD_CTX_get_size(ctx) sym_EVP_MD_get_size(sym_EVP_MD_CTX_get0_md(ctx))
 #define sym_EVP_MD_CTX_get0_name(ctx) sym_EVP_MD_get0_name(sym_EVP_MD_CTX_get0_md(ctx))
-#define sym_EVP_PKEY_assign_RSA(pkey, rsa) sym_EVP_PKEY_assign((pkey), EVP_PKEY_RSA, (rsa))
 #define sym_OPENSSL_free(addr) sym_CRYPTO_free((addr), OPENSSL_FILE, OPENSSL_LINE)
 #define sym_PKCS7_set_detached(p, v) sym_PKCS7_ctrl((p), PKCS7_OP_SET_DETACHED_SIGNATURE, (v), NULL)