summaryrefslogtreecommitdiff
path: root/src/node_crypto.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-12-08 15:58:29 -0800
committerRyan Dahl <ry@tinyclouds.org>2011-12-08 15:58:29 -0800
commitc5e51cead8b8cf63fb000e3ce962e9c3476123e6 (patch)
treefd42c48df0373ce066732a9a1c521c8d35b1d038 /src/node_crypto.cc
parent3d3f29cf0626bcb1688da4fc0621b659a66fe4d9 (diff)
downloadnode-new-c5e51cead8b8cf63fb000e3ce962e9c3476123e6.tar.gz
Move lock back to node_crypto.cc
Diffstat (limited to 'src/node_crypto.cc')
-rw-r--r--src/node_crypto.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 6caab97a60..83a66e3122 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -82,12 +82,13 @@ static const int X509_NAME_FLAGS = ASN1_STRFLGS_ESC_CTRL
#define version_symbol NODE_VAR(version_symbol)
#define ext_key_usage_symbol NODE_VAR(ext_key_usage_symbol)
#define secure_context_constructor NODE_VAR(secure_context_constructor)
-#define locks NODE_VAR(locks)
namespace node {
namespace crypto {
+static uv_rwlock_t* locks;
+
using namespace v8;