OS Manuals

libnvmf_scan_tls_keys-libnvme3(2)

libnvmf_scan_tls_keys - Iterate over TLS PSKs in a keyring

libnvmf_scan_tls_keys(9) libnvme API manual libnvmf_scan_tls_keys(9)

libnvmf_scan_tls_keys - Iterate over TLS PSKs in a keyring

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

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

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.

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

libnvmf_scan_tls_keys October 2026

nvme-cli 3.2-r0 · os · ingested 2026-10-31