OS Manuals

libnvmf_export_tls_key-libnvme3(2)

libnvmf_export_tls_key - Encode a PSK in the PSK interchange format

libnvmf_export_tls_key(9) libnvme API manual libnvmf_export_tls_key(9)

libnvmf_export_tls_key - Encode a PSK in the PSK interchange format

int libnvmf_export_tls_key (struct libnvme_global_ctx *ctx , const unsigned char *key_data , int key_len , char **encoded_keyp );

struct libnvme_global_ctx object
Raw PSK data
Length of key_data
Encoded PSK to return

Returns key_data in the PSK Interchange format as defined in section 3.6.1.5 of the NVMe TCP Transport Specification 1.3.

It is the responsibility of the caller to free the returned string.

0 on success, negative error code otherwise.

libnvmf_export_tls_key October 2026

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