Skip to main content

Module alpn

Module alpn 

Available on crate feature tls only.
Expand description

Application protocol agreement and ALPN wire validation.

Structs§

AlpnRouter
Routes input whose TLS handshake negotiated protocol to inner, and everything else to the fallback, which rejects by default.
UnsupportedAlpnError
The default fallback’s rejection: nothing routes the negotiated protocol, or none was.

Enums§

AlpnError
Invalid or missing ALPN configuration.

Functions§

required_alpn_override
The protocol to offer instead of offered, or None to keep the offer.
validate_alpn
Validate the protocol entries and the complete TLS extension body length.