libnvmf_scan_tls_keys-libnvme3(2)

libnvmf_scan_tls_keys-libnvme32

Iterate over tls psks in a keyring

Usage

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

Overview

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

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.