aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-04-01 13:40:37 -0400
committerNick Mathewson <nickm@torproject.org>2015-04-01 13:40:37 -0400
commitbaf24bf4d1c6a6b3c4f20c4d165d92ed05f4ae14 (patch)
tree0d3a454d380312fd35726a5f09d722221f78fb1f /src/common/crypto.c
parent8ba2d971b1afc4c1557b080cfe1d9842d4c431cc (diff)
downloadtor-baf24bf4d1c6a6b3c4f20c4d165d92ed05f4ae14.tar.gz
tor-baf24bf4d1c6a6b3c4f20c4d165d92ed05f4ae14.zip
Unindent a block in crypto_set_tls_dh_prime
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 55f816a39f..41c775eb41 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1782,22 +1782,20 @@ crypto_set_tls_dh_prime(void)
dh_param_p_tls = NULL;
}
- if (1) {
- tls_prime = BN_new();
- tor_assert(tls_prime);
-
- /* This is the 1024-bit safe prime that Apache uses for its DH stuff; see
- * modules/ssl/ssl_engine_dh.c; Apache also uses a generator of 2 with this
- * prime.
- */
- r =BN_hex2bn(&tls_prime,
- "D67DE440CBBBDC1936D693D34AFD0AD50C84D239A45F520BB88174CB98"
- "BCE951849F912E639C72FB13B4B4D7177E16D55AC179BA420B2A29FE324A"
- "467A635E81FF5901377BEDDCFD33168A461AAD3B72DAE8860078045B07A7"
- "DBCA7874087D1510EA9FCC9DDD330507DD62DB88AEAA747DE0F4D6E2BD68"
- "B0E7393E0F24218EB3");
- tor_assert(r);
- }
+ tls_prime = BN_new();
+ tor_assert(tls_prime);
+
+ /* This is the 1024-bit safe prime that Apache uses for its DH stuff; see
+ * modules/ssl/ssl_engine_dh.c; Apache also uses a generator of 2 with this
+ * prime.
+ */
+ r = BN_hex2bn(&tls_prime,
+ "D67DE440CBBBDC1936D693D34AFD0AD50C84D239A45F520BB88174CB98"
+ "BCE951849F912E639C72FB13B4B4D7177E16D55AC179BA420B2A29FE324A"
+ "467A635E81FF5901377BEDDCFD33168A461AAD3B72DAE8860078045B07A7"
+ "DBCA7874087D1510EA9FCC9DDD330507DD62DB88AEAA747DE0F4D6E2BD68"
+ "B0E7393E0F24218EB3");
+ tor_assert(r);
tor_assert(tls_prime);