aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-10 19:33:19 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-10 19:33:19 +0000
commit55520a2d95cafeaebf7073660fd70b3a3019d035 (patch)
treeda9bed3db9468033d27afcee5196889d1253dbdf /src/or/or.h
parentf05685a8eb50c8ab74a43c1d9e81b0302f332b9e (diff)
downloadtor-55520a2d95cafeaebf7073660fd70b3a3019d035.tar
tor-55520a2d95cafeaebf7073660fd70b3a3019d035.tar.gz
r15636@catbus: nickm | 2007-10-10 15:28:12 -0400
Retry consensus and certificate downloads properly. Do not fail when there are no certificates to download. Do not download certificates we already have when retrying. svn:r11841
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index ad9fdf25e..85a686aa8 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3043,10 +3043,11 @@ int tor_init(int argc, char **argv);
/********************************* networkstatus.c *********************/
-/** How old do we allow a network-status to get before removing it
+/** How old do we allow a v2 network-status to get before removing it
* completely? */
#define MAX_NETWORKSTATUS_AGE (10*24*60*60)
+void networkstatus_consensus_download_failed(int status_code);
void networkstatus_reset_warnings(void);
int router_reload_networkstatus(void);
/* for consensuses. */
@@ -3511,7 +3512,7 @@ authority_cert_t *authority_cert_get_newest_by_id(const char *id_digest);
authority_cert_t *authority_cert_get_by_sk_digest(const char *sk_digest);
authority_cert_t *authority_cert_get_by_digests(const char *id_digest,
const char *sk_digest);
-void authority_certs_fetch_missing(networkstatus_vote_t *status);
+void authority_certs_fetch_missing(networkstatus_vote_t *status, time_t now);
void routerlist_add_family(smartlist_t *sl, routerinfo_t *router);
void add_nickname_list_to_smartlist(smartlist_t *sl, const char *list,
int must_be_running);