Skip to content

Commit 3b0f72c

Browse files
committed
crypto: BoringSSL can work with NODE_EXTRA_CA_CERTS
1 parent f1635f4 commit 3b0f72c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ InitializeOncePerProcessInternal(const std::vector<std::string>& args,
11741174

11751175
// Ensure CSPRNG is properly seeded.
11761176
CHECK(crypto::CSPRNG(nullptr, 0).is_ok());
1177-
1177+
#endif // defined(OPENSSL_IS_BORINGSSL)
11781178
V8::SetEntropySource([](unsigned char* buffer, size_t length) {
11791179
// V8 falls back to very weak entropy when this function fails
11801180
// and /dev/urandom isn't available. That wouldn't be so bad if
@@ -1189,7 +1189,7 @@ InitializeOncePerProcessInternal(const std::vector<std::string>& args,
11891189
if (credentials::SafeGetenv("NODE_EXTRA_CA_CERTS", &extra_ca_certs))
11901190
crypto::UseExtraCaCerts(extra_ca_certs);
11911191
}
1192-
#endif // HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL)
1192+
#endif // HAVE_OPENSSL
11931193
}
11941194

11951195
if (!(flags & ProcessInitializationFlags::kNoInitializeNodeV8Platform)) {

0 commit comments

Comments
 (0)