"description": "NVMe host ID",
"type": "string"
},
+ "dhchap_key": {
+ "description": "Host DH-HMAC-CHAP key",
+ "type": "string"
+ },
"hostsymname": {
"description": "NVMe host symbolic name",
"type": "string"
"description": "Transport service identifier",
"type": "string"
},
- "dhchap_key": {
- "description": "Host DH-HMAC-CHAP key",
- "type": "string"
- },
"dhchap_ctrl_key": {
"description": "Controller DH-HMAC-CHAP key",
"type": "string"
if (!c)
return;
json_update_attributes(c, port_obj);
- attr_obj = json_object_object_get(port_obj, "dhchap_key");
+ attr_obj = json_object_object_get(port_obj, "dhchap_ctrl_key");
if (attr_obj)
nvme_ctrl_set_dhchap_key(c, json_object_get_string(attr_obj));
}
json_object_new_string(value));
value = nvme_ctrl_get_dhchap_key(c);
if (value)
- json_object_object_add(port_obj, "dhchap_key",
+ json_object_object_add(port_obj, "dhchap_ctrl_key",
json_object_new_string(value));
JSON_INT_OPTION(cfg, port_obj, nr_io_queues, 0);
JSON_INT_OPTION(cfg, port_obj, nr_write_queues, 0);
json_object_new_string(value));
value = nvme_ctrl_get_dhchap_key(c);
if (value)
- json_object_object_add(ctrl_obj, "dhchap_key",
+ json_object_object_add(ctrl_obj, "dhchap_ctrl_key",
json_object_new_string(value));
JSON_INT_OPTION(cfg, ctrl_obj, nr_io_queues, 0);
JSON_INT_OPTION(cfg, ctrl_obj, nr_write_queues, 0);
FREE_CTRL_ATTR(c->queue_count);
FREE_CTRL_ATTR(c->serial);
FREE_CTRL_ATTR(c->sqsize);
+ FREE_CTRL_ATTR(c->dhchap_key);
FREE_CTRL_ATTR(c->address);
FREE_CTRL_ATTR(c->dctype);
FREE_CTRL_ATTR(c->cntrltype);