Don't append SSL strings; reset them
This commit is contained in:
parent
a0c6f60d66
commit
c9d781a4b6
@ -232,7 +232,7 @@ void uWS_App(const FunctionCallbackInfo<Value> &args) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (keyFileNameValue.getString().length()) {
|
if (keyFileNameValue.getString().length()) {
|
||||||
keyFileName.append(keyFileNameValue.getString());
|
keyFileName = keyFileNameValue.getString();
|
||||||
ssl_options.key_file_name = keyFileName.c_str();
|
ssl_options.key_file_name = keyFileName.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ void uWS_App(const FunctionCallbackInfo<Value> &args) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (certFileNameValue.getString().length()) {
|
if (certFileNameValue.getString().length()) {
|
||||||
certFileName.append(certFileNameValue.getString());
|
certFileName = certFileNameValue.getString();
|
||||||
ssl_options.cert_file_name = certFileName.c_str();
|
ssl_options.cert_file_name = certFileName.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -252,7 +252,7 @@ void uWS_App(const FunctionCallbackInfo<Value> &args) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (passphraseValue.getString().length()) {
|
if (passphraseValue.getString().length()) {
|
||||||
passphrase.append(passphraseValue.getString());
|
passphrase = passphraseValue.getString();
|
||||||
ssl_options.passphrase = passphrase.c_str();
|
ssl_options.passphrase = passphrase.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,7 +262,7 @@ void uWS_App(const FunctionCallbackInfo<Value> &args) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (dhParamsFileNameValue.getString().length()) {
|
if (dhParamsFileNameValue.getString().length()) {
|
||||||
dhParamsFileName.append(dhParamsFileNameValue.getString());
|
dhParamsFileName = dhParamsFileNameValue.getString();
|
||||||
ssl_options.dh_params_file_name = dhParamsFileName.c_str();
|
ssl_options.dh_params_file_name = dhParamsFileName.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit b36607dac69271299db8302aafec247200a83e3d
|
Subproject commit 7ea680e187be8db7d5a3133e049a1fd6a7800d3d
|
Loading…
x
Reference in New Issue
Block a user