Remove ossl110g feature gate
This commit is contained in:
parent
96d14f9e4b
commit
0da810d4d5
|
|
@ -193,7 +193,6 @@ fn main() {
|
|||
cfgs.push("ossl102h");
|
||||
cfgs.push("ossl110");
|
||||
cfgs.push("ossl110f");
|
||||
cfgs.push("ossl110g");
|
||||
|
||||
for cfg in cfgs {
|
||||
println!("cargo:rustc-cfg={}", cfg);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ fn main() {
|
|||
cfgs.push("ossl102h");
|
||||
cfgs.push("ossl110");
|
||||
cfgs.push("ossl110f");
|
||||
cfgs.push("ossl110g");
|
||||
|
||||
for cfg in cfgs {
|
||||
println!("cargo:rustc-cfg={}", cfg);
|
||||
|
|
|
|||
|
|
@ -1054,7 +1054,6 @@ impl SslContextBuilder {
|
|||
/// Requires OpenSSL 1.1.0g or LibreSSL 2.7.0 or newer.
|
||||
///
|
||||
/// [`SSL_CTX_get_min_proto_version`]: https://www.openssl.org/docs/man1.1.0/ssl/SSL_set_min_proto_version.html
|
||||
#[cfg(any(ossl110g, libressl270))]
|
||||
pub fn min_proto_version(&mut self) -> Option<SslVersion> {
|
||||
unsafe {
|
||||
let r = ffi::SSL_CTX_get_min_proto_version(self.as_ptr());
|
||||
|
|
@ -1076,7 +1075,6 @@ impl SslContextBuilder {
|
|||
/// Requires OpenSSL 1.1.0g or LibreSSL 2.7.0 or newer.
|
||||
///
|
||||
/// [`SSL_CTX_get_max_proto_version`]: https://www.openssl.org/docs/man1.1.0/ssl/SSL_set_min_proto_version.html
|
||||
#[cfg(any(ossl110g, libressl270))]
|
||||
pub fn max_proto_version(&mut self) -> Option<SslVersion> {
|
||||
unsafe {
|
||||
let r = ffi::SSL_CTX_get_max_proto_version(self.as_ptr());
|
||||
|
|
|
|||
|
|
@ -1010,7 +1010,6 @@ fn no_version_overlap() {
|
|||
.ctx()
|
||||
.set_max_proto_version(Some(SslVersion::TLS1_1))
|
||||
.unwrap();
|
||||
#[cfg(any(ossl110g, libressl270))]
|
||||
assert_eq!(server.ctx().max_proto_version(), Some(SslVersion::TLS1_1));
|
||||
server.should_error();
|
||||
let server = server.build();
|
||||
|
|
@ -1020,7 +1019,6 @@ fn no_version_overlap() {
|
|||
.ctx()
|
||||
.set_min_proto_version(Some(SslVersion::TLS1_2))
|
||||
.unwrap();
|
||||
#[cfg(ossl110g)]
|
||||
assert_eq!(client.ctx().min_proto_version(), Some(SslVersion::TLS1_2));
|
||||
client.ctx().set_max_proto_version(None).unwrap();
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ fn main() {
|
|||
cfgs.push("ossl102h");
|
||||
cfgs.push("ossl110");
|
||||
cfgs.push("ossl110f");
|
||||
cfgs.push("ossl110g");
|
||||
|
||||
for c in cfgs {
|
||||
cfg.cfg(c, None);
|
||||
|
|
|
|||
Loading…
Reference in New Issue