Searched refs:dhchap_secret (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/nvme/host/ |
| H A D | sysfs.c | 818 if (!opts->dhchap_secret) in nvme_ctrl_dhchap_secret_show() 820 return sysfs_emit(buf, "%s\n", opts->dhchap_secret); in nvme_ctrl_dhchap_secret_show() 828 char *dhchap_secret; in nvme_ctrl_dhchap_secret_store() local 830 if (!ctrl->opts->dhchap_secret) in nvme_ctrl_dhchap_secret_store() 837 dhchap_secret = kzalloc(count + 1, GFP_KERNEL); in nvme_ctrl_dhchap_secret_store() 838 if (!dhchap_secret) in nvme_ctrl_dhchap_secret_store() 840 memcpy(dhchap_secret, buf, count); in nvme_ctrl_dhchap_secret_store() 842 if (strcmp(dhchap_secret, opts->dhchap_secret)) { in nvme_ctrl_dhchap_secret_store() 846 ret = nvme_auth_parse_key(dhchap_secret, &key); in nvme_ctrl_dhchap_secret_store() 848 kfree(dhchap_secret); in nvme_ctrl_dhchap_secret_store() [all …]
|
| H A D | fabrics.c | 1035 kfree(opts->dhchap_secret); in nvmf_parse_options() 1036 opts->dhchap_secret = p; in nvmf_parse_options() 1106 if (!opts->dhchap_secret) { in nvmf_parse_options() 1295 kfree_sensitive(opts->dhchap_secret); in nvmf_free_options()
|
| H A D | auth.c | 1025 ret = nvme_auth_parse_key(ctrl->opts->dhchap_secret, &ctrl->host_key); in nvme_auth_init_ctrl() 1033 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 | 2124 u8 *dhchap_secret; in nvmet_host_dhchap_key_show() local 2128 dhchap_secret = to_host(item)->dhchap_secret; in nvmet_host_dhchap_key_show() 2129 if (!dhchap_secret) in nvmet_host_dhchap_key_show() 2132 ret = sprintf(page, "%s\n", dhchap_secret); in nvmet_host_dhchap_key_show() 2157 u8 *dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show() local 2161 dhchap_secret = to_host(item)->dhchap_ctrl_secret; in nvmet_host_dhchap_ctrl_key_show() 2162 if (!dhchap_secret) in nvmet_host_dhchap_ctrl_key_show() 2165 ret = sprintf(page, "%s\n", dhchap_secret); in nvmet_host_dhchap_ctrl_key_show() 2255 kfree(host->dhchap_secret); in nvmet_host_release()
|
| H A D | nvmet.h | 386 u8 *dhchap_secret; member
|
| /linux/Documentation/ABI/stable/ |
| H A D | sysfs-nvme | 169 What: /sys/class/nvme/nvmeX/dhchap_secret 175 dhchap_secret: Shows or sets the host DH-HMAC-CHAP secret 182 Same format as dhchap_secret.
|