Lines Matching full:rustls
14 /// `native-tls` or `rustls` is used to create a TLS connection. Or TLS can be disabled with the
24 /// `rustls` TLS connector.
26 Rustls(std::sync::Arc<rustls::ClientConfig>), enumerator
72 pub mod rustls { module
73 use rustls::{ClientConfig, ClientConnection, RootCertStore, StreamOwned};
106 #[cfg(feature = "rustls-tls-native-roots")] in wrap_stream()
114 #[cfg(feature = "rustls-tls-webpki-roots")] in wrap_stream()
129 let client = ClientConnection::new(config, domain).map_err(TlsError::Rustls)?; in wrap_stream()
132 Ok(MaybeTlsStream::Rustls(stream)) in wrap_stream()
206 Connector::Rustls(conn) => { in client_tls_with_config()
207 self::encryption::rustls::wrap_stream(stream, &domain, mode, Some(conn)) in client_tls_with_config()
218 self::encryption::rustls::wrap_stream(stream, &domain, mode, None) in client_tls_with_config()