Skip to content

Commit 30e878b

Browse files
codebyteretargos
authored andcommitted
crypto: add OPENSSL_IS_BORINGSSL guard
PR-URL: #39138 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent aec2744 commit 30e878b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/node.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ InitializationResult InitializeOncePerProcess(
10301030
}
10311031

10321032
if (init_flags & kInitOpenSSL) {
1033-
#if HAVE_OPENSSL
1033+
#if HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL)
10341034
{
10351035
std::string extra_ca_certs;
10361036
if (credentials::SafeGetenv("NODE_EXTRA_CA_CERTS", &extra_ca_certs))
@@ -1091,7 +1091,7 @@ InitializationResult InitializeOncePerProcess(
10911091
// V8 on Windows doesn't have a good source of entropy. Seed it from
10921092
// OpenSSL's pool.
10931093
V8::SetEntropySource(crypto::EntropySource);
1094-
#endif // HAVE_OPENSSL
1094+
#endif // HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL)
10951095
}
10961096
per_process::v8_platform.Initialize(
10971097
static_cast<int>(per_process::cli_options->v8_thread_pool_size));

0 commit comments

Comments
 (0)