aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-26 09:32:51 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-26 09:32:51 +0000
commitfff89216a9ebb99fbacf33113664c40ecb088d8a (patch)
treef87ff04f617eb0c79df00a416faba284734ba077 /src/or
parentfb2279b90bf92b8395c315dc316a5999b4223759 (diff)
downloadtor-fff89216a9ebb99fbacf33113664c40ecb088d8a.tar
tor-fff89216a9ebb99fbacf33113664c40ecb088d8a.tar.gz
tell us when we're rotating things
svn:r1712
Diffstat (limited to 'src/or')
-rw-r--r--src/or/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 9eb470c1e..83dc87dfe 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -355,6 +355,7 @@ static void run_scheduled_events(time_t now) {
* necessary.
*/
if (options.ORPort && get_onion_key_set_at()+MIN_ONION_KEY_LIFETIME < now) {
+ log_fn(LOG_INFO,"Rotating onion key.");
rotate_onion_key();
cpuworkers_rotate();
if (router_rebuild_descriptor()<0) {
@@ -367,6 +368,7 @@ static void run_scheduled_events(time_t now) {
if (!last_rotated_certificate)
last_rotated_certificate = 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,
MAX_SSL_KEY_LIFETIME) < 0) {
log_fn(LOG_WARN, "Error reinitializing TLS context");