aboutsummaryrefslogtreecommitdiff
path: root/openssl/src
diff options
context:
space:
mode:
authorBenjamin Fry <[email protected]>2017-02-14 23:50:34 -0800
committerBenjamin Fry <[email protected]>2017-02-16 19:49:14 -0800
commitd080c10910706e778f9063b8b63aed2a7b3b8768 (patch)
tree31d6d42f8cae0f5540b8ffe07c1ecf2893d83add /openssl/src
parentadd set_verify_cert_store() to ssl ctx (diff)
downloadrust-openssl-d080c10910706e778f9063b8b63aed2a7b3b8768.tar.xz
rust-openssl-d080c10910706e778f9063b8b63aed2a7b3b8768.zip
fix cfg options for v102 and v110
Diffstat (limited to 'openssl/src')
-rw-r--r--openssl/src/ssl/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index bcfcadf9..899ff1a6 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -99,7 +99,7 @@ use ec::EcKeyRef;
use ec::EcKey;
use x509::{X509StoreContextRef, X509FileType, X509, X509Ref, X509VerifyError, X509Name};
use x509::store::{X509StoreBuilderRef, X509StoreRef};
-#[cfg(any(all(feature = "v101", ossl101), all(feature = "v102", ossl102)))]
+#[cfg(any(all(feature = "v102", ossl102), all(feature = "v110", ossl110)))]
use x509::store::X509Store;
#[cfg(any(ossl102, ossl110))]
use verify::X509VerifyParamRef;
@@ -655,7 +655,7 @@ impl SslContextBuilder {
}
/// Sets a custom X509Store for verifying peer certificates
- #[cfg(any(all(feature = "v101", ossl101), all(feature = "v102", ossl102)))]
+ #[cfg(any(all(feature = "v102", ossl102), all(feature = "v110", ossl110)))]
pub fn set_verify_cert_store(&mut self, cert_store: X509Store) -> Result<(), ErrorStack> {
unsafe {
// set0 will free, set1 increments, and then requires a free