#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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 by the policy: the provider verifies them with every algorithm the module does
not refuse (decision 0018). 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.