rustls 0.5.0

Rustls is a modern TLS library written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[allow(dead_code)]
mod common;
use common::OpenSSLServer;

/* Test where the server gives certificates A -> B where the
 * validation path is A -> B -> C where C is a trust root
 * but B is not. */
#[test]
fn partial_chain() {
  let mut server = OpenSSLServer::new_rsa(3000);
  server.partial_chain();
  server.run();
  server.client()
    .verbose()
    .expect("Ciphers common between both SSL end points:")
    .go();
  server.kill();
}