summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-05-22 14:10:38 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-05-22 15:57:33 +0300
commit52498b8183a2ab1da525180ee76f704d8257ebc6 (patch)
tree8843e6d95581e037d256e515e111d68c74b0e8dc /src/or/entrynodes.h
parentbbeba2412e58501da4097409258d329ca97edb2e (diff)
downloadtor-52498b8183a2ab1da525180ee76f704d8257ebc6.tar.gz
tor-52498b8183a2ab1da525180ee76f704d8257ebc6.zip
Set guard state on bridge descriptor fetches.
We used to not set the guard state in launch_direct_bridge_descriptor_fetch(). So when a bridge descriptor fetch failed, the guard subsystem would never learn about the fail (and hence the guard's reachability state would not be updated).
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index 400a84269d..11b618bb50 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -323,6 +323,10 @@ const node_t *guards_choose_dirguard(circuit_guard_state_t **guard_state_out);
entry_guard_t *entry_guard_get_by_id_digest_for_guard_selection(
guard_selection_t *gs, const char *digest);
entry_guard_t *entry_guard_get_by_id_digest(const char *digest);
+
+circuit_guard_state_t *
+get_guard_state_for_bridge_desc_fetch(const char *digest);
+
void entry_guards_changed_for_guard_selection(guard_selection_t *gs);
void entry_guards_changed(void);
guard_selection_t * get_guard_selection_info(void);