@@ -396,36 +396,6 @@ index 994b9573822fd3eb0588e87edaa0e505aa5102fb..bb84f5ab43cb5be42019921e5dc2fc01
396396 #if OPENSSL_VERSION_MAJOR >= 3
397397 // We declare another alias here to avoid having to include crypto_util.h
398398 using EVPMDPointer = DeleteFnPtr<EVP_MD, EVP_MD_free>;
399- diff --git a/src/node.cc b/src/node.cc
400- index 10e04ed8a28bd010e4887ad5b9af3886f7b32a53..012dd487e8db232d068bce358ad44b14e78d0fe9 100644
401- --- a/src/node.cc
402- +++ b/src/node.cc
403- @@ -1079,7 +1079,8 @@ InitializeOncePerProcessInternal(const std::vector<std::string>& args,
404- }
405-
406- if (!(flags & ProcessInitializationFlags::kNoInitOpenSSL)) {
407- - #if HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL)
408- + #if HAVE_OPENSSL
409- + #if !defined(OPENSSL_IS_BORINGSSL)
410- auto GetOpenSSLErrorString = []() -> std::string {
411- std::string ret;
412- ERR_print_errors_cb(
413- @@ -1179,13 +1180,13 @@ InitializeOncePerProcessInternal(const std::vector<std::string>& args,
414- CHECK(crypto::CSPRNG(buffer, length).is_ok());
415- return true;
416- });
417- -
418- + #endif // !defined(OPENSSL_IS_BORINGSSL)
419- {
420- std::string extra_ca_certs;
421- if (credentials::SafeGetenv("NODE_EXTRA_CA_CERTS", &extra_ca_certs))
422- crypto::UseExtraCaCerts(extra_ca_certs);
423- }
424- - #endif // HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL)
425- + #endif // HAVE_OPENSSL
426- }
427-
428- if (!(flags & ProcessInitializationFlags::kNoInitializeNodeV8Platform)) {
429399diff --git a/src/node_metadata.cc b/src/node_metadata.cc
430400index 844c5ac2c2b948b3be35cb3e447717a510a463a6..72a75ee0bf391ea508441f49413f85c5b735b259 100644
431401--- a/src/node_metadata.cc
0 commit comments