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.c | |
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.c')
-rw-r--r-- | src/or/connection_edge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 9c98c56baa..0e18550a41 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -2455,8 +2455,8 @@ connection_ap_get_begincell_flags(entry_connection_t *ap_conn) * * If ap_conn is broken, mark it for close and return -1. Else return 0. */ -int -connection_ap_handshake_send_begin(entry_connection_t *ap_conn) +MOCK_IMPL(int, +connection_ap_handshake_send_begin,(entry_connection_t *ap_conn)) { char payload[CELL_PAYLOAD_SIZE]; int payload_len; |