Skip to content

fix: update to rustls 0.23 and hyper-rustls 0.27 - #1

Open
nikzen wants to merge 1 commit into
thomast/owned-struct-paramsfrom
nikzen/rustls-0.23
Open

nikzen wants to merge 1 commit into
thomast/owned-struct-paramsfrom
nikzen/rustls-0.23

Conversation

@nikzen

@nikzen nikzen commented Nov 19, 2026 •

Copy link
Copy Markdown

Updates the TLS stack from rustls 0.22 / hyper-rustls 0.26 to rustls 0.23.46 / hyper-rustls 0.27, because rustls 0.22 and rustls-webpki 0.102 carry advisories that are only fixed on the newer lines (RUSTSEC-2026-0346, -0349, -0104, -0098, -0099, -0049, -0382). Hedwig pulls these in through this fork; see famedly/hedwig#225 and SYN-178.

Changes

  • rustls 0.23.46 with ring, logging, std, tls12 (the features 0.22 enabled by default), hyper-rustls 0.27.
  • The ring crypto provider is passed explicitly (builder_with_provider). With 0.23, ClientConfig::builder() panics at runtime if more than one provider is compiled into the binary, which happens as soon as any other crate enables aws-lc-rs.
  • PEM parsing uses rustls-pki-types instead of the unmaintained rustls-pemfile (RUSTSEC-2025-0134). The public API is unchanged.

Tested

  • cargo clippy -- -D clippy::all (default and ring features), cargo fmt --check, cargo test --all-features: 60 tests pass, including certificate_parts.
  • Live: a token client against api.sandbox.push.apple.com with a throwaway key gets 403 InvalidProviderToken, so TLS and HTTP/2 negotiate correctly.
  • Hedwig built against this branch: rustls 0.22 is gone from its tree, its tests behave as on main.

🤖 Generated with Claude Code

rustls 0.22 and rustls-webpki 0.102 have open advisories that are only
fixed on the 0.23/0.103 lines (RUSTSEC-2026-0346, -0349, -0104, -0098,
-0099, -0049, -0382). The ring provider is now passed explicitly, so the
client does not panic when another crate in the tree enables aws-lc-rs.
PEM parsing moves from the unmaintained rustls-pemfile to rustls-pki-types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant