pub struct Policy {
pub versions: Vec<TlsVersion>,
pub cipher_suites: Vec<CipherSuite>,
pub kx_groups: Vec<KxGroup>,
pub signature_schemes: Vec<TlsSignatureScheme>,
pub peer_certificate_rule: Option<PeerCertificateRuleId>,
}Expand description
What a TLS configuration may use: versions, suites and groups in preference order, and a set of signature schemes. No list may name an entry twice.
Fields§
§versions: Vec<TlsVersion>Protocol versions.
cipher_suites: Vec<CipherSuite>Cipher suites; a suite whose version is not in versions is not offered.
kx_groups: Vec<KxGroup>Key-exchange groups.
signature_schemes: Vec<TlsSignatureScheme>Handshake signature schemes: those this side accepts from its peer, and those a key loaded
through this policy’s provider signs with. Certificate-chain signature algorithms are not
restricted. A provider carries them in TlsSignatureScheme::preference order,
the order every profile lists them in, whatever order they are given in.
peer_certificate_rule: Option<PeerCertificateRuleId>Canonical peer-certificate restrictions; hand-written policies default to none.
Trait Implementations§
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more