diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-11 13:23:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-11 13:23:10 -0400 |
commit | fdafe11a25ad3e7ca8893c8630f86973431217b9 (patch) | |
tree | 8f80919d27fabf12ca186f462afdf4aa57a6829a /src/common | |
parent | 0196647970a91d2bdb052f38b3749dd0e99348e4 (diff) | |
download | tor-fdafe11a25ad3e7ca8893c8630f86973431217b9.tar.gz tor-fdafe11a25ad3e7ca8893c8630f86973431217b9.zip |
Give an #error when we want threads and OpenSSL has disabled threads
Fixes ticket 6673.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/crypto.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 22d57c7c8a..3d8b1ba4ff 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -3000,6 +3000,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) |