Skip to main content

Crate qtls

Crate qtls 

Source
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§

incoming
Stateless inspection of contiguous Initial-level TLS input.
keys

Structs§

CertificateDer
A DER-encoded X.509 certificate; as specified in RFC 5280
ClientStart
ClientTlsConfig
CryptoProvider
Controls core cryptography used by rustls.
EstablishedTls
HandshakeNotComplete
HandshakeSummary
LocalAuthority
MemoryResumptionStore
RemoteAuthority
ResumptionKey
RootCerts
ServerTlsConfig
SessionSealKeyRing
Protects session records before they are handed to a ResumptionStore.
StoredSession
TicketKeyRing
TlsAlert
TlsClient
TlsHandshake
TlsLimits
TlsServer
UnixTime
A timestamp, tracking the number of non-leap seconds since the Unix epoch.
WebPkiSupportedAlgorithms
Describes which webpki signature verification algorithms are supported and how they map to TLS SignatureSchemes.

Enums§

CertificateError
The ways in which certificate validators can express errors.
ClientResumptionConfig
CryptoError
Epoch
The epoch of sending, usually been seen as the index of spaces.
ExporterError
InstalledKeys
InvalidLocalAuthority
PeerTlsError
PrivateKeyDer
A DER-encoded X.509 private key, in one of several formats
QuicVersion
QUIC versions whose TLS labels and Initial salts are supported by this crate.
RustlsError
rustls reports protocol errors using this type.
ServerName
Encodes ways a client can know the expected name of the server.
ServerResumptionConfig
SignError
SignatureScheme
The SignatureScheme TLS protocol enum. Values in this enum are taken from the various RFCs covering TLS, and are listed by IANA. The Unknown item is used when processing unrecognised ordinals.
StoreError
TlsConfigError
TlsError
TlsEvent
TlsInvariantError

Traits§

PemObject
Items that can be decoded from PEM data.
ResumptionStore
SigningKey
An abstract signing key.

Functions§

default_provider
Default provider when only the ring backend is enabled. A CryptoProvider backed 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.