Skip to content

Commit 2d8b398

Browse files
committed
have_min_max_version feature
1 parent a112526 commit 2d8b398

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ crate-type = ["staticlib", "rlib"]
1818
[features]
1919
vendored = ["openssl/vendored"]
2020
alpn = ["security-framework/alpn"]
21+
have_min_max_version = []
2122

2223
[target.'cfg(target_vendor = "apple")'.dependencies]
2324
security-framework = "2.0.0"

src/imp/openssl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::sync::Once;
1818

1919
use crate::{Protocol, TlsAcceptorBuilder, TlsConnectorBuilder};
2020

21-
#[cfg(have_min_max_version)]
21+
#[cfg(feature = "have_min_max_version")]
2222
fn supported_protocols(
2323
min: Option<Protocol>,
2424
max: Option<Protocol>,
@@ -41,7 +41,7 @@ fn supported_protocols(
4141
Ok(())
4242
}
4343

44-
#[cfg(not(have_min_max_version))]
44+
#[cfg(not(feature = "have_min_max_version"))]
4545
fn supported_protocols(
4646
min: Option<Protocol>,
4747
max: Option<Protocol>,

0 commit comments

Comments
 (0)