40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
|
From 849cea06f88790eca5b0407aa4bf9ed94ac6403e Mon Sep 17 00:00:00 2001
|
||
|
From: Tomas Bzatek <tbzatek@redhat.com>
|
||
|
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 <tbzatek@redhat.com>
|
||
|
---
|
||
|
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 <unistd.h>
|
||
|
|
||
|
#ifdef CONFIG_OPENSSL
|
||
|
-#include <openssl/engine.h>
|
||
|
#include <openssl/evp.h>
|
||
|
#include <openssl/hmac.h>
|
||
|
#include <openssl/kdf.h>
|
||
|
@@ -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
|
||
|
|