-
Notifications
You must be signed in to change notification settings - Fork 7.3k
crypto: move DEFAULT_CIPHERS, DEFAULT_ECDH_CURVE #7265
Conversation
Move `DEFAULT_CIPHERS` and `DEFAULT_ECDH_CURVE` from `tls` module into the `crypto` module. Make `crypto.createCredentials` use default values. fix nodejs#7249
Thank you for contributing this pull request! Here are a few pointers to make sure your submission will be considered for inclusion. The following commiters were not found in the CLA:
You can fix all these things without opening another issue. Please see CONTRIBUTING.md for more information |
Seem illogical. The cipher suite is an aspect of SSL/TLS, not of crypto in general. |
Seems quite logical to me, but if you don't like it being there, let's move |
ping @bnoordhuis and @tjfontaine |
That seems like a better approach, yes. |
moved. cc @tjfontaine |
@@ -1813,7 +1813,7 @@ void Connection::New(const FunctionCallbackInfo<Value>& args) { | |||
HandleScope scope(env->isolate()); | |||
|
|||
if (args.Length() < 1 || !args[0]->IsObject()) { | |||
env->ThrowError("First argument must be a crypto module Credentials"); | |||
env->ThrowError("First argument must be a tls module Context"); |
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.
SecureContext
@tjfontaine fixed! |
@tjfontaine and added missing file |
@tjfontaine ping |
lgtm, can we get a test for setting the default ciphers for the tls module? |
@tjfontaine : sure, done. |
lgtm |
Thank you, landed in 5d2aef1 |
Move
DEFAULT_CIPHERS
andDEFAULT_ECDH_CURVE
fromtls
module intothe
crypto
module. Makecrypto.createCredentials
use default values.fix #7249