crypto: add TLS 1.1 and 1.2 to secureProtocol list
This commit is contained in:
parent
d4ad5d1151
commit
4ac6912a77
@ -254,6 +254,18 @@ void SecureContext::Init(const FunctionCallbackInfo<Value>& args) {
|
||||
method = TLSv1_server_method();
|
||||
} else if (strcmp(*sslmethod, "TLSv1_client_method") == 0) {
|
||||
method = TLSv1_client_method();
|
||||
} else if (strcmp(*sslmethod, "TLSv1_1_method") == 0) {
|
||||
method = TLSv1_1_method();
|
||||
} else if (strcmp(*sslmethod, "TLSv1_1_server_method") == 0) {
|
||||
method = TLSv1_1_server_method();
|
||||
} else if (strcmp(*sslmethod, "TLSv1_1_client_method") == 0) {
|
||||
method = TLSv1_1_client_method();
|
||||
} else if (strcmp(*sslmethod, "TLSv1_2_method") == 0) {
|
||||
method = TLSv1_2_method();
|
||||
} else if (strcmp(*sslmethod, "TLSv1_2_server_method") == 0) {
|
||||
method = TLSv1_2_server_method();
|
||||
} else if (strcmp(*sslmethod, "TLSv1_2_client_method") == 0) {
|
||||
method = TLSv1_2_client_method();
|
||||
} else {
|
||||
return ThrowError("Unknown method");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user