mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Unindent a block in crypto_set_tls_dh_prime
This commit is contained in:
parent
8ba2d971b1
commit
baf24bf4d1
@ -1782,22 +1782,20 @@ crypto_set_tls_dh_prime(void)
|
|||||||
dh_param_p_tls = NULL;
|
dh_param_p_tls = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1) {
|
tls_prime = BN_new();
|
||||||
tls_prime = BN_new();
|
tor_assert(tls_prime);
|
||||||
tor_assert(tls_prime);
|
|
||||||
|
|
||||||
/* This is the 1024-bit safe prime that Apache uses for its DH stuff; see
|
/* 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
|
* modules/ssl/ssl_engine_dh.c; Apache also uses a generator of 2 with this
|
||||||
* prime.
|
* prime.
|
||||||
*/
|
*/
|
||||||
r =BN_hex2bn(&tls_prime,
|
r = BN_hex2bn(&tls_prime,
|
||||||
"D67DE440CBBBDC1936D693D34AFD0AD50C84D239A45F520BB88174CB98"
|
"D67DE440CBBBDC1936D693D34AFD0AD50C84D239A45F520BB88174CB98"
|
||||||
"BCE951849F912E639C72FB13B4B4D7177E16D55AC179BA420B2A29FE324A"
|
"BCE951849F912E639C72FB13B4B4D7177E16D55AC179BA420B2A29FE324A"
|
||||||
"467A635E81FF5901377BEDDCFD33168A461AAD3B72DAE8860078045B07A7"
|
"467A635E81FF5901377BEDDCFD33168A461AAD3B72DAE8860078045B07A7"
|
||||||
"DBCA7874087D1510EA9FCC9DDD330507DD62DB88AEAA747DE0F4D6E2BD68"
|
"DBCA7874087D1510EA9FCC9DDD330507DD62DB88AEAA747DE0F4D6E2BD68"
|
||||||
"B0E7393E0F24218EB3");
|
"B0E7393E0F24218EB3");
|
||||||
tor_assert(r);
|
tor_assert(r);
|
||||||
}
|
|
||||||
|
|
||||||
tor_assert(tls_prime);
|
tor_assert(tls_prime);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user