Skip to content

Commit

Permalink
linux: do not return w/o OpenSSL support enabled
Browse files Browse the repository at this point in the history
__nvme_import_keys_from_config is helper to import the TLS keys. When we
don't have OpenSSL builds enabled, this should be a no op. Thus don't
return an error in this case.

Signed-off-by: Daniel Wagner <[email protected]>
  • Loading branch information
igaw committed Nov 8, 2024
1 parent 89ea2b7 commit 1144da5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nvme/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,10 @@ long nvme_revoke_tls_key(const char *keyring, const char *key_type,
int __nvme_import_keys_from_config(nvme_host_t h, nvme_ctrl_t c,
long *keyring_id, long *key_id)
{
return -ENOTSUP;
*keyring_id = 0;
*key_id = 0;

return 0;
}
#endif

Expand Down

0 comments on commit 1144da5

Please sign in to comment.