mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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:
1 parent
aec2744e14
commit
30e878b603
1 file changed
+2
-2
+2
-2
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user