-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
tls: deprecate undocumented tlsSocket.ssl property, add docs #23915
Conversation
02e937e
to
66849e7
Compare
@addaleax @sam-github @bnoordhuis @nodejs/tsc ... please take another look over. This has changed significantly and is now a semver-major deprecation. |
Are the things people were using |
I've added |
Ping @nodejs/tsc |
deprecate the legacy undocumented `.ssl` alias for the `TLSSocket._handle` and document alternatives. Document how to properly use the `TLSSocket` constructor directly. Updated take on nodejs#10846 Fixes: nodejs#10555
0a479a4
to
c82010d
Compare
@@ -805,6 +856,21 @@ and their processing can be delayed due to packet loss or reordering. However, | |||
smaller fragments add extra TLS framing bytes and CPU overhead, which may | |||
decrease overall server throughput. | |||
|
|||
### tlsSocket.verifyError() |
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.
Sorry if these questions are naïve or otherwise ill-informed: Is this the best name for this? I know it's what we used previously, but it wasn't exposed publicly, was it? Might `validatePeerCertificate() or something like that be a better name?
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.
I'm fine with whatever name folks would like to see.
Co-Authored-By: jasnell <[email protected]>
Ping @nodejs/tsc |
there's an outstanding question from @Trott inline lgtm I think, although the commit description doesn't hint at the addition of features. So it might be best to split out |
Updated take on #10846
Fixes: #10555
/cc @sam-github
Checklist