Skip to content

Commit 81073a1

Browse files
committed
linux: fix derive_psk_digest OpenSSL 1.1 version
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]>
1 parent 2b3cb17 commit 81073a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/nvme/linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,14 +881,14 @@ int nvme_gen_dhchap_key(char *hostnqn, enum nvme_hmac_alg hmac,
881881
}
882882

883883
static int derive_psk_digest(const char *hostnqn, const char *subsysnqn,
884-
int version, int hmac,
884+
int version, int cipher,
885885
unsigned char *retained, size_t key_len,
886886
char *digest, size_t digest_len)
887887
{
888888
static const char hmac_seed[] = "NVMe-over-Fabrics";
889-
const EVP_MD *md = select_hmac(hmac, &hmac_len);
890889
_cleanup_hmac_ctx_ HMAC_CTX *hmac_ctx = NULL;
891890
_cleanup_free_ unsigned char *psk_ctx = NULL;
891+
const EVP_MD *md;
892892
size_t hmac_len;
893893
size_t len;
894894

0 commit comments

Comments
 (0)