Rewrite the logic for deciding when to drop old/superseded certificates

Fixes bug 11454, where we would keep around a superseded descriptor
if the descriptor replacing it wasn't at least a week later.  Bugfix
on 0.2.1.8-alpha.

Fixes bug 11457, where a certificate with a publication time in the
future could make us discard existing (and subsequent!) certificates
with correct publication times.  Bugfix on 0.2.0.3-alpha.
This commit is contained in:
Nick Mathewson
2015-01-08 11:20:26 -05:00
parent 33df3e37ff
commit 69df16e376
4 changed files with 68 additions and 27 deletions
+6
View File
@@ -0,0 +1,6 @@
o Minor bugfixes:
- Remove any old authority certificates that have been superseded
for at least two days. Previously, we would keep superseded
certificates until they expired, if they were published close
in time to the certificate that superseded them.
Fixes bug 11454; bugfix on 0.2.1.8-alpha.
+5
View File
@@ -0,0 +1,5 @@
o Minor bugfixes:
- If an authority operator accidentally makes a signing certificate with
a future publication time, do not discard its real signing
certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha.