@@ -407,15 +407,14 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
407407 } else if (strcmp (*sslmethod, " SSLv3_client_method" ) == 0 ) {
408408 return env->ThrowError (" SSLv3 methods disabled" );
409409 } else if (strcmp (*sslmethod, " SSLv23_method" ) == 0 ) {
410- method = TLS_method ();
410+ // noop
411411 } else if (strcmp (*sslmethod, " SSLv23_server_method" ) == 0 ) {
412412 method = TLS_server_method ();
413413 } else if (strcmp (*sslmethod, " SSLv23_client_method" ) == 0 ) {
414414 method = TLS_client_method ();
415415 } else if (strcmp (*sslmethod, " TLSv1_method" ) == 0 ) {
416416 min_version = TLS1_VERSION;
417417 max_version = TLS1_VERSION;
418- method = TLS_method ();
419418 } else if (strcmp (*sslmethod, " TLSv1_server_method" ) == 0 ) {
420419 min_version = TLS1_VERSION;
421420 max_version = TLS1_VERSION;
@@ -427,7 +426,6 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
427426 } else if (strcmp (*sslmethod, " TLSv1_1_method" ) == 0 ) {
428427 min_version = TLS1_1_VERSION;
429428 max_version = TLS1_1_VERSION;
430- method = TLS_method ();
431429 } else if (strcmp (*sslmethod, " TLSv1_1_server_method" ) == 0 ) {
432430 min_version = TLS1_1_VERSION;
433431 max_version = TLS1_1_VERSION;
@@ -439,7 +437,6 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
439437 } else if (strcmp (*sslmethod, " TLSv1_2_method" ) == 0 ) {
440438 min_version = TLS1_2_VERSION;
441439 max_version = TLS1_2_VERSION;
442- method = TLS_method ();
443440 } else if (strcmp (*sslmethod, " TLSv1_2_server_method" ) == 0 ) {
444441 min_version = TLS1_2_VERSION;
445442 max_version = TLS1_2_VERSION;
0 commit comments