Little cfg cleanup
This commit is contained in:
parent
dc4098bdd8
commit
f71395c600
|
|
@ -242,7 +242,7 @@ fn setup_verify(ssl: &mut Ssl, domain: &str) -> Result<(), ErrorStack> {
|
||||||
param.set_host(domain)
|
param.set_host(domain)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(any(ossl102, ossl110)))]
|
#[cfg(ossl101)]
|
||||||
fn setup_verify(ssl: &mut Ssl, domain: &str) -> Result<(), ErrorStack> {
|
fn setup_verify(ssl: &mut Ssl, domain: &str) -> Result<(), ErrorStack> {
|
||||||
let domain = domain.to_owned();
|
let domain = domain.to_owned();
|
||||||
ssl.set_verify_callback(SSL_VERIFY_PEER,
|
ssl.set_verify_callback(SSL_VERIFY_PEER,
|
||||||
|
|
@ -250,7 +250,7 @@ fn setup_verify(ssl: &mut Ssl, domain: &str) -> Result<(), ErrorStack> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(any(ossl102, ossl110)))]
|
#[cfg(ossl101)]
|
||||||
mod verify {
|
mod verify {
|
||||||
use std::net::IpAddr;
|
use std::net::IpAddr;
|
||||||
use std::str;
|
use std::str;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue