Skip to main content

tls_connect

Function tls_connect 

pub async fn tls_connect<T>(
    stream: T,
    connector_data: Option<TlsConnectorData>,
) -> Result<TlsStream<T>, TlsConnectError<T>>
where T: Io + Unpin + ExtensionsRef,
Available on crate feature boring only.
Expand description

Establish a TLS connection with the fully resolved connector data.

Normal verification requires a server identity. Identity-less connections are available only through an explicit ServerVerifyMode::Disable.