From 30e878b60377b1748d9b0510ee0ea2aca178a890 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 24 Jun 2021 11:09:57 +0200 Subject: [PATCH] crypto: add OPENSSL_IS_BORINGSSL guard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39138 Reviewed-By: Tobias Nießen Reviewed-By: Rich Trott --- src/node.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node.cc b/src/node.cc index b60be116b6139b..3ee25ebbd67a01 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(per_process::cli_options->v8_thread_pool_size));