License
Boost Software License, Version 1.0
TLS/SSL Support for EVE
This package provides TLS/SSL encryption for EVE network connections using platform-native implementations:
The API is defined in eve.tls.api and is consistent across all platforms.
Example:
import eve.tls;
// Create a client TLS context
auto ctx = TlsContext.clientContext()
.setServerName("example.com")
.setMinVersion(TlsVersion.TLS_1_2);
// Wrap an existing TCP connection with TLS
auto tlsStream = TlsStream(tcpConnection, ctx);
tlsStream.handshake();
// Now use tlsStream for encrypted I/O
tlsStream.write(cast(const(ubyte)[])"GET / HTTP/1.1\r\n\r\n");