mirror of https://github.com/ctz/rustls
client_conn: reorder ClientConfig members
The `pub(crate)` members should be below the `pub` members and above the `pub(super)` members.
This commit is contained in:
parent
5138cd81e1
commit
50a656330b
|
@ -325,6 +325,12 @@ impl ClientConfig {
|
|||
}
|
||||
}
|
||||
|
||||
/// Access configuration options whose use is dangerous and requires
|
||||
/// extra care.
|
||||
pub fn dangerous(&mut self) -> danger::DangerousClientConfig<'_> {
|
||||
danger::DangerousClientConfig { cfg: self }
|
||||
}
|
||||
|
||||
/// We support a given TLS version if it's quoted in the configured
|
||||
/// versions *and* at least one ciphersuite for this version is
|
||||
/// also configured.
|
||||
|
@ -345,12 +351,6 @@ impl ClientConfig {
|
|||
.any(|cs| cs.usable_for_protocol(proto))
|
||||
}
|
||||
|
||||
/// Access configuration options whose use is dangerous and requires
|
||||
/// extra care.
|
||||
pub fn dangerous(&mut self) -> danger::DangerousClientConfig<'_> {
|
||||
danger::DangerousClientConfig { cfg: self }
|
||||
}
|
||||
|
||||
pub(super) fn find_cipher_suite(&self, suite: CipherSuite) -> Option<SupportedCipherSuite> {
|
||||
self.provider
|
||||
.cipher_suites
|
||||
|
|
Loading…
Reference in New Issue