Add an ecdh_auto description

This commit is contained in:
Frank Denis 2015-09-25 15:23:52 +02:00
parent 28320a65a7
commit ccc6d07da3
1 changed files with 4 additions and 0 deletions

View File

@ -570,6 +570,10 @@ impl SslContext {
})
}
/// If `onoff` is set to `true`, enable ECDHE for key exchange with compatible
/// clients, and automatically select an appropriate elliptic curve.
///
/// This method requires OpenSSL >= 1.2.0 or LibreSSL and the `ecdh_auto` feature.
#[cfg(feature = "ecdh_auto")]
pub fn set_ecdh_auto(&mut self, onoff: bool) -> Result<(),SslError> {
wrap_ssl_result(