Fix test warnings

This commit is contained in:
Steven Fackler 2017-01-21 14:43:43 +00:00
parent 0e068b4e14
commit 1ffdf8a1ab
1 changed files with 2 additions and 1 deletions

View File

@ -100,6 +100,7 @@ impl Server {
Server::new_tcp(&["-www"])
}
#[allow(dead_code)]
fn new_alpn() -> (Server, TcpStream) {
Server::new_tcp(&["-www",
"-nextprotoneg",
@ -1428,7 +1429,7 @@ fn status_callbacks() {
let response = OcspResponse::from_der(ssl.ocsp_status().unwrap()).unwrap();
assert_eq!(response.status(), RESPONSE_STATUS_UNAUTHORIZED);
Ok(true)
});
}).unwrap();
let mut ssl = Ssl::new(&ctx.build()).unwrap();
ssl.set_status_type(STATUS_TYPE_OCSP).unwrap();
ssl.connect(stream).unwrap();