-
Notifications
You must be signed in to change notification settings - Fork 30k
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: move getAllowUnauthorized to internal/options #32917
Conversation
Make it so that the allow unauthorized warning can be easily reused by the QUIC impl once that lands. Extracted from nodejs#32379 Signed-off-by: James M Snell <jasnell@gmail.com>
@@ -11,8 +13,23 @@ function getOptionValue(option) { | |||
return result.value; | |||
} | |||
|
|||
function getAllowUnauthorized() { |
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.
Non-blocking nit: IMO the name isn't ideal since it also conditionally prints a warning. Unfortunately, an alternative name isn't coming to mind right away.
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.
We can rename later if one comes to mind
Landed in 14aa313 |
Make it so that the allow unauthorized warning can be easily reused
by the QUIC impl once that lands.
Extracted from the QUIC PR: #32379
Signed-off-by: James M Snell jasnell@gmail.com
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes