Skip to content

Commit dbe6236

Browse files
committed
fabrics: set crypto info to fabrics context
When setting up the fabrics context it's also necessary to set the crypto info. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 9608f36 commit dbe6236

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fabrics.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,11 @@ static int create_common_context(struct nvme_global_ctx *ctx,
370370
if (err)
371371
goto err;
372372

373+
err = nvmf_context_set_crypto(fctx, fa->hostkey, fa->ctrlkey,
374+
fa->keyring, fa->tls_key, fa->tls_key_identity);
375+
if (err)
376+
goto err;
377+
373378
err = nvmf_context_set_persistent(fctx, persistent);
374379
if (err)
375380
goto err;

0 commit comments

Comments
 (0)