Searched refs:dhchap_secret (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/nvme/host/ |
| H A D | sysfs.c | 633 if (!opts->dhchap_secret) in nvme_ctrl_dhchap_secret_show() 635 return sysfs_emit(buf, "%s\n", opts->dhchap_secret); in nvme_ctrl_dhchap_secret_show() 643 char *dhchap_secret; in nvme_ctrl_dhchap_secret_store() local 645 if (!ctrl->opts->dhchap_secret) in nvme_ctrl_dhchap_secret_store() 652 dhchap_secret = kzalloc(count + 1, GFP_KERNEL); in nvme_ctrl_dhchap_secret_store() 653 if (!dhchap_secret) in nvme_ctrl_dhchap_secret_store() 655 memcpy(dhchap_secret, buf, count); in nvme_ctrl_dhchap_secret_store() 657 if (strcmp(dhchap_secret, opts->dhchap_secret)) { in nvme_ctrl_dhchap_secret_store() 661 ret = nvme_auth_parse_key(dhchap_secret, &key); in nvme_ctrl_dhchap_secret_store() 663 kfree(dhchap_secret); in nvme_ctrl_dhchap_secret_store() [all …]
|
| H A D | fabrics.c | 1034 kfree(opts->dhchap_secret); in nvmf_parse_options() 1035 opts->dhchap_secret = p; in nvmf_parse_options() 1104 if (!opts->dhchap_secret) { in nvmf_parse_options() 1293 kfree_sensitive(opts->dhchap_secret); in nvmf_free_options()
|
| H A D | auth.c | 1024 ret = nvme_auth_parse_key(ctrl->opts->dhchap_secret, &ctrl->host_key); in nvme_auth_init_ctrl() 1032 if (!ctrl->opts->dhchap_secret && !ctrl->opts->dhchap_ctrl_secret) in nvme_auth_init_ctrl()
|
| /linux/drivers/nvme/target/ |
| H A D | auth.c | 26 char *dhchap_secret; in nvmet_auth_set_key() local 34 kfree(host->dhchap_secret); in nvmet_auth_set_key() 35 host->dhchap_secret = NULL; in nvmet_auth_set_key() 47 dhchap_secret = kstrdup(secret, GFP_KERNEL); in nvmet_auth_set_key() 48 if (!dhchap_secret) in nvmet_auth_set_key() 53 host->dhchap_ctrl_secret = strim(dhchap_secret); in nvmet_auth_set_key() 56 kfree(host->dhchap_secret); in nvmet_auth_set_key() 57 host->dhchap_secret = strim(dhchap_secret); in nvmet_auth_set_key() 170 if (!host->dhchap_secret) { in nvmet_setup_auth() 184 ctrl->host_key = nvme_auth_extract_key(host->dhchap_secret + 10, in nvmet_setup_auth()
|
| H A D | configfs.c | 2129 u8 *dhchap_secret; in nvmet_host_dhchap_key_show() local 2133 dhchap_secret = to_host(item)->dhchap_secret; in nvmet_host_dhchap_key_show() 2134 if (!dhchap_secret) in nvmet_host_dhchap_key_show() 2137 ret = sprintf(page, "%s\n", dhchap_secret); in nvmet_host_dhchap_key_show() 2162 u8 *dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show() local 2166 dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show() 2167 if (!dhchap_secret) in nvmet_host_dhchap_ctrl_key_show() 2170 ret = sprintf(page, "%s\n", dhchap_secret); in nvmet_host_dhchap_ctrl_key_show() 2260 kfree(host->dhchap_secret); in nvmet_host_release()
|
| H A D | nvmet.h | 382 u8 *dhchap_secret; member
|