Finishing touches.

- Make check-spaces happy.
- Remove a stray header from crypto.h
This commit is contained in:
George Kadianakis 2011-11-25 01:08:31 +01:00
parent 7c37a664c1
commit 1d1d5ae7f8
4 changed files with 8 additions and 13 deletions

View File

@ -1939,7 +1939,6 @@ crypto_get_stored_dynamic_dh_modulus(const char *fname)
"than '%d' bits.", DH_BYTES*8); "than '%d' bits.", DH_BYTES*8);
goto err; goto err;
} }
} }
{ /* log the dynamic DH modulus: */ { /* log the dynamic DH modulus: */
@ -1965,7 +1964,6 @@ crypto_get_stored_dynamic_dh_modulus(const char *fname)
return dynamic_dh_modulus; return dynamic_dh_modulus;
} }
/** Set the global TLS Diffie-Hellman modulus. /** Set the global TLS Diffie-Hellman modulus.
* If <b>dynamic_dh_modulus_fname</b> is set, try to read a dynamic DH modulus * If <b>dynamic_dh_modulus_fname</b> is set, try to read a dynamic DH modulus
* off it and use it as the DH modulus. If that's not possible, * off it and use it as the DH modulus. If that's not possible,

View File

@ -16,8 +16,6 @@
#include <stdio.h> #include <stdio.h>
#include "torint.h" #include "torint.h"
#include <openssl/bn.h>
/** Length of the output of our message digest. */ /** Length of the output of our message digest. */
#define DIGEST_LEN 20 #define DIGEST_LEN 20
/** Length of the output of our second (improved) message digests. (For now /** Length of the output of our second (improved) message digests. (For now

View File

@ -2873,7 +2873,7 @@ typedef struct {
char *Address; /**< OR only: configured address for this onion router. */ char *Address; /**< OR only: configured address for this onion router. */
char *PidFile; /**< Where to store PID of Tor process. */ char *PidFile; /**< Where to store PID of Tor process. */
int DynamicDHGroups; /**< Enable dynamic generation of primes for use in DH. */ int DynamicDHGroups; /**< Dynamic generation of prime moduli for use in DH.*/
routerset_t *ExitNodes; /**< Structure containing nicknames, digests, routerset_t *ExitNodes; /**< Structure containing nicknames, digests,
* country codes and IP address patterns of ORs to * country codes and IP address patterns of ORs to

View File

@ -28,7 +28,6 @@ void dup_onion_keys(crypto_pk_env_t **key, crypto_pk_env_t **last);
void rotate_onion_key(void); void rotate_onion_key(void);
crypto_pk_env_t *init_key_from_file(const char *fname, int generate, crypto_pk_env_t *init_key_from_file(const char *fname, int generate,
int severity); int severity);
void v3_authority_check_key_expiry(void); void v3_authority_check_key_expiry(void);
int init_keys(void); int init_keys(void);