Skip to content

Commit

Permalink
linux: fix derive_psk_digest OpenSSL 1.1 version
Browse files Browse the repository at this point in the history
The reordering of the variables broke derive_psk_digest OpenSSL 1.1
version.

Fixes: 4cc727d ("linux: reorder variable declarations")

Signed-off-by: Daniel Wagner <[email protected]>
  • Loading branch information
igaw committed Oct 31, 2024
1 parent 2b3cb17 commit 81073a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvme/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,14 +881,14 @@ int nvme_gen_dhchap_key(char *hostnqn, enum nvme_hmac_alg hmac,
}

static int derive_psk_digest(const char *hostnqn, const char *subsysnqn,
int version, int hmac,
int version, int cipher,
unsigned char *retained, size_t key_len,
char *digest, size_t digest_len)
{
static const char hmac_seed[] = "NVMe-over-Fabrics";
const EVP_MD *md = select_hmac(hmac, &hmac_len);
_cleanup_hmac_ctx_ HMAC_CTX *hmac_ctx = NULL;
_cleanup_free_ unsigned char *psk_ctx = NULL;
const EVP_MD *md;
size_t hmac_len;
size_t len;

Expand Down

0 comments on commit 81073a1

Please sign in to comment.