ddn.net.tls.stream
Native TLS stream implementation.
Provides the encrypted stream for reading and writing application data over a TLS connection. Supports non-blocking I/O via TlsProgress return values. Manages handshake state, negotiated parameters, and the underlying transport.
enum ShutdownState
class NativeTlsStream
Types 2
enumShutdownState
Shutdown state machine phases.
NOT_STARTED
SEND_CLOSE_NOTIFY
WAIT_CLOSE_NOTIFY
DONE
classNativeTlsStream : TlsStream
Native TLS stream using pure D cryptographic primitives.
Wraps a TlsTransport and provides TLS encryption/decryption. All potentially-blocking operations return TlsProgress or TlsResult to support non-blocking I/O.
Fields
TlsVersion minVersion_TlsVersion maxVersion_string[] cipherSuites_string[] alpnProtocols_ubyte[][] serverCertChainDer_string serverCertChainPem_string serverPrivateKeyPem_TlsSessionCache sessionCache_NativeTlsTrustStore trustStore_TlsAead writeAead_TlsAead readAead_Methods
TlsProgress handshake()Performs or continues the TLS handshake.TlsProgress flush()Flushes any buffered data through the TLS layer.TlsProgress shutdown()Initiates graceful TLS shutdown (sends close_notify).void close()Constructors
this(TlsTransport transport, TlsRole role, string serverName,
TlsVersion minVersion, TlsVersion maxVersion,
TlsVerifyMode verifyMode, TlsVerifyCallback verifyCallback)Constructs a NativeTlsStream.