aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-03-18 15:40:50 -0400
committerNick Mathewson <nickm@torproject.org>2013-03-18 15:40:50 -0400
commiteff1cfaaf7bf82aefd16b39922b1297e2f8ce2c9 (patch)
treed33b41932fc764390331a522b4e376dae0013b53 /src
parentad8a27a3939be92e94d95fd7bb0f4e4b1e03382b (diff)
parentfdafe11a25ad3e7ca8893c8630f86973431217b9 (diff)
downloadtor-eff1cfaaf7bf82aefd16b39922b1297e2f8ce2c9.tar
tor-eff1cfaaf7bf82aefd16b39922b1297e2f8ce2c9.tar.gz
Merge remote-tracking branch 'public/bug6673' into maint-0.2.4
Diffstat (limited to 'src')
-rw-r--r--src/common/crypto.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index cfa11cbaa..949fd52eb 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -2983,6 +2983,12 @@ memwipe(void *mem, uint8_t byte, size_t sz)
}
#ifdef TOR_IS_MULTITHREADED
+
+#ifndef OPENSSL_THREADS
+#error OpenSSL has been built without thread support. Tor requires an \
+ OpenSSL library with thread support enabled.
+#endif
+
/** Helper: OpenSSL uses this callback to manipulate mutexes. */
static void
openssl_locking_cb_(int mode, int n, const char *file, int line)