[][src]Function trust_dns_rustls::tls_client_stream::tls_client_connect

pub fn tls_client_connect(
    name_server: SocketAddr,
    dns_name: String,
    client_config: Arc<ClientConfig>
) -> (Box<dyn Future<Item = TlsClientStream, Error = ProtoError> + Send>, BufDnsStreamHandle)

Creates a new TlsStream to the specified name_server

Arguments

  • name_server - IP and Port for the remote DNS resolver
  • dns_name - The DNS name, Subject Public Key Info (SPKI) name, as associated to a certificate