Skip to content

Commit f4e5a43

Browse files
committed
fixup! cli: add NODE_USE_SYSTEM_CA=1
1 parent 2a6d21d commit f4e5a43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -868,13 +868,15 @@ static ExitCode InitializeNodeWithArgsInternal(
868868
// default value.
869869
V8::SetFlagsFromString("--rehash-snapshot");
870870

871+
#if HAVE_OPENSSL
871872
// TODO(joyeecheung): make this a per-env option and move the normalization
872873
// into HandleEnvOptions.
873874
std::string use_system_ca;
874875
if (credentials::SafeGetenv("NODE_USE_SYSTEM_CA", &use_system_ca) &&
875876
use_system_ca == "1") {
876877
per_process::cli_options->use_system_ca = true;
877878
}
879+
#endif // HAVE_OPENSSL
878880
HandleEnvOptions(per_process::cli_options->per_isolate->per_env);
879881

880882
std::string node_options;

0 commit comments

Comments
 (0)