@@ -431,6 +431,14 @@ void SecureContext::Init(const FunctionCallbackInfo& args) { |
|
|
431 |
431 |
} else if (strcmp(*sslmethod, "TLS_method") == 0) { |
432 |
432 |
min_version = 0; |
433 |
433 |
max_version = 0; |
|
434 |
+ } else if (strcmp(*sslmethod, "TLS_server_method") == 0) { |
|
435 |
+ min_version = 0; |
|
436 |
+ max_version = 0; |
|
437 |
+ method = TLS_server_method(); |
|
438 |
+ } else if (strcmp(*sslmethod, "TLS_client_method") == 0) { |
|
439 |
+ min_version = 0; |
|
440 |
+ max_version = 0; |
|
441 |
+ method = TLS_client_method(); |
434 |
442 |
} else if (strcmp(*sslmethod, "TLSv1_method") == 0) { |
435 |
443 |
min_version = TLS1_VERSION; |
436 |
444 |
max_version = TLS1_VERSION; |