aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection_or.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2018-02-14 13:40:42 +0200
committerDavid Goulet <dgoulet@torproject.org>2018-03-27 12:43:39 -0400
commitab16f1e2a10ee1b95118ec266ba454697e9af012 (patch)
tree19d752188e2bd80bc3e55b8fad294d3d891cfc8f /src/or/connection_or.h
parentf29d158330a8c6bcc91b71a888db741766135aaf (diff)
downloadtor-ab16f1e2a10ee1b95118ec266ba454697e9af012.tar.gz
tor-ab16f1e2a10ee1b95118ec266ba454697e9af012.zip
test: Add unittest for the OR connection failure cache
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/connection_or.h')
-rw-r--r--src/or/connection_or.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/connection_or.h b/src/or/connection_or.h
index 7c1dced631..158eb1fdad 100644
--- a/src/or/connection_or.h
+++ b/src/or/connection_or.h
@@ -120,6 +120,11 @@ int connection_or_single_set_badness_(time_t now,
int force);
void connection_or_group_set_badness_(smartlist_t *group, int force);
+#ifdef CONNECTION_OR_PRIVATE
+STATIC int should_connect_to_relay(const or_connection_t *or_conn);
+STATIC void note_or_connect_failed(const or_connection_t *or_conn);
+#endif
+
#ifdef TOR_UNIT_TESTS
extern int certs_cell_ed25519_disabled_for_testing;
#endif