summaryrefslogtreecommitdiff
path: root/src/common/crypto.h
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/common/crypto.h
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/common/crypto.h')
-rw-r--r--src/common/crypto.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h
index 9e52bc4175..b759459d40 100644
--- a/src/common/crypto.h
+++ b/src/common/crypto.h
@@ -85,8 +85,7 @@ typedef struct crypto_dh_env_t crypto_dh_env_t;
/* global state */
int crypto_global_init(int hardwareAccel,
const char *accelName,
- const char *accelPath,
- int DynamicPrimes);
+ const char *accelPath);
void crypto_thread_cleanup(void);
int crypto_global_cleanup(void);