# TlsContextOptions

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

Options for opening one TLS context.

```ds title="TlsContextOptions"
export struct TlsContextOptions {
    role: TlsRole;
    minVersion: TlsVersion;
    maxVersion: TlsVersion;
    verifyPeer: boolean;
    alpnProtocols: [[uint8]];
}
```

[language/library/src/tls/binding/context.ds:46:57](https://github.com/destack-sh/destack/blob/main/language/library/src/tls/binding/context.ds#L46-L57)

## Members

### `role: TlsRole`

Client or server role.

### `minVersion: TlsVersion`

Minimum protocol version.

### `maxVersion: TlsVersion`

Maximum protocol version.

### `verifyPeer: boolean`

Require peer certificate validation.

### `alpnProtocols: [[uint8]]`

Application layer protocol identifiers in preference order.
