-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.12.0: update to rustls 0.22, address breaking changes #371
Conversation
65135f7
to
38ca774
Compare
|
This looks good to me so far. |
It hasn't been used since the 0.22 preparation work that tracked upstream changes w.r.t. scts in-handshake.
Now that 0.22 has been published we can directly link to the upstream client/server cert verifier builder types.
* Rustls 0.22.0-alpha-6 -> 0.22.0 * Webpki 0.102.0-alpha.8 -> 0.102.0 * Rustls pki-types 0.2.3 -> 1.0 * `CryptoProvider` is now a struct. * `rustls::crypto::ring::RING` is now `rustls::crypto::ring::default_provider`. * `WebPkiServerVerifier`'s default fns are removed, `rustls::crypto::{verify_tls12_signature|verify_tls13_signature}` and `rustls::crypto::WebPkiSupportedAlgorithms.supported_schemes` can be used instead. * `rustls::Error::Other` now holds `rustls::OtherError` variant instead of `Arc<...>`.
I believe this branch is ready, and we could merge it and publish 0.12.0. Alternatively, I'm almost done with a first draft for broader crypto provider support. We could also hold off on publishing 0.12.0 until that work is ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. I'm inclined to release 0.12 without waiting for the additional crypto provider support. If you agree, would you push the release to crates.io when you get a chance?
Sure, sounds good to me 👍
I'd like to update the CHANGELOG first. I'll try to put a PR up for that shortly. |
|
|
Updates rustls-ffi to use rustls 0.22. This branch retains ring as the only supported crypto provider. Subsequent work will allow selection of ring or aws_lc_rs as well as mixing/matching.
CryptoProvider
is now a struct.rustls::crypto::ring::RING
is nowrustls::crypto::ring::default_provider
.WebPkiServerVerifier
's default fns are removed,rustls::crypto::{verify_tls12_signature|verify_tls13_signature}
andrustls::crypto::WebPkiSupportedAlgorithms.supported_schemes
can be used instead.rustls::Error::Other
now holdsrustls::OtherError
variant instead ofArc<...>
.