diff options
| author | Benjamin Fry <[email protected]> | 2017-01-22 22:24:45 -0800 |
|---|---|---|
| committer | Benjamin Fry <[email protected]> | 2017-01-22 22:24:45 -0800 |
| commit | 225552b823dba58cc2d7f17f86d92e3dcedb3138 (patch) | |
| tree | c07cd74fdc73fd59fd84f9974c50b7318c8b9654 /openssl/src/ssl/mod.rs | |
| parent | add some documentation (diff) | |
| parent | Merge pull request #550 from Keruspe/master (diff) | |
| download | rust-openssl-225552b823dba58cc2d7f17f86d92e3dcedb3138.tar.xz rust-openssl-225552b823dba58cc2d7f17f86d92e3dcedb3138.zip | |
Merge branch 'master' of github.com:sfackler/rust-openssl
Diffstat (limited to 'openssl/src/ssl/mod.rs')
| -rw-r--r-- | openssl/src/ssl/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 2fc7605a..dd7f72cc 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -828,12 +828,12 @@ impl SslContextBuilder { /// Enables ECDHE key exchange with an automatically chosen curve list. /// /// Requires the `v102` feature and OpenSSL 1.0.2. - #[cfg(all(feature = "v102", ossl102))] + #[cfg(all(feature = "v102", any(ossl102, libressl)))] pub fn set_ecdh_auto(&mut self, onoff: bool) -> Result<(), ErrorStack> { self._set_ecdh_auto(onoff) } - #[cfg(ossl102)] + #[cfg(any(ossl102,libressl))] fn _set_ecdh_auto(&mut self, onoff: bool) -> Result<(), ErrorStack> { unsafe { cvt(ffi::SSL_CTX_set_ecdh_auto(self.as_ptr(), onoff as c_int)).map(|_| ()) } } |