mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Stop initializing the hardware accelerator engines simply because
we overloaded the meaning of the argument to crypto_global_init(). svn:r6490
This commit is contained in:
+4
-3
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user