Skip to main content

Crate oxitls_core

Crate oxitls_core 

Source
Expand description

oxitls-core — Pure-Rust TLS transport primitives.

This crate provides the foundational types used across the OxiTLS ecosystem: error types, TLS version and cipher suite enumerations, connection information, and trait definitions for TLS connectors/acceptors.

Re-exports§

pub use alert::AlertDescription;
pub use keylog::KeyLog;
pub use keylog::KeyLogPolicy;
pub use os_rng::OsRng;
pub use stream_info::connection_info_from;

Modules§

alert
TLS alert description codes (RFC 8446 §6). TLS alert descriptions as defined in RFC 8446 §6.
config
Generic TLS configuration introspection trait. Generic TLS configuration introspection trait.
keylog
Key-logging policy for TLS session secret export. Key-logging policy for TLS session secret export.
os_rng
OS-entropy CSPRNG adapter implementing the rand_core 0.6 traits required by rsa/ed25519-dalek/x25519-dalek (decoupled from the workspace rand/rand_core 0.10). OS-entropy CSPRNG adapters (see OsRng).
stream_info
Helpers for extracting ConnectionInfo from a rustls connection state. Helper for extracting ConnectionInfo from a rustls connection state.

Structs§

ConnectionInfo
Information about a completed TLS connection.
ConnectionInfoBuilder
Fluent builder for ConnectionInfo.

Enums§

CipherSuite
TLS cipher suite identifiers covering TLS 1.3 mandatory suites and commonly-used TLS 1.2 AEAD suites.
TlsError
Errors that can occur during TLS operations.
TlsVersion
TLS protocol version.

Traits§

TlsAcceptor
Types that can accept inbound TLS connections.
TlsConnector
Types that can establish outbound TLS connections.
TlsStreamInfo
Trait for TLS streams that can expose post-handshake connection metadata.
TlsStreamTrait
Trait alias for an async TLS stream.

Type Aliases§

TlsStream
A boxed async stream that can be read from and written to.