Skip to content

Commit 51e6257

Browse files
committed
linux: rename __nvme_insert_tls_key() to __nvme_import_tls_key()
The function __nvme_insert_tls_key() is only called from __nvme_import_keys_from_config(), so rename it to __nvme_import_tls_key() to avoid a name clash with __nvme_insert_tls_key_versioned(). Signed-off-by: Hannes Reinecke <[email protected]>
1 parent 0157f81 commit 51e6257

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/nvme/linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ long nvme_revoke_tls_key(const char *keyring, const char *key_type,
14191419
return keyctl_revoke(key);
14201420
}
14211421

1422-
static long __nvme_insert_tls_key(long keyring_id,
1422+
static long __nvme_import_tls_key(long keyring_id,
14231423
const char *hostnqn, const char *subsysnqn,
14241424
const char *identity, const char *key)
14251425
{
@@ -1498,7 +1498,7 @@ int __nvme_import_keys_from_config(nvme_host_t h, nvme_ctrl_t c,
14981498
id = nvme_lookup_key("psk", identity);
14991499

15001500
if (!id)
1501-
id = __nvme_insert_tls_key(kr_id, hostnqn,
1501+
id = __nvme_import_tls_key(kr_id, hostnqn,
15021502
subsysnqn, identity, key);
15031503

15041504
if (id <= 0) {

0 commit comments

Comments
 (0)