mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 13:34:59 +02:00
tell us when we're rotating things
svn:r1712
This commit is contained in:
parent
fb2279b90b
commit
fff89216a9
@ -355,6 +355,7 @@ static void run_scheduled_events(time_t now) {
|
|||||||
* necessary.
|
* necessary.
|
||||||
*/
|
*/
|
||||||
if (options.ORPort && get_onion_key_set_at()+MIN_ONION_KEY_LIFETIME < now) {
|
if (options.ORPort && get_onion_key_set_at()+MIN_ONION_KEY_LIFETIME < now) {
|
||||||
|
log_fn(LOG_INFO,"Rotating onion key.");
|
||||||
rotate_onion_key();
|
rotate_onion_key();
|
||||||
cpuworkers_rotate();
|
cpuworkers_rotate();
|
||||||
if (router_rebuild_descriptor()<0) {
|
if (router_rebuild_descriptor()<0) {
|
||||||
@ -367,6 +368,7 @@ static void run_scheduled_events(time_t now) {
|
|||||||
if (!last_rotated_certificate)
|
if (!last_rotated_certificate)
|
||||||
last_rotated_certificate = now;
|
last_rotated_certificate = now;
|
||||||
if (options.ORPort && last_rotated_certificate+MAX_SSL_KEY_LIFETIME < now) {
|
if (options.ORPort && last_rotated_certificate+MAX_SSL_KEY_LIFETIME < now) {
|
||||||
|
log_fn(LOG_INFO,"Rotating tls context.");
|
||||||
if (tor_tls_context_new(get_identity_key(), 1, options.Nickname,
|
if (tor_tls_context_new(get_identity_key(), 1, options.Nickname,
|
||||||
MAX_SSL_KEY_LIFETIME) < 0) {
|
MAX_SSL_KEY_LIFETIME) < 0) {
|
||||||
log_fn(LOG_WARN, "Error reinitializing TLS context");
|
log_fn(LOG_WARN, "Error reinitializing TLS context");
|
||||||
|
Loading…
Reference in New Issue
Block a user