Skip to content

Commit 849cea0

Browse files
tbzatekigaw
authored andcommitted
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 <[email protected]>
1 parent 711da8d commit 849cea0

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/nvme/linux.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <unistd.h>
1919

2020
#ifdef CONFIG_OPENSSL
21-
#include <openssl/engine.h>
2221
#include <openssl/evp.h>
2322
#include <openssl/hmac.h>
2423
#include <openssl/kdf.h>
@@ -739,9 +738,6 @@ int nvme_gen_dhchap_key(char *hostnqn, enum nvme_hmac_alg hmac,
739738
_cleanup_hmac_ctx_ HMAC_CTX *hmac_ctx = NULL;
740739
const EVP_MD *md;
741740

742-
ENGINE_load_builtin_engines();
743-
ENGINE_register_all_complete();
744-
745741
hmac_ctx = HMAC_CTX_new();
746742
if (!hmac_ctx) {
747743
errno = ENOMEM;

0 commit comments

Comments
 (0)