aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Denis <[email protected]>2015-09-25 15:23:52 +0200
committerFrank Denis <[email protected]>2015-09-25 15:23:52 +0200
commitccc6d07da3b01fef78d9bc109aab8edd9ec4ccf1 (patch)
treedb9a0ff2d3e9159768c33a7177b428c862e10c98
parentAdd SSL::set_ecdh_auto() (diff)
downloadrust-openssl-ccc6d07da3b01fef78d9bc109aab8edd9ec4ccf1.tar.xz
rust-openssl-ccc6d07da3b01fef78d9bc109aab8edd9ec4ccf1.zip
Add an ecdh_auto description
-rw-r--r--openssl/src/ssl/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index 40e06e93..a0553b44 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -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(