summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-01 13:28:31 -0400
committerNick Mathewson <nickm@torproject.org>2017-11-01 13:28:31 -0400
commitcd606d5ad36136cb7e66ac462ea945ceb3a9a7f7 (patch)
treeaaad24fa79b84e7a17e15c79fea8aa30f78b9962 /src/or/connection.c
parente79d74072b2a1087d4527912087573412b7da3a7 (diff)
parentf1bf9bf8198fcfaf078fdc12eb2ad5adf1901d29 (diff)
downloadtor-cd606d5ad36136cb7e66ac462ea945ceb3a9a7f7.tar.gz
tor-cd606d5ad36136cb7e66ac462ea945ceb3a9a7f7.zip
Merge remote-tracking branch 'public/owning_control_fd'
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 632a833652..431ab3a3a0 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -118,8 +118,6 @@ static connection_t *connection_listener_new(
const port_cfg_t *portcfg);
static void connection_init(time_t now, connection_t *conn, int type,
int socket_family);
-static int connection_init_accepted_conn(connection_t *conn,
- const listener_connection_t *listener);
static int connection_handle_listener_read(connection_t *conn, int new_type);
static int connection_bucket_should_increase(int bucket,
or_connection_t *conn);
@@ -1662,11 +1660,15 @@ connection_handle_listener_read(connection_t *conn, int new_type)
}
/** Initialize states for newly accepted connection <b>conn</b>.
+ *
* If conn is an OR, start the TLS handshake.
+ *
* If conn is a transparent AP, get its original destination
* and place it in circuit_wait.
+ *
+ * The <b>listener</b> parameter is only used for AP connections.
*/
-static int
+int
connection_init_accepted_conn(connection_t *conn,
const listener_connection_t *listener)
{