Home
last modified time | relevance | path

Searched refs:dhchap_ctrl_secret (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/drivers/nvme/host/
H A Dsysfs.c477 if (!opts->dhchap_ctrl_secret) in nvme_ctrl_dhchap_ctrl_secret_show()
479 return sysfs_emit(buf, "%s\n", opts->dhchap_ctrl_secret); in nvme_ctrl_dhchap_ctrl_secret_show()
489 if (!ctrl->opts->dhchap_ctrl_secret) in nvme_ctrl_dhchap_ctrl_secret_store()
501 if (strcmp(dhchap_secret, opts->dhchap_ctrl_secret)) { in nvme_ctrl_dhchap_ctrl_secret_store()
510 kfree(opts->dhchap_ctrl_secret); in nvme_ctrl_dhchap_ctrl_secret_store()
511 opts->dhchap_ctrl_secret = dhchap_secret; in nvme_ctrl_dhchap_ctrl_secret_store()
526 static DEVICE_ATTR(dhchap_ctrl_secret, S_IRUGO | S_IWUSR,
H A Dfabrics.h123 char *dhchap_ctrl_secret; member
H A Dfabrics.c957 kfree(opts->dhchap_ctrl_secret); in nvmf_parse_options()
958 opts->dhchap_ctrl_secret = p; in nvmf_parse_options()
1168 kfree(opts->dhchap_ctrl_secret); in nvmf_free_options()
H A Dauth.c866 if (ctrl->opts->dhchap_ctrl_secret && !ctrl->ctrl_key) { in nvme_auth_negotiate()
954 ret = nvme_auth_generate_key(ctrl->opts->dhchap_ctrl_secret, in nvme_auth_init_ctrl()
959 if (!ctrl->opts->dhchap_secret && !ctrl->opts->dhchap_ctrl_secret) in nvme_auth_init_ctrl()
/openbmc/linux/drivers/nvme/target/
H A Dauth.c48 kfree(host->dhchap_ctrl_secret); in nvmet_auth_set_key()
49 host->dhchap_ctrl_secret = strim(dhchap_secret); in nvmet_auth_set_key()
192 if (!host->dhchap_ctrl_secret) { in nvmet_setup_auth()
197 ctrl->ctrl_key = nvme_auth_extract_key(host->dhchap_ctrl_secret + 10, in nvmet_setup_auth()
H A Dnvmet.h299 u8 *dhchap_ctrl_secret; member
H A Dconfigfs.c1890 u8 *dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show()
1985 kfree(host->dhchap_ctrl_secret); in nvmet_host_release()