[or-cvs] bandaid for bug 299. this is still a bug, since we don"t

arma at seul.org arma at seul.org
Mon Jun 5 04:29:05 UTC 2006


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:
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.


Index: crypto.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/crypto.c,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -p -d -r1.192 -r1.193
--- crypto.c	4 Jun 2006 22:42:12 -0000	1.192
+++ crypto.c	5 Jun 2006 04:29:03 -0000	1.193
@@ -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) {



More information about the tor-commits mailing list