Home
last modified time | relevance | path

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

/linux-6.1.9/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.c1747 u8 *dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show()
1842 kfree(host->dhchap_ctrl_secret); in nvmet_host_release()
/linux-6.1.9/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.c858 if (ctrl->opts->dhchap_ctrl_secret && !ctrl->ctrl_key) { in nvme_auth_negotiate()
981 nvme_auth_generate_key(ctrl->opts->dhchap_ctrl_secret, &ctrl->ctrl_key); in nvme_auth_init_ctrl()
Dcore.c3797 if (!opts->dhchap_ctrl_secret) in nvme_ctrl_dhchap_ctrl_secret_show()
3799 return sysfs_emit(buf, "%s\n", opts->dhchap_ctrl_secret); in nvme_ctrl_dhchap_ctrl_secret_show()
3809 if (!ctrl->opts->dhchap_ctrl_secret) in nvme_ctrl_dhchap_ctrl_secret_store()
3821 if (strcmp(dhchap_secret, opts->dhchap_ctrl_secret)) { in nvme_ctrl_dhchap_ctrl_secret_store()
3828 kfree(opts->dhchap_ctrl_secret); in nvme_ctrl_dhchap_ctrl_secret_store()
3829 opts->dhchap_ctrl_secret = dhchap_secret; in nvme_ctrl_dhchap_ctrl_secret_store()
3842 static DEVICE_ATTR(dhchap_ctrl_secret, S_IRUGO | S_IWUSR,