diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-05-02 16:33:49 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-07 11:12:26 -0400 |
commit | 43a73f6eb648632552a20dd17f5736550df75e10 (patch) | |
tree | 54cf869075bc916701c84c83dca3a3b99ead4d4f /src/or/connection_edge.h | |
parent | 9ff5613a340f220a202d3f0332f091d812068881 (diff) | |
download | tor-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/connection_edge.h')
-rw-r--r-- | src/or/connection_edge.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/connection_edge.h b/src/or/connection_edge.h index e4780b3c7d..9987f88b85 100644 --- a/src/or/connection_edge.h +++ b/src/or/connection_edge.h @@ -33,7 +33,8 @@ int connection_edge_finished_connecting(edge_connection_t *conn); void connection_ap_about_to_close(entry_connection_t *edge_conn); void connection_exit_about_to_close(edge_connection_t *edge_conn); -int connection_ap_handshake_send_begin(entry_connection_t *ap_conn); +MOCK_DECL(int, + connection_ap_handshake_send_begin,(entry_connection_t *ap_conn)); int connection_ap_handshake_send_resolve(entry_connection_t *ap_conn); entry_connection_t *connection_ap_make_link(connection_t *partner, |