# TlsHostnameVerificationMode

`import { TlsHostnameVerificationMode } from "destack:tls/binding";`

TLS hostname verification mode.

```ds title="TlsHostnameVerificationMode"
export enum TlsHostnameVerificationMode {
    Strict = 0,
    AllowMismatch = 1,
    Disabled = 2,
}
```

[language/library/src/tls/binding/context.ds:24:31](https://github.com/destack-sh/destack/blob/main/language/library/src/tls/binding/context.ds#L24-L31)

## Variants

### `Strict = 0`

Enforce strict hostname verification against the expected server name.

### `AllowMismatch = 1`

Permit hostname mismatch while still validating certificate trust.

### `Disabled = 2`

Disable hostname verification checks.
