summaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@gmail.com>2011-11-23 23:39:46 +0100
committerGeorge Kadianakis <desnacked@gmail.com>2011-11-24 22:13:38 +0100
commit42bda231ee10db0136cf2ffb56a38ce290891794 (patch)
treef2bc195fa44916041367be18a1c809b085f5a9e0 /src/or/main.c
parent21babd152e2669d446610be6e343db667397dde4 (diff)
downloadtor-42bda231ee10db0136cf2ffb56a38ce290891794.tar.gz
tor-42bda231ee10db0136cf2ffb56a38ce290891794.zip
Make DynamicPrimes SIGHUP-able.
Instead of passing the DynamicPrimes configuration option to crypto_global_init(), generate and set a new TLS DH prime when we read the torrc.
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 3c75e1c645..0d2127d336 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2275,8 +2275,7 @@ tor_init(int argc, char *argv[])
if (crypto_global_init(get_options()->HardwareAccel,
get_options()->AccelName,
- get_options()->AccelDir,
- get_options()->DynamicPrimes)) {
+ get_options()->AccelDir) {
log_err(LD_BUG, "Unable to initialize OpenSSL. Exiting.");
return -1;
}