Scroll to navigation

libnvmf_scan_tls_keys(2) libnvme API manual libnvmf_scan_tls_keys(2)

NAME

libnvmf_scan_tls_keys - Iterate over TLS PSKs in a keyring

SYNOPSIS

int libnvmf_scan_tls_keys (struct libnvme_global_ctx *ctx , const char *keyring , libnvmf_scan_tls_keys_cb_t cb , void *data );

ARGUMENTS

struct libnvme_global_ctx object
Keyring holding TLS PSKs
Callback function
Pointer for data to be passed to cb

DESCRIPTION

Iterates keyring and call cb for each TLS PSK. When keyring is NULL the default '.nvme' keyring is used. A key holding a TLS PSK must be of type 'psk' and its description must be of the form 'NVMe<0|1><R|G><01|02> <identity>', otherwise it will be skipped during iteration.

RETURN

Number of keys for which cb was called, or negative error code

libnvmf_scan_tls_keys October 2026