|
@@ -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);
|
|
|
|