summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/or/directory.c2
-rw-r--r--src/or/networkstatus.c7
-rw-r--r--src/or/or.h1
3 files changed, 10 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index d5193556ca..a7015bb319 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -592,6 +592,8 @@ connection_dir_download_cert_failed(dir_connection_t *conn, int status)
tor_free(cp);
});
smartlist_free(failed);
+
+ update_certificate_downloads(time(NULL));
}
/** Helper for directory_initiate_command_(router|trusted_dir): send the
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 2735203dc5..a9efd8d92e 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -843,6 +843,13 @@ update_networkstatus_downloads(time_t now)
if (dirserver_mode(options))
update_v2_networkstatus_cache_downloads(now);
update_consensus_networkstatus_downloads(now);
+ update_certificate_downloads(now);
+}
+
+/**DOCDOC */
+void
+update_certificate_downloads(time_t now)
+{
if (consensus_waiting_for_certs)
authority_certs_fetch_missing(consensus_waiting_for_certs, now);
else
diff --git a/src/or/or.h b/src/or/or.h
index 5e7d582ebc..677c30a391 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3106,6 +3106,7 @@ void networkstatus_consensus_download_failed(int status_code);
void update_consensus_networkstatus_fetch_time(time_t now);
int should_delay_dir_fetches(or_options_t *options);
void update_networkstatus_downloads(time_t now);
+void update_certificate_downloads(time_t now);
networkstatus_v2_t *networkstatus_v2_get_by_digest(const char *digest);
networkstatus_vote_t *networkstatus_get_latest_consensus(void);
networkstatus_vote_t *networkstatus_get_live_consensus(time_t now);