-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: update rustls 0.20.0 -> 0.21.0.
Update rustls dependency from 0.20.0 to 0.21.0. Also patches transitive deps on rustls-native-certs, webpki-roots, reqwest, hyper-rustls and tokio-rustls to use releases that also depend on rustls 0.21.0. Most notable for this codebase, the `rustls::Error::InvalidCertificateData` has been removed and replaced by `InvalidCertificate` and a number of `CertificateError` sub-variants. Now that the upstream `InvalidCertificate` error offers a way to specify what went wrong with more granularity we're able to trim most of the `error_messages` consts, choosing instead to return the more specific upstream error types. For the case where invalid extensions are detected we define our own type to use for this error case. In all other circumstances where we want to return an `InvalidCertificate` error with some platform specific error message we use the `InvalidCertificate(CertificateError::Other)` variant with the error message, repurposing the `invalid_certificate` helper for constructing an `Arc` over a `Box` with the error message. We also have to take some special care when asserting the equality of errors, handling the case where looking at a `CertificateError::Other` specially, since it can box a dyn error that can't be compared directly without downcasting the error to a concrete type.
- Loading branch information
1 parent
128f700
commit c18e462
Showing
10 changed files
with
429 additions
and
274 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.