| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d9a68b8 commit 5445835
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -969,11 +969,6 @@ std::unique_ptr<InitializationResult> InitializeOncePerProcess( | |||
| 969 | 969 | return ret; | |
| 970 | 970 | }; | |
| 971 | 971 | ||
| 972 | - { | ||
| 973 | - std::string extra_ca_certs; | ||
| 974 | - if (credentials::SafeGetenv("NODE_EXTRA_CA_CERTS", &extra_ca_certs)) | ||
| 975 | - crypto::UseExtraCaCerts(extra_ca_certs); | ||
| 976 | - } | ||
| 977 | 972 | // In the case of FIPS builds we should make sure | |
| 978 | 973 | // the random source is properly initialized first. | |
| 979 | 974 | #if OPENSSL_VERSION_MAJOR >= 3 | |
@@ -1058,6 +1053,12 @@ std::unique_ptr<InitializationResult> InitializeOncePerProcess( | |||
| 1058 | 1053 | CHECK(crypto::CSPRNG(buffer, length).is_ok()); | |
| 1059 | 1054 | return true; | |
| 1060 | 1055 | }); | |
| 1056 | + | ||
| 1057 | + { | ||
| 1058 | + std::string extra_ca_certs; | ||
| 1059 | + if (credentials::SafeGetenv("NODE_EXTRA_CA_CERTS", &extra_ca_certs)) | ||
| 1060 | + crypto::UseExtraCaCerts(extra_ca_certs); | ||
| 1061 | + } | ||
| 1061 | 1062 | #endif // HAVE_OPENSSL && !defined(OPENSSL_IS_BORINGSSL) | |
| 1062 | 1063 | } | |
| 1063 | 1064 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments