Skip to main content

resolve_target_ech

Function resolve_target_ech 

pub fn resolve_target_ech(
    extensions: &Extensions,
    target: &HostWithPort,
    backend_supports_ech: bool,
) -> Result<TargetEchResolution, Box<dyn Error + Sync + Send>>
Available on crate feature tls only.
Expand description

Resolve ECH for the actual TLS hop from effective caller/connector settings.

The caller supplies the hop endpoint, not a potentially stale proxy routing override. The result contains only a matching configuration. This helper does no DNS and can be used by unsupported backends to enforce required ECH too. Native backends still validate supported configuration contents and require acceptance after the handshake.