aboutsummaryrefslogtreecommitdiff
path: root/src/or/consdiffmgr.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2017-06-23 23:55:54 +0000
committerNick Mathewson <nickm@torproject.org>2017-06-27 18:25:48 -0400
commit07f2940b4519d801eb10b9f5e49790aced1f6322 (patch)
tree39edf7225a819fc8bbae289307c3bb22402a623f /src/or/consdiffmgr.h
parent32eba3d6aa7bd39048d32a566d119c013e526759 (diff)
downloadtor-07f2940b4519d801eb10b9f5e49790aced1f6322.tar.gz
tor-07f2940b4519d801eb10b9f5e49790aced1f6322.zip
Set published_out for consensus cache entries in spooled_resource_estimate_size().
This patch ensures that the published_out output parameter is set to the current consensus cache entry's "valid after" field. See: https://bugs.torproject.org/22702
Diffstat (limited to 'src/or/consdiffmgr.h')
-rw-r--r--src/or/consdiffmgr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/consdiffmgr.h b/src/or/consdiffmgr.h
index fe4f9ee239..079f9fe2d2 100644
--- a/src/or/consdiffmgr.h
+++ b/src/or/consdiffmgr.h
@@ -44,6 +44,9 @@ int consensus_cache_entry_get_fresh_until(
int consensus_cache_entry_get_valid_until(
const struct consensus_cache_entry_t *ent,
time_t *out);
+int consensus_cache_entry_get_valid_after(
+ const struct consensus_cache_entry_t *ent,
+ time_t *out);
void consdiffmgr_rescan(void);
int consdiffmgr_cleanup(void);