Searched refs:dhchap_secret (Results 1 – 7 of 7) sorted by relevance
/drivers/nvme/target/ |
D | auth.c | 26 char *dhchap_secret; in nvmet_auth_set_key() local 44 dhchap_secret = kstrdup(secret, GFP_KERNEL); in nvmet_auth_set_key() 45 if (!dhchap_secret) in nvmet_auth_set_key() 49 host->dhchap_ctrl_secret = strim(dhchap_secret); in nvmet_auth_set_key() 52 kfree(host->dhchap_secret); in nvmet_auth_set_key() 53 host->dhchap_secret = strim(dhchap_secret); in nvmet_auth_set_key() 158 if (!host->dhchap_secret) { in nvmet_setup_auth() 178 ctrl->host_key = nvme_auth_extract_key(host->dhchap_secret + 10, in nvmet_setup_auth()
|
D | configfs.c | 1723 u8 *dhchap_secret = to_host(item)->dhchap_secret; in nvmet_host_dhchap_key_show() local 1725 if (!dhchap_secret) in nvmet_host_dhchap_key_show() 1727 return sprintf(page, "%s\n", dhchap_secret); in nvmet_host_dhchap_key_show() 1750 u8 *dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show() local 1752 if (!dhchap_secret) in nvmet_host_dhchap_ctrl_key_show() 1754 return sprintf(page, "%s\n", dhchap_secret); in nvmet_host_dhchap_ctrl_key_show() 1844 kfree(host->dhchap_secret); in nvmet_host_release()
|
D | nvmet.h | 295 u8 *dhchap_secret; member
|
/drivers/nvme/host/ |
D | core.c | 3835 if (!opts->dhchap_secret) in nvme_ctrl_dhchap_secret_show() 3837 return sysfs_emit(buf, "%s\n", opts->dhchap_secret); in nvme_ctrl_dhchap_secret_show() 3845 char *dhchap_secret; in nvme_ctrl_dhchap_secret_store() local 3847 if (!ctrl->opts->dhchap_secret) in nvme_ctrl_dhchap_secret_store() 3854 dhchap_secret = kzalloc(count + 1, GFP_KERNEL); in nvme_ctrl_dhchap_secret_store() 3855 if (!dhchap_secret) in nvme_ctrl_dhchap_secret_store() 3857 memcpy(dhchap_secret, buf, count); in nvme_ctrl_dhchap_secret_store() 3859 if (strcmp(dhchap_secret, opts->dhchap_secret)) { in nvme_ctrl_dhchap_secret_store() 3863 ret = nvme_auth_generate_key(dhchap_secret, &key); in nvme_ctrl_dhchap_secret_store() 3865 kfree(dhchap_secret); in nvme_ctrl_dhchap_secret_store() [all …]
|
D | fabrics.h | 129 char *dhchap_secret; member
|
D | fabrics.c | 889 kfree(opts->dhchap_secret); in nvmf_parse_options() 890 opts->dhchap_secret = p; in nvmf_parse_options() 1037 kfree(opts->dhchap_secret); in nvmf_free_options()
|
D | auth.c | 970 ret = nvme_auth_generate_key(ctrl->opts->dhchap_secret, in nvme_auth_init_ctrl()
|