GeezerVison is showing github.com — src: check node_extra_ca_certs after openssl cfg · nodejs/node@b8f4070
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node.cc +6-5Lines changed: 6 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -961,11 +961,6 @@ InitializeOncePerProcessInternal(const std::vector<std::string>& args, |
961 | 961 | return ret; |
962 | 962 | }; |
963 | 963 |
|
964 | | - { |
965 | | - std::string extra_ca_certs; |
966 | | - if (credentials::SafeGetenv("NODE_EXTRA_CA_CERTS", &extra_ca_certs)) |
967 | | - crypto::UseExtraCaCerts(extra_ca_certs); |
968 | | - } |
969 | 964 | // In the case of FIPS builds we should make sure |
970 | 965 | // the random source is properly initialized first. |
971 | 966 | #if OPENSSL_VERSION_MAJOR >= 3 |
@@ -1052,6 +1047,12 @@ InitializeOncePerProcessInternal(const std::vector<std::string>& args, |
1052 | 1047 | CHECK(crypto::CSPRNG(buffer, length).is_ok()); |
1053 | 1048 | return true; |
1054 | 1049 | }); |
| 1050 | + |
| 1051 | + { |
| 1052 | + std::string extra_ca_certs; |
| 1053 | + if (credentials::SafeGetenv("NODE_EXTRA_CA_CERTS", &extra_ca_certs)) |
| 1054 | + crypto::UseExtraCaCerts(extra_ca_certs); |
| 1055 | + } |
1055 | 1056 | #endif // HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL) |
1056 | 1057 | } |
1057 | 1058 |
|
|