Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions libnvme/src/nvme/fabrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,21 @@

ctrlkey = nvme_ctrl_get_dhchap_key(c);

if (cfg->tls && cfg->concat) {
nvme_msg(h->ctx, LOG_ERR, "cannot specify --tls and --concat together\n");

Check failure on line 736 in libnvme/src/nvme/fabrics.c

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 90 exceeds 80 columns
return -ENVME_CONNECT_INVAL;
}

if (cfg->concat && !hostkey) {
nvme_msg(h->ctx, LOG_ERR, "required argument [--dhchap-secret | -S] not specified with --concat\n");

Check failure on line 741 in libnvme/src/nvme/fabrics.c

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 116 exceeds 80 columns
return -ENVME_CONNECT_INVAL;
}

if (cfg->concat && ctrlkey) {
nvme_msg(h->ctx, LOG_ERR, "cannot specify [--dhchap-ctrl-secret | -C] with --concat\n");

Check failure on line 746 in libnvme/src/nvme/fabrics.c

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 104 exceeds 80 columns
return -ENVME_CONNECT_INVAL;
}

if (cfg->tls) {
ret = __nvme_import_keys_from_config(h, c, &keyring_id, &key_id);
if (ret)
Expand Down