-
Notifications
You must be signed in to change notification settings - Fork 726
Map webpki RequiredEkuNotFound error to InvalidPurpose #2384
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
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:
|
In
map_webpki_errors()
, rustls-platform-verifier currently downcasts theCertificateError::Other
value 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::RequiredEkuNotFound
to an actual variant ofCertificateError
-- which turned out to have anInvalidPurpose
variant which currently appears to be unused but does map to theAlertDescription
of the same name. Seems like a good fit?Not sure if this is worth doing a 0.23.25 directly for?