summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-10-25 19:25:53 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-10-25 20:22:52 +0300
commit8c8d3b90f767076508944f4eb355180e14b6189e (patch)
tree9c031adf7333fc73bd2ffcf002a42965e646bf9e /src/or/entrynodes.h
parentc7a1a987d6dfcb65a5fd639cc3d37b76809c37d5 (diff)
downloadtor-8c8d3b90f767076508944f4eb355180e14b6189e.tar.gz
tor-8c8d3b90f767076508944f4eb355180e14b6189e.zip
Add a unittest that reveals the offending case of #23862.
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 9e1e729930..86f0517df2 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -488,6 +488,10 @@ STATIC entry_guard_t *get_sampled_guard_with_id(guard_selection_t *gs,
MOCK_DECL(STATIC time_t, randomize_time, (time_t now, time_t max_backdate));
+MOCK_DECL(STATIC circuit_guard_state_t *,
+ circuit_guard_state_new,(entry_guard_t *guard, unsigned state,
+ entry_guard_restriction_t *rst));
+
STATIC entry_guard_t *entry_guard_add_to_sample(guard_selection_t *gs,
const node_t *node);
STATIC entry_guard_t *entry_guards_expand_sample(guard_selection_t *gs);