@@ -407,15 +407,14 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) { |
407 | 407 | } else if (strcmp(*sslmethod, "SSLv3_client_method") == 0) { |
408 | 408 | return env->ThrowError("SSLv3 methods disabled"); |
409 | 409 | } else if (strcmp(*sslmethod, "SSLv23_method") == 0) { |
410 | | - method = TLS_method(); |
| 410 | + // noop |
411 | 411 | } else if (strcmp(*sslmethod, "SSLv23_server_method") == 0) { |
412 | 412 | method = TLS_server_method(); |
413 | 413 | } else if (strcmp(*sslmethod, "SSLv23_client_method") == 0) { |
414 | 414 | method = TLS_client_method(); |
415 | 415 | } else if (strcmp(*sslmethod, "TLSv1_method") == 0) { |
416 | 416 | min_version = TLS1_VERSION; |
417 | 417 | max_version = TLS1_VERSION; |
418 | | - method = TLS_method(); |
419 | 418 | } else if (strcmp(*sslmethod, "TLSv1_server_method") == 0) { |
420 | 419 | min_version = TLS1_VERSION; |
421 | 420 | max_version = TLS1_VERSION; |
@@ -427,7 +426,6 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) { |
427 | 426 | } else if (strcmp(*sslmethod, "TLSv1_1_method") == 0) { |
428 | 427 | min_version = TLS1_1_VERSION; |
429 | 428 | max_version = TLS1_1_VERSION; |
430 | | - method = TLS_method(); |
431 | 429 | } else if (strcmp(*sslmethod, "TLSv1_1_server_method") == 0) { |
432 | 430 | min_version = TLS1_1_VERSION; |
433 | 431 | max_version = TLS1_1_VERSION; |
@@ -439,7 +437,6 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) { |
439 | 437 | } else if (strcmp(*sslmethod, "TLSv1_2_method") == 0) { |
440 | 438 | min_version = TLS1_2_VERSION; |
441 | 439 | max_version = TLS1_2_VERSION; |
442 | | - method = TLS_method(); |
443 | 440 | } else if (strcmp(*sslmethod, "TLSv1_2_server_method") == 0) { |
444 | 441 | min_version = TLS1_2_VERSION; |
445 | 442 | max_version = TLS1_2_VERSION; |
|