12 #ifndef TOR_CIRCUITBUILD_H
13 #define TOR_CIRCUITBUILD_H
31 int close_origin_circuits);
52 struct circuit_guard_state_t;
56 struct circuit_guard_state_t **guard_state_out);
67 #ifdef CIRCUITBUILD_PRIVATE
78 int is_hs_v3_rp_circuit);
80 STATIC int cpath_build_state_to_crn_ipv6_extend_flag(
STATIC int count_acceptable_nodes(const smartlist_t *nodes, int direct)
STATIC int onion_pick_cpath_exit(origin_circuit_t *circ, extend_info_t *exit_ei, int is_hs_v3_rp_circuit)
STATIC circid_t get_unique_circ_id_by_chan(channel_t *chan)
STATIC int onion_extend_cpath(origin_circuit_t *circ)
STATIC int new_route_len(uint8_t purpose, extend_info_t *exit_ei, const smartlist_t *nodes)
int circuit_finish_handshake(origin_circuit_t *circ, const created_cell_t *reply)
const char * build_state_get_exit_nickname(cpath_build_state_t *state)
char * circuit_list_path(origin_circuit_t *circ, int verbose)
int circuit_handle_first_hop(origin_circuit_t *circ)
void circuit_log_path(int severity, unsigned int domain, origin_circuit_t *circ)
int route_len_for_purpose(uint8_t purpose, extend_info_t *exit_ei)
const uint8_t * build_state_get_exit_rsa_id(cpath_build_state_t *state)
char * circuit_list_path_for_controller(origin_circuit_t *circ)
const node_t * build_state_get_exit_node(cpath_build_state_t *state)
int circuit_deliver_create_cell(circuit_t *circ, const struct create_cell_t *create_cell, int relayed)
int circuit_extend_to_new_exit(origin_circuit_t *circ, extend_info_t *info)
void circuit_n_chan_done(channel_t *chan, int status, int close_origin_circuits)
int circuit_append_new_exit(origin_circuit_t *circ, extend_info_t *info)
int circuit_timeout_want_to_count_circ(const origin_circuit_t *circ)
const node_t * choose_good_entry_server(uint8_t purpose, cpath_build_state_t *state, struct circuit_guard_state_t **guard_state_out)
origin_circuit_t * origin_circuit_init(uint8_t purpose, int flags)
int circuit_all_predicted_ports_handled(time_t now, int *need_uptime, int *need_capacity)
origin_circuit_t * circuit_establish_circuit(uint8_t purpose, extend_info_t *exit, int flags)
void circuit_note_clock_jumped(int64_t seconds_elapsed, bool was_idle)
int circuit_send_next_onion_skin(origin_circuit_t *circ)
int circuit_truncated(origin_circuit_t *circ, int reason)
channel_t * channel_connect_for_circuit(const extend_info_t *ei)
struct circuit_guard_state_t * origin_circuit_get_guard_state(origin_circuit_t *circ)
void circuit_upgrade_circuits_from_guard_wait(void)
#define MOCK_DECL(rv, funcname, arglist)