hs-v3: Add the helper function mark_conn_as_waiting_for_circuit
commit43bd4d7509ceab2d82a85483f08132e90b1ab10d
authorDavid Goulet <dgoulet@torproject.org>
Tue, 4 Dec 2018 19:18:23 +0000 (4 14:18 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 4 Dec 2018 19:34:04 +0000 (4 14:34 -0500)
tree7e12440c8568087f780dcacb1479600e14a6e57b
parent00b59d92817f34c60fe9bc1f8b72b6e81ae1c431
hs-v3: Add the helper function mark_conn_as_waiting_for_circuit

This helper function marks an entry connection as pending for a circuit and
changes its state to AP_CONN_STATE_CIRCUIT_WAIT. The timestamps are set to
now() so it can be considered as new.

No behaviour change, this helper function will be used in next commit.

Part of #28669

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/feature/hs/hs_client.c