Skip to content

0.23.24

Choose a tag to compare

@ctz ctz released this 17 Mar 09:49
· 2116 commits to main since this release
  • New feature: More detailed and helpful error reporting for common certificate errors, such as name mismatches and certificate expiry. Users who std::fmt::Display the rustls Error type will take advantage of this automatically. Users handling CertificateError variants individually should note the new variants, such as CertificateError::NotValidForNameContext (compare CertificateError::NotValidForName).

    $ cargo -q run --bin tlsclient-mio -- --http wrong.host.badssl.com
    TLS error: invalid peer certificate: certificate not valid for name "wrong.host.badssl.com";
    certificate is only valid for DnsName("*.badssl.com") or DnsName("badssl.com")
    Connection closed

    The old CertificateError variants (such as NotValidForName, Expired, etc.) remain usable, and may be produced by both the default and third-party certificate verification traits.

  • New feature: Allow KTLS handoff for unbuffered API users, by introducing dangerous_extract_secrets(). Thanks to @edef1c.

  • Bug fix: Unbuffered connections now consume data during the next_record() function, rather than production of the state. This fixes #2031.

  • Bug fix: Build speed improvement for aws-lc-rs fips users.

  • Behavior change: Clients no longer offer resumption between different ClientConfigs that share a resumption store but do not share server certificate verification and client authentication credentials. If you share a resumption store between multiple ClientConfigs, please ensure their server certificate verification and client authentication credentials are also shared. Please read the new documentation on the ClientConfig::resumption item for details.

    Additionally, if you share a resumption store or ticketer between multiple ServerConfigs, please see the new documentation on ServerConfig about this.

What's Changed

  • Fix daily tests by @ctz in #2340
  • ci: improve performance via more cache usage by @ctz in #2343
  • Take semver-compatible dependencies by @ctz in #2344
  • unbuffered: introduce dangerous_extract_secrets, analogous to buffered API by @edef1c in #2345
  • docs: fix MSRV etc. by @brody4hire in #2346
  • Clippy 1.85, 2024 style by @djc in #2348
  • cleanup: specify once_cell version etc. in only 1 place by @brody4hire in #2352
  • docs: update reference to danger NoCertificateVerification struct in examples by @brody4hire in #2351
  • docs: minor improvements to CryptoProvider doc by @brody4hire in #2353
  • unbuffered: do not prematurely consume data by @ctz in #2338
  • bogo: implement -wait-for-debugger in shim by @cpu in #2347
  • Take rustls-webpki 0.103.0 and improve certificate error reporting by @ctz in #2342
  • Avoid handshake message round-tripping for binders by @ctz in #2359
  • docs: improve some more links, etc. by @brody4hire in #2355
  • adjust FIPS feature handling w.r.t aws-lc-sys by @cpu in #2291
  • client: reject TLS 1.3 compat session ID in 1.2 by @cpu in #2360
  • Update semver-compatible dependencies by @djc in #2366
  • Avoid semver errors on discriminant changes by @djc in #2367
  • fuzz/Cargo.lock: take semver-compatible updates by @ctz in #2372
  • Prevent resumption between "incompatible" clients by @ctz in #2361
  • chore(deps): update rust crate asn1 to 0.21 by @renovate-bot in #2374
  • Mark unreachable functions with coverage(off) by @ctz in #2373
  • docs: link to manual from front page by @ctz in #2375
  • chore(deps): update dependency go to v1.24.1 by @renovate-bot in #2376
  • admin/coverage: only measure core crate coverage by @ctz in #2377
  • Refactor: prefer to take reference on match scrutinee by @ctz in #2379
  • Add warning about server-side cross-config resumption by @ctz in #2381
  • Prepare 0.23.24 by @ctz in #2383

New Contributors

Full Changelog: v/0.23.23...v/0.23.24