Map webpki RequiredEkuNotFound error to InvalidPurpose#2384
Merged
Conversation
Benchmark resultsInstruction countsSignificant differencesThere are no significant instruction count differences Other differencesClick to expand
Wall-timeSignificant differencesThere are no significant wall-time differences Other differencesClick to expand
Additional informationCheckout details:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2384 +/- ##
==========================================
+ Coverage 94.78% 94.82% +0.03%
==========================================
Files 103 103
Lines 24641 24918 +277
==========================================
+ Hits 23357 23629 +272
- Misses 1284 1289 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ctz
approved these changes
Mar 17, 2025
cpu
approved these changes
Mar 17, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In
map_webpki_errors(), rustls-platform-verifier currently downcasts theCertificateError::Othervalue towebpki::Error. This means that it breaks the abstraction of rustls wrapping the (semver-incompatible) version of webpki being used.In order to facilitate this usage, map
webpki::Error::RequiredEkuNotFoundto an actual variant ofCertificateError-- which turned out to have anInvalidPurposevariant which currently appears to be unused but does map to theAlertDescriptionof the same name. Seems like a good fit?Not sure if this is worth doing a 0.23.25 directly for?