nvme_import...ey_versioned(2)

πŸ’– nvme_import_tls_key_versioned(2) πŸ’–

okay bestie, so this one is a libnvme API manual page and it's literally called nvme_import_tls_key_versioned β€” the way this function is just here to tango with your TLS keys? iconic behavior, no notes. πŸŽ€


✨ NAME ✨

nvme_import_tls_key_versioned β€” Import a TLS key πŸ¦‹


✨ SYNOPSIS ✨

unsigned char * nvme_import_tls_key_versioned (const char *encoded_key ,
       unsigned char *version , unsigned char *hmac , size_t *key_len );

✨ ARGUMENTS ✨

  • encoded_key β€” your TLS key, chillin' in PSK interchange format 🌸
  • version β€” tells you which representation of the TLS PSK we're dealing with πŸ‘‘
  • hmac β€” the HMAC algorithm that's used to transform the configured PSK into a retained PSK πŸ”₯
  • key_len β€” the length of the resulting key data, periodt πŸ“

✨ DESCRIPTION ✨

So basically it imports key_data in the PSK Interchange format β€” and that format is exactly as defined in section 3.6.1.5 of the NVMe TCP Transport specification. iykyk. πŸ’…


✨ RETURN ✨

You get back the raw data of the PSK 🫢 β€” or NULL with errno set if something went wrong 😭.

bestie, listen: it is the responsibility of the caller to free the returned string. like, that's on you. don't ghost it, free it. 🧚

and that's the whole page, no cap. ✨ written for the libnvme API manual, dated July 2026 β€” love that for us, mwah πŸ’œπŸ’–

πŸ“¦ where this page comes from