Searched refs:dhchap_secret (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/nvme/host/ |
H A D | sysfs.c | 556 if (!opts->dhchap_secret) in nvme_ctrl_dhchap_secret_show() 558 return sysfs_emit(buf, "%s\n", opts->dhchap_secret); in nvme_ctrl_dhchap_secret_show() 566 char *dhchap_secret; in nvme_ctrl_dhchap_secret_store() local 568 if (!ctrl->opts->dhchap_secret) in nvme_ctrl_dhchap_secret_store() 575 dhchap_secret = kzalloc(count + 1, GFP_KERNEL); in nvme_ctrl_dhchap_secret_store() 576 if (!dhchap_secret) in nvme_ctrl_dhchap_secret_store() 578 memcpy(dhchap_secret, buf, count); in nvme_ctrl_dhchap_secret_store() 580 if (strcmp(dhchap_secret, opts->dhchap_secret)) { in nvme_ctrl_dhchap_secret_store() 584 ret = nvme_auth_generate_key(dhchap_secret, &key); in nvme_ctrl_dhchap_secret_store() 586 kfree(dhchap_secret); in nvme_ctrl_dhchap_secret_store() [all …]
|
H A D | fabrics.h | 128 char *dhchap_secret; member
|
H A D | fabrics.c | 1031 kfree(opts->dhchap_secret); in nvmf_parse_options() 1032 opts->dhchap_secret = p; in nvmf_parse_options() 1265 kfree(opts->dhchap_secret); in nvmf_free_options()
|
H A D | auth.c | 947 ret = nvme_auth_generate_key(ctrl->opts->dhchap_secret, in nvme_auth_init_ctrl() 956 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() 56 dhchap_secret = kstrdup(secret, GFP_KERNEL); in nvmet_auth_set_key() 57 if (!dhchap_secret) in nvmet_auth_set_key() 62 host->dhchap_ctrl_secret = strim(dhchap_secret); in nvmet_auth_set_key() 65 kfree(host->dhchap_secret); in nvmet_auth_set_key() 66 host->dhchap_secret = strim(dhchap_secret); in nvmet_auth_set_key() 175 if (!host->dhchap_secret) { in nvmet_setup_auth() 189 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 | 370 u8 *dhchap_secret; member
|