Repository navigation
v0.2.0
This release adds an optional engine based on AWS-LC's libssl. Build with -Dimpl=libssl to use it with the same ztls API. It supports TLS 1.0 through 1.3 as both client and server, including CBC suites and RSA key exchange. The native engine remains the default and is faster; the libssl engine provides broader compatibility and requires a C++ runtime.
config.Clientandconfig.Servernow requireio. The libssl engine uses it to wait for its connection lock without blocking a thread. With this engine, reads, writes and handshakes can returnCanceled.nowis optional. When omitted, certificate verification reads the current time throughio.- Added
min_versionandmax_versionto the client and server options. These andcipher_suitescan be left as null to use the engine's defaults. The native engine rejects unsupported cipher suites and version ranges. verify_schemesandsigning_schemesare now optional and use the engine's defaults. Added the TLS 1.2 schemesecdsa_sha1andrsa_pkcs1_sha1: libssl enables them by default, while the native engine requires them to be explicitly listed.config.known_signature_schemeslists all supported schemes.- Added
Connection.keyUpdatesSentandConnection.keyUpdatesReceivedto count KeyUpdate messages. - Removed the
tls12build option. The native TLS 1.2 client is now always included. - On x86_64 Windows,
asmnow defaults to false, so builds no longer need NASM. Use-Dasm=trueto enable AWS-LC's assembly. - Invalid configurations are rejected before the handshake starts, including group lists with no usable key exchange group and native server configurations with no TLS 1.3 cipher suite.
- Fixed the native client advertising secp521r1 for key exchange, which it does not implement. TLS 1.2 connections can still use P-521 certificates when secp521r1 is listed.
- The native engine now accepts empty handshake records after the handshake. It also handles
close_notifyor transport EOF during a post-handshake message as a clean shutdown, unlessstrict_close_notifyrequires a truncation error. NewSessionTicket messages larger than the greater of 16 KiB andmax_handshake_message_lenare rejected withillegal_parameter. - Fixed KeyUpdate handling in the native engine. If a peer's update request is pending when
requestKeyUpdateis called, both updates are sent as required by RFC 8446 §4.6.3. A transport failure duringrequestKeyUpdateno longer discards the pending request.
Interoperability tests, API tests and tlsfuzzer now run against both engines. BoGo and TLS-Anvil continue to test the native engine.