mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
bandaid for bug 299. this is still a bug, since we don't
initialize for hardware acceleration in certain configurations; but not critical until that is supported. svn:r6536
This commit is contained in:
parent
b7ca697faf
commit
266afcd7d5
@ -189,8 +189,12 @@ crypto_global_init(int useAccel)
|
||||
OpenSSL_add_all_algorithms();
|
||||
_crypto_global_initialized = 1;
|
||||
setup_openssl_threading();
|
||||
/* XXX the below is a bug, since we can't know if we're supposed
|
||||
* to be using hardware acceleration or not. we should arrange
|
||||
* for this function to be called before init_keys. But make it
|
||||
* not complain loudly, at least until we make acceleration work. */
|
||||
if (useAccel < 0) {
|
||||
log_warn(LD_CRYPTO, "Initializing OpenSSL via tor_tls_init().");
|
||||
log_info(LD_CRYPTO, "Initializing OpenSSL via tor_tls_init().");
|
||||
}
|
||||
#ifndef NO_ENGINES
|
||||
if (useAccel > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user