Skip to content

rustls 0.23.25 -> 0.23.27#566

Merged
cpu merged 8 commits intorustls:mainfrom
cpu:ci/cpu-rustls-0.23.27
May 7, 2025
Merged

rustls 0.23.25 -> 0.23.27#566
cpu merged 8 commits intorustls:mainfrom
cpu:ci/cpu-rustls-0.23.27

Conversation

@cpu
Copy link
Copy Markdown
Member

@cpu cpu commented May 6, 2025

The Rustls 0.23.26 release didn't add any interesting API surface, but the 0.23.27 release did make some changes that are worth updates here:

  • A new rustls_client_connection_new_alpn() function is added to match the new ClientConnection::new_with_alpn() fn.
  • Our map_invalid_certificate_error() fn is updated to handle the new CertificateError::InvalidPurposeContext error.
  • The prefer-post-quantum feature flag is promoted to enabled-by-default to match the upstream Rustls change.

@cpu cpu self-assigned this May 6, 2025
@cpu cpu requested review from ctz and djc May 7, 2025 12:50
@cpu cpu changed the title rusts 0.23.25 -> 0.23.27 rustls 0.23.25 -> 0.23.27 May 7, 2025
Comment thread librustls/src/client.rs Outdated
Comment thread librustls/src/client.rs Outdated
Comment thread librustls/src/client.rs
Comment thread README.md Outdated
cpu added 8 commits May 7, 2025 17:01
Simplify language a bit, use more backticks, describe success condition
up-front.
In `rustls_client_connection_new` we're using the pattern of
constructing a `&mut *mut` out reference from a `*mut *mut` pointer
input using the `try_mut_from_ptr_ptr!` macro, which checks that the
param isn't `NULL`. This means an earlier explicit check isn't needed
and can be removed for clarity.
This allows constructing a client `rustls_connection` with custom ALPN
protocol support that differs from the base `rustls_client_config`.
Handle the new upstream `CertificateError::InvalidPurposeContext` error
type as `CertInvalidPurpose`.
Matches the change upstream in rustls 0.23.27
@cpu cpu force-pushed the ci/cpu-rustls-0.23.27 branch from 8955461 to 9cf6f2a Compare May 7, 2025 21:24
@cpu cpu merged commit 1098495 into rustls:main May 7, 2025
46 checks passed
@cpu cpu deleted the ci/cpu-rustls-0.23.27 branch May 7, 2025 21:32
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.

3 participants