-
Notifications
You must be signed in to change notification settings - Fork 726
Support certificate_authorities
extension in ClientHello
#2265
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
77a2207
to
78a4359
Compare
78a4359
to
7f0b09e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2265 +/- ##
=======================================
Coverage 94.82% 94.82%
=======================================
Files 104 104
Lines 24077 24102 +25
=======================================
+ Hits 22831 22855 +24
- Misses 1246 1247 +1 ☔ View full report in Codecov by Sentry. |
7f0b09e
to
4aaa2e4
Compare
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 is looking pretty good to me, just a bunch of nits to address.
8000
4aaa2e4
to
3a5c873
Compare
Thanks @djc. I believe I addressed all the review comments. One point: I also removed the |
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.
LGTM, thanks!
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:
|
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.
Thanks!
(FWIW I went looking if there were some latent tests for this we could enable in bogo, but unfortunately there are not.)
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.
Nice work 🚀 Thanks
3a5c873
to
06549cd
Compare
This commit adds support for the extension by: - On the client side, adding a default method to `ServerCertVerifier` that asks for CA names to be sent with ClientHello, - On the server side, adding the method `certificate_authorities()` to the `ClientHello` type, which is provided to `ResolvesServerCert` when the server needs to pick a cert.
06549cd
to
c645d12
Compare
This PR adds support for the
certificate_authorities
extension in ClientHello by:On the client side, adding a default method to
ServerCertVerifier
that asks for CA names to be sent with ClientHello,On the server side, adding the method
certificate_authorities()
to theClientHello
type, which is provided toResolvesServerCert
when the server needs to pick a cert.Closes #2235