blob: e73e637958191114955cbfbf3344eb6eb60c3f86 [file] [log] [blame]
// Engineer a handshake using each suite supported by both
// us and openssl
#[allow(dead_code)]
mod common;
use crate::common::OpenSSLServer;
#[test]
fn ecdhe_rsa_aes_128_gcm_sha256() {
let mut server = OpenSSLServer::new_rsa(5000);
server.run();
server.client()
.verbose()
.suite("TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256")
.expect("Ciphers common between both SSL end points:\nECDHE-RSA-AES128-GCM-SHA256")
.go();
server.kill();
}
#[test]
fn ecdhe_rsa_aes_256_gcm_sha384() {
let mut server = OpenSSLServer::new_rsa(5010);
server.run();
server.client()
.verbose()
.suite("TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384")
.expect("Ciphers common between both SSL end points:\nECDHE-RSA-AES256-GCM-SHA384")
.go();
server.kill();
}
#[test]
fn ecdhe_ecdsa_aes_128_gcm_sha256() {
let mut server = OpenSSLServer::new_ecdsa(5020);
server.run();
server.client()
.verbose()
.suite("TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256")
.expect("Ciphers common between both SSL end points:\nECDHE-ECDSA-AES128-GCM-SHA256")
.go();
server.kill();
}
#[test]
fn ecdhe_ecdsa_aes_256_gcm_sha384() {
let mut server = OpenSSLServer::new_ecdsa(5030);
server.run();
server.client()
.verbose()
.suite("TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384")
.expect("Ciphers common between both SSL end points:\nECDHE-ECDSA-AES256-GCM-SHA384")
.go();
server.kill();
}