scoop:scoop.tls:0.1.0
scoop.tls
API
-
class
TlsClientContext
Reusable client configuration containing trust roots, protocol options, and an optional client identity. Close the context when no more sessions will be created.
-
struct
TlsConnectionInfo
Negotiated protocol information available after a successful handshake.
-
class
TlsException
A TLS failure with structured operation, TLS/backend, certificate-verification, and system-error details.
-
enum
TlsFailureKind
The configuration, peer verification, or protocol reason a TLS operation failed.
-
class
TlsIdentity
A retained certificate chain and matching private key for TLS authentication. Construction requires a nonempty chain with the leaf first; the supplied certificate and key wrappers retain their own ownership. Close this identity after use.
-
struct
TlsOptions
Protocol bounds and ordered ALPN byte strings for a TLS context.
-
enum
TlsPeerName
The expected peer identity checked during a client handshake. DNS names and IP addresses use their corresponding certificate identity rules.
-
class
TlsServerContext
Reusable server configuration built from a certificate chain, matching private key, and protocol options. The first certificate is the server leaf certificate. Close the context when no more sessions will be created.
-
class
TlsStream
A synchronous TLS byte stream that owns its transport and native TLS state. Construction completes the handshake. Operations must not overlap.
-
enum
TlsTrustSource
The certificate trust roots used when creating a client context.
-
enum
TlsVersion
TLS protocol versions accepted by [TlsOptions].