blob: 2c485425905fb454216a6309ce6507d42293cae0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
.TH "nvme_scan_tls_keys" 9 "nvme_scan_tls_keys" "October 2024" "libnvme API manual" LINUX
.SH NAME
nvme_scan_tls_keys \- Iterate over TLS keys in a keyring
.SH SYNOPSIS
.B "int" nvme_scan_tls_keys
.BI "(const char *keyring " ","
.BI "nvme_scan_tls_keys_cb_t cb " ","
.BI "void *data " ");"
.SH ARGUMENTS
.IP "keyring" 12
Keyring holding TLS keys
.IP "cb" 12
Callback function
.IP "data" 12
Pointer for data to be passed to \fIcb\fP
.SH "DESCRIPTION"
Iterates \fIkeyring\fP and call \fIcb\fP for each TLS key. When \fIkeyring\fP is NULL
the default '.nvme' keyring is used.
A TLS key must be of type 'psk' and the description must be of the
form 'NVMe<0|1><R|G>0<1|2> <identity>', otherwise it will be skipped
during iteration.
.SH "RETURN"
Number of keys for which \fIcb\fP was called, or -1 with errno set
on error.
|