diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 19cc30ee41f410..7f78a427042f4b 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -146,13 +146,13 @@ static X509_NAME *cnnic_ev_name = static Mutex* mutexes; -const char* const root_certs[] = { +static const char* const root_certs[] = { #include "node_root_certs.h" // NOLINT(build/include_order) }; -std::string extra_root_certs_file; // NOLINT(runtime/string) +static std::string extra_root_certs_file; // NOLINT(runtime/string) -X509_STORE* root_cert_store; +static X509_STORE* root_cert_store; // Just to generate static methods template void SSLWrap::AddMethods(Environment* env, diff --git a/src/node_crypto.h b/src/node_crypto.h index 2d78a38974ed22..33c9cf783ecedb 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -84,8 +84,6 @@ enum CheckResult { extern int VerifyCallback(int preverify_ok, X509_STORE_CTX* ctx); -extern X509_STORE* root_cert_store; - extern void UseExtraCaCerts(const std::string& file); class SecureContext : public BaseObject {