Skip to content

Commit

Permalink
linux: Remove the use of OpenSSL Engine API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tbzatek authored and igaw committed Jul 19, 2024
1 parent 711da8d commit 849cea0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/nvme/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 849cea0

Please sign in to comment.