Home
last modified time | relevance | path

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

/drivers/nvme/target/
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()
191 if (!host->dhchap_ctrl_secret) { in nvmet_setup_auth()
196 ctrl->ctrl_key = nvme_auth_extract_key(host->dhchap_ctrl_secret + 10, in nvmet_setup_auth()
Dnvmet.h296 u8 *dhchap_ctrl_secret; member
Dconfigfs.c1750 u8 *dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show()
1845 kfree(host->dhchap_ctrl_secret); in nvmet_host_release()
/drivers/nvme/host/
Dfabrics.h130 char *dhchap_ctrl_secret; member
Dfabrics.c903 kfree(opts->dhchap_ctrl_secret); in nvmf_parse_options()
904 opts->dhchap_ctrl_secret = p; in nvmf_parse_options()
1038 kfree(opts->dhchap_ctrl_secret); in nvmf_free_options()
Dauth.c860 if (ctrl->opts->dhchap_ctrl_secret && !ctrl->ctrl_key) { in nvme_auth_negotiate()
974 ret = nvme_auth_generate_key(ctrl->opts->dhchap_ctrl_secret, in nvme_auth_init_ctrl()
Dcore.c3890 if (!opts->dhchap_ctrl_secret) in nvme_ctrl_dhchap_ctrl_secret_show()
3892 return sysfs_emit(buf, "%s\n", opts->dhchap_ctrl_secret); in nvme_ctrl_dhchap_ctrl_secret_show()
3902 if (!ctrl->opts->dhchap_ctrl_secret) in nvme_ctrl_dhchap_ctrl_secret_store()
3914 if (strcmp(dhchap_secret, opts->dhchap_ctrl_secret)) { in nvme_ctrl_dhchap_ctrl_secret_store()
3923 kfree(opts->dhchap_ctrl_secret); in nvme_ctrl_dhchap_ctrl_secret_store()
3924 opts->dhchap_ctrl_secret = dhchap_secret; in nvme_ctrl_dhchap_ctrl_secret_store()
3936 static DEVICE_ATTR(dhchap_ctrl_secret, S_IRUGO | S_IWUSR,