We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92913c4 commit 15664c8Copy full SHA for 15664c8
1 file changed
src/node_crypto.cc
@@ -1381,11 +1381,9 @@ void SecureContext::SetECDHCurve(const FunctionCallbackInfo<Value>& args) {
1381
1382
node::Utf8Value curve(env->isolate(), args[0]);
1383
1384
- if (strcmp(*curve, "from_certificate") == 0)
+ if (strcmp(*curve, "auto") == 0) {
1385
return set_settings_from_certificate(env, sc->ctx_.get());
1386
-
1387
- if (strcmp(*curve, "auto") == 0)
1388
- return;
+ }
1389
1390
if (!SSL_CTX_set1_curves_list(sc->ctx_.get(), *curve))
1391
return env->ThrowError("Failed to set ECDH curve");
0 commit comments