Little cfg cleanup

This commit is contained in:
Steven Fackler 2016-10-31 22:45:51 -07:00
parent dc4098bdd8
commit f71395c600
1 changed files with 2 additions and 2 deletions

View File

@ -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;