diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 531afdc59fc..81ba4470e0c 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -118,6 +118,8 @@ static Persistent secure_context_constructor; static uv_rwlock_t* locks; +X509_STORE* root_cert_store; + // Just to generate static methods template class SSLWrap; template void SSLWrap::AddMethods(Handle t); diff --git a/src/node_crypto.h b/src/node_crypto.h index d9063a5b223..98e0f58ec07 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -51,7 +51,7 @@ namespace crypto { extern int VerifyCallback(int preverify_ok, X509_STORE_CTX* ctx); -static X509_STORE* root_cert_store; +extern X509_STORE* root_cert_store; // Forward declaration class Connection;