libnvmf_scan_tls_keys(9)
π libnvmf_scan_tls_keys
okay so bestie, welcome to the libnvme API manual β this little page is all about libnvmf_scan_tls_keys(9), and honestly? it's a vibe. β¨
π 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β yourstruct libnvme_global_ctxobject, the main character of this whole operation tbh πkeyringβ the keyring that's holding all those TLS PSKs, like the little purse where the secrets live πcbβ the callback function, aka the thing that gets called for each one, no capdataβ a pointer for data that gets passed along tocb, lowkey just a little care package π
π DESCRIPTION
So here's the tea: it iterates over keyring and calls cb for each TLS PSK it finds. Fr fr, that's the whole gig. π«Ά
When keyring is NULL, the default '.nvme' keyring is used β iconic default behavior, we love to see it. π
Now, plot twist π: a key that's 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>'. If it's not giving that exact energy, it gets skipped during iteration. Periodt. β
ngl bestie, if your key isn't shaped like'psk'with that'NVMe<0|1><R|G><01|02> <identity>'description, it's literally not coming to the party β skipped, done, bye. π
π₯ RETURN
It returns the number of keys for which cb was called β or a negative error code if things went sideways π
and that's the whole page, bestie! π this gem is from the libnvmf_scan_tls_keys era, October 2026 β the same name up top and in the footer, which is honestly giving symmetry slay. go forth and scan those keys! ππ§π
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms