Skip to content

Commit

Permalink
crypto: add OPENSSL_IS_BORINGSSL guard
Browse files Browse the repository at this point in the history
PR-URL: #39138
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
codebytere authored and targos committed Jul 11, 2021
1 parent aec2744 commit 30e878b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 30e878b

Please sign in to comment.