From 849cea06f88790eca5b0407aa4bf9ed94ac6403e Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Thu, 18 Jul 2024 17:23:50 +0200 Subject: [PATCH] linux: Remove the use of OpenSSL Engine API OpenSSL engines are not FIPS compatible and corresponding API is deprecated since OpenSSL 3.0. It appears this API is not actually used in the code, so remove it. Signed-off-by: Tomas Bzatek --- src/nvme/linux.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/nvme/linux.c b/src/nvme/linux.c index 9d472e408b5d..7785416727ed 100644 --- a/src/nvme/linux.c +++ b/src/nvme/linux.c @@ -18,7 +18,6 @@ #include #ifdef CONFIG_OPENSSL -#include #include #include #include @@ -739,9 +738,6 @@ int nvme_gen_dhchap_key(char *hostnqn, enum nvme_hmac_alg hmac, _cleanup_hmac_ctx_ HMAC_CTX *hmac_ctx = NULL; const EVP_MD *md; - ENGINE_load_builtin_engines(); - ENGINE_register_all_complete(); - hmac_ctx = HMAC_CTX_new(); if (!hmac_ctx) { errno = ENOMEM; -- 2.43.0