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

# nvme\_ctrl\_set\_dhchap\_host\_key(2)

Set host key

## NAME

nvme\_ctrl\_set\_dhchap\_host\_key - Set host key

## SYNOPSIS

**void nvme\_ctrl\_set\_dhchap\_host\_key** **(nvme\_ctrl\_t c** *,* **const char \*key** *);*

## ARGUMENTS

- c

  Host for which the key should be set

- key

  DH-HMAC-CHAP Key to set or NULL to clear existing key
