File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -254,6 +254,18 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
254254 method = TLSv1_server_method ();
255255 } else if (strcmp (*sslmethod, " TLSv1_client_method" ) == 0 ) {
256256 method = TLSv1_client_method ();
257+ } else if (strcmp (*sslmethod, " TLSv1_1_method" ) == 0 ) {
258+ method = TLSv1_1_method ();
259+ } else if (strcmp (*sslmethod, " TLSv1_1_server_method" ) == 0 ) {
260+ method = TLSv1_1_server_method ();
261+ } else if (strcmp (*sslmethod, " TLSv1_1_client_method" ) == 0 ) {
262+ method = TLSv1_1_client_method ();
263+ } else if (strcmp (*sslmethod, " TLSv1_2_method" ) == 0 ) {
264+ method = TLSv1_2_method ();
265+ } else if (strcmp (*sslmethod, " TLSv1_2_server_method" ) == 0 ) {
266+ method = TLSv1_2_server_method ();
267+ } else if (strcmp (*sslmethod, " TLSv1_2_client_method" ) == 0 ) {
268+ method = TLSv1_2_client_method ();
257269 } else {
258270 return ThrowError (" Unknown method" );
259271 }
You can’t perform that action at this time.
0 commit comments