Teals.Config (teals v0.1.0)

Copy Markdown View Source

A TLS 1.3 server configuration, built once by Teals.config/1 and shared by every connection that uses it.

The certificate's private key stays inside the native handle: it is not a field of this struct, so inspecting or logging a configuration never shows it.

Summary

Types

t()

Client certificate verification mode.

Functions

The ALPN protocols offered, in preference order.

How long, in milliseconds, closing may take to flush queued data.

The client certificate verification mode.

Types

t()

@opaque t()

verify()

@type verify() :: :none | :request | :optional | :required

Client certificate verification mode.

Functions

alpn(config)

@spec alpn(t()) :: [binary()]

The ALPN protocols offered, in preference order.

close_timeout(config)

@spec close_timeout(t()) :: pos_integer()

How long, in milliseconds, closing may take to flush queued data.

verify(config)

@spec verify(t()) :: verify()

The client certificate verification mode.