Skip to main content

Module tls

Module tls 

Source
Expand description

TLS configuration from a Policy: which versions, cipher suites, key-exchange groups and handshake signature schemes a provider carries, in preference order.

Structs§

ClientVerifierBuilder
A client-certificate verifier builder preserving hints, authentication and revocation modes.
ClientVerifierHandle
An owned client-certificate verifier bound to its rule and handshake schemes.
Policy
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.
ServerVerifierBuilder
A server-certificate verifier builder preserving baseline revocation configuration.
ServerVerifierHandle
An owned server-certificate verifier bound to its rule and handshake schemes.

Enums§

ClientVerifierInput
Input to strict server completion. Opaque verifiers are rejection-only.
ServerVerifierInput
Input to strict client completion. Opaque verifiers are rejection-only.

Functions§

assert_provider_matches
Refuses a provider that does not carry exactly p’s suites and groups in order and its schemes in TlsSignatureScheme::preference order, or whose key provider is not the one crypto_provider(p) carries.
client_builder
A client configuration builder on p.
client_cert_verifier_builder
Builds a client-certificate verifier with p’s canonical identity.
crypto_provider
A provider carrying exactly p. It refuses, in this order: an empty version, group or scheme list; a duplicate entry in any list, naming the first one found in versions, suites, groups, then schemes; an unavailable algorithm; and a suite list left empty once suites of unlisted versions are dropped; then, for each listed version in policy order, a version with no suite, no group usable at it, or no scheme a suite at it can sign with, checked in that order (PolicyVersionUnusable). A key loaded through its key provider signs only with a scheme in p.signature_schemes.
install_default
Installs a provider for p as the process default; refuses if one is already installed.
load_private_key
Loads a private key into a signing key that signs only with a scheme in p.signature_schemes. The key’s algorithm is not checked against any profile; Resolved::certified_key checks it.
server_builder
A server configuration builder on p.
server_cert_verifier_builder
Builds a server-certificate verifier with p’s canonical identity.
strict_client_builder
Completes a client builder with an owned verifier matching both rule and scheme set.
strict_server_builder
Completes a server builder with an owned verifier matching both rule and scheme set.