mirror of https://github.com/ctz/rustls
Test that OwnedTrustAnchor::to_trust_anchor is public
This commit is contained in:
parent
e5b9210cb4
commit
1b99071bc4
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue