summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-11-16 05:22:44 +0000
committerNick Mathewson <nickm@torproject.org>2005-11-16 05:22:44 +0000
commit83d6b0387b198f31819cf8de128c04470689c4d8 (patch)
tree867db4a8bb19f46f045ee7db5bf85230eb683292 /src
parentfd58b0bc6e463e92b36dcc3655c55a3c7bfaaf54 (diff)
downloadtor-83d6b0387b198f31819cf8de128c04470689c4d8.tar.gz
tor-83d6b0387b198f31819cf8de128c04470689c4d8.zip
Try to build with OpenSSL 0.9.6. Lets pay attention to see if anybody complains.
svn:r5398
Diffstat (limited to 'src')
-rw-r--r--src/common/crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 2ab145ee4d..948e31a50d 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -66,6 +66,7 @@ const char crypto_c_id[] = "$Id$";
#endif
#if OPENSSL_VERSION_NUMBER < 0x00907000l
+#define OPENSSL_PRE_097
#define NO_ENGINES
#else
#include <openssl/engine.h>
@@ -238,9 +239,9 @@ crypto_global_cleanup(void)
ERR_free_strings();
#ifndef NO_ENGINES
ENGINE_cleanup();
-#endif
CONF_modules_unload(1);
CRYPTO_cleanup_all_ex_data();
+#endif
#ifdef TOR_IS_MULTITHREADED
if (_n_openssl_mutexes) {
int n = _n_openssl_mutexes;