summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-15 08:15:29 -0500
committerNick Mathewson <nickm@torproject.org>2016-11-30 14:42:52 -0500
commitc74542c51a2ce75e602e3e237bd41d1fd08a2fb0 (patch)
tree13ff541248598bb7b34a1f410b81b617f0c32354 /src/or/entrynodes.h
parent8da24c99bdb90b04a05d5bccf5bcff1218174b75 (diff)
downloadtor-c74542c51a2ce75e602e3e237bd41d1fd08a2fb0.tar.gz
tor-c74542c51a2ce75e602e3e237bd41d1fd08a2fb0.zip
Add accessors as needed to repair compilation
The previous commit, in moving a bunch of functions to bridges.c, broke compilation because bridges.c required two entry points to entrynodes.c it didn't have.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index 8407945e4c..f07f843ae7 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -154,6 +154,11 @@ const char *entry_guard_get_rsa_id_digest(const entry_guard_t *guard);
const char *entry_guard_describe(const entry_guard_t *guard);
guard_pathbias_t *entry_guard_get_pathbias_state(entry_guard_t *guard);
+/* Used by bridges.c only. */
+void add_bridge_as_entry_guard(guard_selection_t *gs,
+ const node_t *chosen);
+int num_bridges_usable(void);
+
#ifdef ENTRYNODES_PRIVATE
STATIC time_t randomize_time(time_t now, time_t max_backdate);
STATIC void entry_guard_add_to_sample(guard_selection_t *gs,