Skip to content

v0.2.0

Choose a tag to compare

@lalinsky lalinsky released this 14 Nov 07:44
· 8 commits to main since this release

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.Client and config.Server now require io. The libssl engine uses it to wait for its connection lock without blocking a thread. With this engine, reads, writes and handshakes can return Canceled.
  • now is optional. When omitted, certificate verification reads the current time through io.
  • Added min_version and max_version to the client and server options. These and cipher_suites can be left as null to use the engine's defaults. The native engine rejects unsupported cipher suites and version ranges.
  • verify_schemes and signing_schemes are now optional and use the engine's defaults. Added the TLS 1.2 schemes ecdsa_sha1 and rsa_pkcs1_sha1: libssl enables them by default, while the native engine requires them to be explicitly listed. config.known_signature_schemes lists all supported schemes.
  • Added Connection.keyUpdatesSent and Connection.keyUpdatesReceived to count KeyUpdate messages.
  • Removed the tls12 build option. The native TLS 1.2 client is now always included.
  • On x86_64 Windows, asm now defaults to false, so builds no longer need NASM. Use -Dasm=true to 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_notify or transport EOF during a post-handshake message as a clean shutdown, unless strict_close_notify requires a truncation error. NewSessionTicket messages larger than the greater of 16 KiB and max_handshake_message_len are rejected with illegal_parameter.
  • Fixed KeyUpdate handling in the native engine. If a peer's update request is pending when requestKeyUpdate is called, both updates are sent as required by RFC 8446 §4.6.3. A transport failure during requestKeyUpdate no 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.