Skip to main content

Crate rama_tls

Crate rama_tls 

Source
Expand description

rama TLS-agnostic types and utilities.

The TLS-implementation-agnostic vocabulary (protocol versions, cipher suites, ALPN, client/server config, ClientHello, fingerprints, keylog, …) shared by the backend crates (rama-tls-boring / rama-tls-rustls).

Learn more about rama:

Modules§

client
TLS implementation agnostic client types
fingerprint
fingerprint implementations for the network surface
keylog
TLS keylog facility used by every TLS implementation supported by rama (and exposed for your own).
server
TLS implementation agnostic server types

Structs§

SecureTransport
Metadata that can be added to the Extensions of a transport layer to signal that the transport is secure.
TlsAlpn
ALPN protocols to offer.
TlsKeyLog
Keylog intent (e.g. SSLKEYLOGFILE) for the connection.
TlsSupportedVersions
Supported protocol versions, as a list (backends derive min/max as needed, preserving any GREASE entries in the wire list).
TlsTunnel
Requests TLS from a tunnel connector with an optional server identity.

Enums§

ApplicationProtocol
The Application Layer Negotiation Protocol (ALPN) identifiers as found in the IANA registry for Tls ExtensionType values.
CertificateCompressionAlgorithm
The CertificateCompressionAlgorithm TLS protocol enum, the algorithm used to compress the certificate. The algorithm MUST be one of the algorithms listed in the peer’s compress_certificate extension.
CipherSuite
The CipherSuite 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.
CompressionAlgorithm
The CompressionAlgorithm 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.
ECPointFormat
The ECPointFormat 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.
ExtensionId
The ExtensionId 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.
KeyLogIntent
Intent for a (tls) keylogger to be used.
ProtocolVersion
The ProtocolVersion 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.
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.
SupportedGroup
The SupportedGroup 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.
TlsTunnelMode
Whether a tunnel connector should use plaintext or TLS.

Functions§

resolve_tls_tunnel
Resolve tunnel activation and server identity consistently across TLS backends.