aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorArlo Breault <arlolra@gmail.com>2014-06-22 13:48:29 -0700
committerNick Mathewson <nickm@torproject.org>2014-06-23 20:28:34 -0400
commit48d7fceee5e6041ccdd4316f51de0d6b5e1818ed (patch)
tree653d7af9c8da3f4c4150cd68908d513f7078449e /src/or
parentd064773595f1d0bf1b76dd6f7439bff653a3c8ce (diff)
downloadtor-48d7fceee5e6041ccdd4316f51de0d6b5e1818ed.tar
tor-48d7fceee5e6041ccdd4316f51de0d6b5e1818ed.tar.gz
Update a comment and undef an identifierHEADmaster
* Trac #11452
Diffstat (limited to 'src/or')
-rw-r--r--src/or/routerlist.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 2c0f19367..391a31a9d 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -448,9 +448,10 @@ trusted_dirs_flush_certs_to_disk(void)
trusted_dir_servers_certs_changed = 0;
}
-/** Remove all v3 authority certificates that have been superseded for more
- * than 48 hours. (If the most recent cert was published more than 48 hours
- * ago, then we aren't going to get any consensuses signed with older
+/** Remove all expired v3 authority certificates that have been superseded for
+ * more than 48 hours or, if not expired, that were published more than 7 days
+ * before being superseded. (If the most recent cert was published more than 48
+ * hours ago, then we aren't going to get any consensuses signed with older
* keys.) */
static void
trusted_dirs_remove_old_certs(void)
@@ -488,6 +489,7 @@ trusted_dirs_remove_old_certs(void)
} SMARTLIST_FOREACH_END(cert);
}
} DIGESTMAP_FOREACH_END;
+#undef DEAD_CERT_LIFETIME
#undef OLD_CERT_LIFETIME
trusted_dirs_flush_certs_to_disk();