Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2021-06-24 12:09:57 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2021-06-29 15:09:48 +0300
commit161b84cb46e6a419c6aff49ec633e2292ead0a8f (patch)
tree8a3538268269f2ce13c624b36be1d84da8f35bf3 /src/node.cc
parente0a954e65798c393a67699cff1af6f96b684233a (diff)
crypto: add OPENSSL_IS_BORINGSSL guard
PR-URL: https://github.com/nodejs/node/pull/39138 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node.cc b/src/node.cc
index b60be116b61..3ee25ebbd67 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -1030,7 +1030,7 @@ InitializationResult InitializeOncePerProcess(
}
if (init_flags & kInitOpenSSL) {
-#if HAVE_OPENSSL
+#if HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL)
{
std::string extra_ca_certs;
if (credentials::SafeGetenv("NODE_EXTRA_CA_CERTS", &extra_ca_certs))
@@ -1091,7 +1091,7 @@ InitializationResult InitializeOncePerProcess(
// V8 on Windows doesn't have a good source of entropy. Seed it from
// OpenSSL's pool.
V8::SetEntropySource(crypto::EntropySource);
-#endif // HAVE_OPENSSL
+#endif // HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL)
}
per_process::v8_platform.Initialize(
static_cast<int>(per_process::cli_options->v8_thread_pool_size));