Function tls_connect
pub async fn tls_connect<T>(
stream: T,
connector_data: Option<TlsConnectorData>,
) -> Result<TlsStream<T>, TlsConnectError<T>>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.