---
name: "nvme_export_tls_key"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_export_tls_key"
---

# nvme\_export\_tls\_key(2)

Export a TLS key

## NAME

nvme\_export\_tls\_key - Export a TLS key

## SYNOPSIS

**char \* nvme\_export\_tls\_key** **(const unsigned char \*key\_data** *,* **int key\_len** *);*

## ARGUMENTS

- key\_data

  Raw data of the key

- key\_len

  Length of *key\_data*

## DESCRIPTION

Returns *key\_data* in the PSK Interchange format as defined in section 3.6.1.5 of the NVMe TCP Transport specification.

## RETURN

The string containing the TLS identity or NULL with errno set on error. It is the responsibility of the caller to free the returned string.
