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_generate_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 | 1074 ret = nvme_auth_generate_key(ctrl->opts->dhchap_secret, in nvme_auth_init_ctrl() 1083 if (!ctrl->opts->dhchap_secret && !ctrl->opts->dhchap_ctrl_secret) in nvme_auth_init_ctrl()
|
| /linux/drivers/nvme/target/ |
| H A D | auth.c | 27 char *dhchap_secret; in nvmet_auth_set_key() local 35 kfree(host->dhchap_secret); in nvmet_auth_set_key() 36 host->dhchap_secret = NULL; in nvmet_auth_set_key() 57 dhchap_secret = kstrdup(secret, GFP_KERNEL); in nvmet_auth_set_key() 58 if (!dhchap_secret) in nvmet_auth_set_key() 63 host->dhchap_ctrl_secret = strim(dhchap_secret); in nvmet_auth_set_key() 66 kfree(host->dhchap_secret); in nvmet_auth_set_key() 67 host->dhchap_secret = strim(dhchap_secret); in nvmet_auth_set_key() 181 if (!host->dhchap_secret) { in nvmet_setup_auth() 195 ctrl->host_key = nvme_auth_extract_key(host->dhchap_secret + 10, in nvmet_setup_auth()
|
| H A D | configfs.c | 2103 u8 *dhchap_secret; in nvmet_host_dhchap_key_show() local 2107 dhchap_secret = to_host(item)->dhchap_secret; in nvmet_host_dhchap_key_show() 2108 if (!dhchap_secret) in nvmet_host_dhchap_key_show() 2111 ret = sprintf(page, "%s\n", dhchap_secret); in nvmet_host_dhchap_key_show() 2136 u8 *dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show() local 2140 dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show() 2141 if (!dhchap_secret) in nvmet_host_dhchap_ctrl_key_show() 2144 ret = sprintf(page, "%s\n", dhchap_secret); in nvmet_host_dhchap_ctrl_key_show() 2236 kfree(host->dhchap_secret); in nvmet_host_release()
|
| H A D | nvmet.h | 381 u8 *dhchap_secret; member
|