summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-05-02 16:33:49 +0300
committerNick Mathewson <nickm@torproject.org>2017-07-07 11:12:26 -0400
commit43a73f6eb648632552a20dd17f5736550df75e10 (patch)
tree54cf869075bc916701c84c83dca3a3b99ead4d4f /src/or/circuitbuild.h
parent9ff5613a340f220a202d3f0332f091d812068881 (diff)
downloadtor-43a73f6eb648632552a20dd17f5736550df75e10.tar.gz
tor-43a73f6eb648632552a20dd17f5736550df75e10.zip
test: Crypto groundwork for e2e circuit unittests.
- Move some crypto structures so that they are visible by tests. - Introduce a func to count number of hops in cpath which will be used by the tests. - Mark a function as mockable.
Diffstat (limited to 'src/or/circuitbuild.h')
-rw-r--r--src/or/circuitbuild.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitbuild.h b/src/or/circuitbuild.h
index ae6864ea57..6910b3a083 100644
--- a/src/or/circuitbuild.h
+++ b/src/or/circuitbuild.h
@@ -83,6 +83,8 @@ MOCK_DECL(STATIC int, count_acceptable_nodes, (smartlist_t *nodes));
#if defined(ENABLE_TOR2WEB_MODE) || defined(TOR_UNIT_TESTS)
STATIC const node_t *pick_tor2web_rendezvous_node(router_crn_flags_t flags,
const or_options_t *options);
+unsigned int cpath_get_n_hops(crypt_path_t **head_ptr);
+
#endif
#endif