Test that OwnedTrustAnchor::to_trust_anchor is public

This commit is contained in:
Joseph Birr-Pixton 2020-06-20 11:50:26 +01:00
parent e5b9210cb4
commit 1b99071bc4
1 changed files with 6 additions and 0 deletions

View File

@ -2377,3 +2377,9 @@ fn test_server_rejects_clients_without_any_kx_group_overlap() {
assert_eq!(server.process_new_packets(),
Err(TLSError::PeerIncompatibleError("no kx group overlap with client".into())));
}
#[test]
fn test_ownedtrustanchor_to_trust_anchor_is_public() {
let client_config = make_client_config(KeyType::RSA);
let _anchor: webpki::TrustAnchor = client_config.root_store.roots[0].to_trust_anchor();
}