Skip to content

Commit 1144da5

Browse files
committed
linux: do not return w/o OpenSSL support enabled
__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]>
1 parent 89ea2b7 commit 1144da5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/nvme/linux.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,10 @@ long nvme_revoke_tls_key(const char *keyring, const char *key_type,
16811681
int __nvme_import_keys_from_config(nvme_host_t h, nvme_ctrl_t c,
16821682
long *keyring_id, long *key_id)
16831683
{
1684-
return -ENOTSUP;
1684+
*keyring_id = 0;
1685+
*key_id = 0;
1686+
1687+
return 0;
16851688
}
16861689
#endif
16871690

0 commit comments

Comments
 (0)