docs: update prefer chacha20 option docs
This commit is contained in:
parent
53e9475c68
commit
afde990c6b
|
|
@ -288,6 +288,10 @@ impl ConnectConfiguration {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets whether the aes chacha20 preference should be enabled.
|
/// Sets whether the aes chacha20 preference should be enabled.
|
||||||
|
///
|
||||||
|
/// Controls the priority of TLS 1.3 cipher suites. When set to `true`, the client prefers:
|
||||||
|
/// AES_128_GCM, CHACHA20_POLY1305, then AES_256_GCM. Useful in environments with specific
|
||||||
|
/// encryption requirements.
|
||||||
#[cfg(not(feature = "fips"))]
|
#[cfg(not(feature = "fips"))]
|
||||||
#[corresponds(SSL_set_prefer_chacha20)]
|
#[corresponds(SSL_set_prefer_chacha20)]
|
||||||
pub fn set_prefer_chacha20(&mut self, enable: bool) {
|
pub fn set_prefer_chacha20(&mut self, enable: bool) {
|
||||||
|
|
|
||||||
|
|
@ -1910,7 +1910,11 @@ impl SslContextBuilder {
|
||||||
unsafe { ffi::SSL_CTX_set_aes_hw_override(self.as_ptr(), enable as _) }
|
unsafe { ffi::SSL_CTX_set_aes_hw_override(self.as_ptr(), enable as _) }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets whether the aes chacha20 preference should be enabled.
|
/// Sets whether the AES-ChaCha20 preference should be enabled.
|
||||||
|
///
|
||||||
|
/// Controls the priority of TLS 1.3 cipher suites. When set to `true`, the client prefers:
|
||||||
|
/// AES_128_GCM, CHACHA20_POLY1305, then AES_256_GCM. Useful in environments with specific
|
||||||
|
/// encryption requirements.
|
||||||
#[cfg(not(feature = "fips"))]
|
#[cfg(not(feature = "fips"))]
|
||||||
#[corresponds(SSL_CTX_set_prefer_chacha20)]
|
#[corresponds(SSL_CTX_set_prefer_chacha20)]
|
||||||
pub fn set_prefer_chacha20(&mut self, enable: bool) {
|
pub fn set_prefer_chacha20(&mut self, enable: bool) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue