File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,6 @@ static const char* const root_certs[] = {
77
77
#include " node_root_certs.h" // NOLINT(build/include_order)
78
78
};
79
79
80
- static const char system_cert_path[] = NODE_OPENSSL_SYSTEM_CERT_PATH;
81
-
82
80
static std::string extra_root_certs_file; // NOLINT(runtime/string)
83
81
84
82
static std::atomic<bool > has_cached_bundled_root_certs{false };
@@ -838,11 +836,13 @@ X509_STORE* NewRootCertStore() {
838
836
X509_STORE* store = X509_STORE_new ();
839
837
CHECK_NOT_NULL (store);
840
838
841
- if (*system_cert_path != ' \0 ' ) {
839
+ #ifdef NODE_OPENSSL_SYSTEM_CERT_PATH
840
+ if constexpr (sizeof (NODE_OPENSSL_SYSTEM_CERT_PATH) > 1 ) {
842
841
ERR_set_mark ();
843
- X509_STORE_load_locations (store, system_cert_path , nullptr );
842
+ X509_STORE_load_locations (store, NODE_OPENSSL_SYSTEM_CERT_PATH , nullptr );
844
843
ERR_pop_to_mark ();
845
844
}
845
+ #endif
846
846
847
847
Mutex::ScopedLock cli_lock (node::per_process::cli_options_mutex);
848
848
if (per_process::cli_options->ssl_openssl_cert_store ) {
You can’t perform that action at this time.
0 commit comments