diff options
author | Roger Dingledine <arma@torproject.org> | 2011-09-13 18:27:13 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2011-09-13 18:27:13 -0400 |
commit | 4a351b4b9ebfadf27d68e6bb3e1470cdef83ef45 (patch) | |
tree | def7db8677a35c9638109aa4bd0429231e5c4445 /src/or/main.c | |
parent | d679ef623fc912a25f0d1c36ad187d7bdca0a440 (diff) | |
parent | 62ec584a3014b9b9333dcc6feb4989d1592d6d26 (diff) | |
download | tor-4a351b4b9ebfadf27d68e6bb3e1470cdef83ef45.tar.gz tor-4a351b4b9ebfadf27d68e6bb3e1470cdef83ef45.zip |
Merge branch 'maint-0.2.1' into maint-0.2.2
Conflicts:
src/or/main.c
src/or/router.c
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c index bc639dbdd8..289d805503 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -940,15 +940,16 @@ run_scheduled_events(time_t now) if (options->UseBridges) fetch_bridge_descriptors(options, now); - /** 1b. Every MAX_SSL_KEY_LIFETIME seconds, we change our TLS context. */ + /** 1b. Every MAX_SSL_KEY_LIFETIME_INTERNAL seconds, we change our + * TLS context. */ if (!last_rotated_x509_certificate) last_rotated_x509_certificate = now; - if (last_rotated_x509_certificate+MAX_SSL_KEY_LIFETIME < now) { + if (last_rotated_x509_certificate+MAX_SSL_KEY_LIFETIME_INTERNAL < now) { log_info(LD_GENERAL,"Rotating tls context."); if (tor_tls_context_init(public_server_mode(options), get_tlsclient_identity_key(), is_server ? get_server_identity_key() : NULL, - MAX_SSL_KEY_LIFETIME) < 0) { + MAX_SSL_KEY_LIFETIME_ADVERTISED) < 0) { log_warn(LD_BUG, "Error reinitializing TLS context"); /* XXX is it a bug here, that we just keep going? -RD */ } |