[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Stop initializing the hardware accelerator engines simply b...
Update of /home2/or/cvsroot/tor/src/common
In directory moria:/home/arma/work/onion/cvs/tor/src/common
Modified Files:
crypto.c
Log Message:
Stop initializing the hardware accelerator engines simply because
we overloaded the meaning of the argument to crypto_global_init().
Index: crypto.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/crypto.c,v
retrieving revision 1.190
retrieving revision 1.191
diff -u -p -d -r1.190 -r1.191
--- crypto.c 10 Apr 2006 21:22:59 -0000 1.190
+++ crypto.c 24 May 2006 00:37:38 -0000 1.191
@@ -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())