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
- ctx
-
struct libnvme_global_ctx object
- keyring
-
Keyring holding TLS PSKs
- cb
-
Callback function
- data
-
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