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

Minor misc fixes in tls_key() #2537

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

martin-gpy
Copy link
Contributor

No description provided.

Trivial fix to avoid printing an additional blank line if the
keyfile does not exist.

Signed-off-by: Martin George <marting@netapp.com>
Few issues with current export handling:

1) No check to see if cfg.keyfile is provided. This could lead to
incorrect export handling.

2) nvme_scan_tls_keys() can return positive values too for
successful scenarios. So return value handling needs to be modified
accordingly.

3) No helpful success message printed for proper export handling.

Fix the same.

Signed-off-by: Martin George <marting@netapp.com>
Few issues with current import handling:

1) No check to see if cfg.keyfile is provided. This could lead to a
hang when running the import option.

2) No return value checking for import_key() failure scenarios.

3) No helpful success message printed for proper import handling.

Fix the same.

Signed-off-by: Martin George <marting@netapp.com>
Print a helpful success message for proper revoke handling. And
also return the appropriate error when nvme_revoke_tls_key() fails.

Signed-off-by: Martin George <marting@netapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant