[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Split 0119_PARANOIA into 0119_PARANOIA_[ABC]. A is "this i...
Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv20465/src/common
Modified Files:
crypto.c crypto.h tortls.c
Log Message:
Split 0119_PARANOIA into 0119_PARANOIA_[ABC]. A is "this is suspicious, and we have not tried running without this yet". B is "this is suspicious, but the last time we tested, it was okay." C is "How could this possibly be the cause?"
Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/crypto.c,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -p -d -r1.183 -r1.184
--- crypto.c 10 Jan 2006 21:12:06 -0000 1.183
+++ crypto.c 17 Jan 2006 23:08:38 -0000 1.184
@@ -228,7 +228,7 @@ crypto_global_init(int useAccel)
void
crypto_thread_cleanup(void)
{
-#ifndef ENABLE_0119_PARANOIA
+#ifndef ENABLE_0119_PARANOIA_B
ERR_remove_state(0);
#endif
}
@@ -239,13 +239,13 @@ int
crypto_global_cleanup(void)
{
EVP_cleanup();
-#ifndef ENABLE_0119_PARANOIA
+#ifndef ENABLE_0119_PARANOIA_C
ERR_remove_state(0);
#endif
ERR_free_strings();
#ifndef NO_ENGINES
ENGINE_cleanup();
-#ifndef ENABLE_0119_PARANOIA
+#ifndef ENABLE_0119_PARANOIA_C
CONF_modules_unload(1);
CRYPTO_cleanup_all_ex_data();
#endif
@@ -1381,7 +1381,7 @@ crypto_dh_new(void)
if (!(res->dh->g = BN_dup(dh_param_g)))
goto err;
-#ifndef ENABLE_0119_PARANOIA
+#ifndef ENABLE_0119_PARANOIA_A
res->dh->length = DH_PRIVATE_KEY_BITS;
#endif
@@ -1610,7 +1610,7 @@ crypto_dh_free(crypto_dh_env_t *dh)
/* Use RAND_poll if openssl is 0.9.6 release or later. (The "f" means
"release".) */
-#ifndef ENABLE_0119_PARANOIA
+#ifndef ENABLE_0119_PARANOIA_B
#define USE_RAND_POLL (OPENSSL_VERSION_NUMBER >= 0x0090600fl)
#else
#define USE_RAND_POLL 0
Index: crypto.h
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/crypto.h,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -p -d -r1.74 -r1.75
--- crypto.h 10 Jan 2006 21:12:06 -0000 1.74
+++ crypto.h 17 Jan 2006 23:08:38 -0000 1.75
@@ -15,7 +15,9 @@
#include <stdio.h>
-#undef ENABLE_0119_PARANOIA
+#undef ENABLE_0119_PARANOIA_A
+#undef ENABLE_0119_PARANOIA_B
+#undef ENABLE_0119_PARANOIA_C
/** Length of the output of our message digest. */
#define DIGEST_LEN 20
Index: tortls.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/tortls.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -p -d -r1.114 -r1.115
--- tortls.c 10 Jan 2006 21:12:06 -0000 1.114
+++ tortls.c 17 Jan 2006 23:08:38 -0000 1.115
@@ -363,7 +363,7 @@ tor_tls_context_new(crypto_pk_env_t *ide
goto error;
SSL_CTX_set_options(*ctx, SSL_OP_NO_SSLv2);
#endif
-#ifndef ENABLE_0119_PARANOIA
+#ifndef ENABLE_0119_PARANOIA_A
SSL_CTX_set_options(*ctx, SSL_OP_SINGLE_DH_USE);
#endif
if (!SSL_CTX_set_cipher_list(*ctx, CIPHER_LIST))