Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvme: print inserted tls key for check-tls-key #2181

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -8767,14 +8767,15 @@ static int check_tls_key(int argc, char **argv, struct command *command, struct
nvme_show_error("Failed to insert key, error %d", errno);
return -errno;
}
printf("Inserted TLS key %08x\n", (unsigned int)tls_key);
} else {
char *tls_id;

tls_id = nvme_generate_tls_key_identity(cfg.hostnqn,
cfg.subsysnqn, cfg.identity,
hmac, decoded_key, decoded_len);
if (!tls_id) {
nvme_show_error("Failed to generated identity, error %d",
nvme_show_error("Failed to generate identity, error %d",
errno);
return -errno;
}
Expand Down