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>
This commit is contained in:
Shelley Vohr authored and Michaël Zasso committed 2021-07-11 09:43:55 +02:00
1 parent aec2744e14
commit 30e878b603
1 file changed
+2 -2
+2 -2
View File
@@ -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));