From 36712a443b0044d2e793d61a2fe611211a253962 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 24 May 2006 00:37:38 +0000 Subject: [PATCH] Stop initializing the hardware accelerator engines simply because we overloaded the meaning of the argument to crypto_global_init(). svn:r6490 --- src/common/crypto.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/crypto.c b/src/common/crypto.c index 5460c6d4d8..429df04b12 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -189,10 +189,11 @@ crypto_global_init(int useAccel) OpenSSL_add_all_algorithms(); _crypto_global_initialized = 1; setup_openssl_threading(); + if (useAccel < 0) { + log_warn(LD_CRYPTO, "Initializing OpenSSL via tor_tls_init()."); + } #ifndef NO_ENGINES - if (useAccel) { - if (useAccel < 0) - log_warn(LD_CRYPTO, "Initializing OpenSSL via tor_tls_init()."); + if (useAccel > 0) { log_info(LD_CRYPTO, "Initializing OpenSSL engine support."); ENGINE_load_builtin_engines(); if (!ENGINE_register_all_complete())