fn client_verifier_works() {
        for kt in ALL_KEY_TYPES.iter() {
            let client_verifier = MockClientVerifier {
                verified: ver_ok,
                subjects: Some(get_client_root_store(*kt).get_subjects()),
                mandatory: Some(true),
                offered_schemes: None,
            };

            let mut server_config = ServerConfig::new(Arc::new(client_verifier));
            server_config.set_single_cert(kt.get_chain(), kt.get_key()).unwrap();

            let server_config = Arc::new(server_config);
            let client_config = make_client_config_with_auth(*kt);

            for client_config in AllClientVersions::new(client_config) {
                let (mut client, mut server) = make_pair_for_arc_configs(&Arc::new(client_config.clone()),
                                                                     &server_config);
                let err = do_handshake_until_error(&mut client, &mut server);
                assert_eq!(err, Ok(()));
            }
        }
    }
// Happy path, we resolve to a root, it is verified OK, should be able to connect
Happy path, we resolve to a root, it is verified OK, should be able to connect
Happy path we resolve to a root it is verified OK should be able to connect
fn client_verifier_works() {
        for kt in ALL_KEY_TYPES.iter() {
            let client_verifier = MockClientVerifier {
                verified: ver_ok,
                subjects: Some(get_client_root_store(*kt).get_subjects()),
                mandatory: Some(true),
                offered_schemes: None,
            };
            let mut server_config = ServerConfig::new(Arc::new(client_verifier));
            server_config.set_single_cert(kt.get_chain(), kt.get_key()).unwrap();
            let server_config = Arc::new(server_config);
            let client_config = make_client_config_with_auth(*kt);
            for client_config in AllClientVersions::new(client_config) {
                let (mut client, mut server) = make_pair_for_arc_configs(&Arc::new(client_config.clone()),
                                                                     &server_config);
                let err = do_handshake_until_error(&mut client, &mut server);
                assert_eq!(err, Ok(()));
            }
        }
    }
fn client_verifier_works ( ) { for kt in ALL_KEY_TYPES . iter ( ) { let client_verifier = MockClientVerifier { verified : ver_ok , subjects : Some ( get_client_root_store ( * kt ) . get_subjects ( ) ) , mandatory : Some ( true ) , offered_schemes : None , } ; let mut server_config = ServerConfig :: new ( Arc :: new ( client_verifier ) ) ; server_config . set_single_cert ( kt . get_chain ( ) , kt . get_key ( ) ) . unwrap ( ) ; let server_config = Arc :: new ( server_config ) ; let client_config = make_client_config_with_auth ( * kt ) ; for client_config in AllClientVersions :: new ( client_config ) { let ( mut client , mut server ) = make_pair_for_arc_configs ( & Arc :: new ( client_config . clone ( ) ) , & server_config ) ; let err = do_handshake_until_error ( & mut client , & mut server ) ; assert_eq ! ( err Ok ( ( ) ) ) ; } } }
Happy path, we resolve to a root, it is verified OK, should be able to connect
Happy path we resolve to a root it is verified OK should be able to connect