Expand description
Connection-independent TLS 1.3 support for QUIC.
qtls owns no socket, QUIC connection, CRYPTO stream, runtime, or waker.
Callers feed contiguous CRYPTO bytes and pull typed events.
Missing OCSP is allowed by default; ocsp-must-staple requires it for all
certificates. Certificate verification and supplied OCSP validation remain
enabled in both modes. TLS key logging is controlled
by TlsClient::set_keylog and TlsServer::set_keylog, independently of features.
Re-exports§
pub use keys::BidirectionalKeys;pub use keys::DirectionalKeys;pub use keys::HeaderProtectionKey;pub use keys::OneRttKeyMaterial;pub use keys::PacketKey;pub use keys::PacketKeys;pub use keys::Secrets;
Modules§
Structs§
- Certificate
Der - A DER-encoded X.509 certificate; as specified in RFC 5280
- Client
Start - Client
TlsConfig - Crypto
Provider - Controls core cryptography used by rustls.
- Established
Tls - Handshake
NotComplete - Handshake
Summary - Local
Authority - Memory
Resumption Store - Remote
Authority - Resumption
Key - Root
Certs - Server
TlsConfig - Session
Seal KeyRing - Protects session records before they are handed to a
ResumptionStore. - Stored
Session - Ticket
KeyRing - TlsAlert
- TlsClient
- TlsHandshake
- TlsLimits
- TlsServer
- Unix
Time - A timestamp, tracking the number of non-leap seconds since the Unix epoch.
- WebPki
Supported Algorithms - Describes which
webpkisignature verification algorithms are supported and how they map to TLSSignatureSchemes.
Enums§
- Certificate
Error - The ways in which certificate validators can express errors.
- Client
Resumption Config - Crypto
Error - Epoch
- The epoch of sending, usually been seen as the index of spaces.
- Exporter
Error - Installed
Keys - Invalid
Local Authority - Peer
TlsError - Private
KeyDer - A DER-encoded X.509 private key, in one of several formats
- Quic
Version - QUIC versions whose TLS labels and Initial salts are supported by this crate.
- Rustls
Error - rustls reports protocol errors using this type.
- Server
Name - Encodes ways a client can know the expected name of the server.
- Server
Resumption Config - Sign
Error - Signature
Scheme - The
SignatureSchemeTLS protocol enum. Values in this enum are taken from the various RFCs covering TLS, and are listed by IANA. TheUnknownitem is used when processing unrecognised ordinals. - Store
Error - TlsConfig
Error - TlsError
- TlsEvent
- TlsInvariant
Error
Traits§
- PemObject
- Items that can be decoded from PEM data.
- Resumption
Store - Signing
Key - An abstract signing key.
Functions§
- default_
provider - Default provider when only the ring backend is enabled.
A
CryptoProviderbacked by the ring crate. - validate_
ocsp - Validate a fetched local staple using the same issuer/signature/status/time checks as TLS. Daily fetching is the caller’s policy; no renewal deadline is returned.