aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/connection_or.c
diff options
context:
space:
mode:
authorSuphanat Chunhapanya <haxx.pop@gmail.com>2019-10-21 18:00:02 +0800
committerNick Mathewson <nickm@torproject.org>2020-01-06 13:39:10 -0500
commitde58a49a2db20638823a77a1fb4c7f913f4f2169 (patch)
tree4cf6c897077b4791b858eb11c090ee7fc3d50134 /src/core/or/connection_or.c
parent41b9dca07bb7dea4758cf97f9bbff7a52b09ebf4 (diff)
downloadtor-de58a49a2db20638823a77a1fb4c7f913f4f2169.tar.gz
tor-de58a49a2db20638823a77a1fb4c7f913f4f2169.zip
test: HAPRoxy protocol
Diffstat (limited to 'src/core/or/connection_or.c')
-rw-r--r--src/core/or/connection_or.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/core/or/connection_or.c b/src/core/or/connection_or.c
index d9db17ef77..31b8210888 100644
--- a/src/core/or/connection_or.c
+++ b/src/core/or/connection_or.c
@@ -95,13 +95,6 @@ static unsigned int
connection_or_is_bad_for_new_circs(or_connection_t *or_conn);
static void connection_or_mark_bad_for_new_circs(or_connection_t *or_conn);
-/*
- * Call this when changing connection state, so notifications to the owning
- * channel can be handled.
- */
-
-static void connection_or_change_state(or_connection_t *conn, uint8_t state);
-
static void connection_or_check_canonicity(or_connection_t *conn,
int started_here);
@@ -457,8 +450,8 @@ connection_or_state_publish(const or_connection_t *conn, uint8_t state)
* be notified.
*/
-static void
-connection_or_change_state(or_connection_t *conn, uint8_t state)
+MOCK_IMPL(STATIC void,
+connection_or_change_state,(or_connection_t *conn, uint8_t state))
{
tor_assert(conn);