/dports/security/tor-devel/tor-0.4.7.2-alpha/src/feature/rend/ |
H A D | rendcommon.c | 39 origin_circuit_t *origin_circ = NULL; in rend_process_relay_cell() local 42 origin_circ = TO_ORIGIN_CIRCUIT(circ); in rend_process_relay_cell() 43 if (!layer_hint || layer_hint != origin_circ->cpath->prev) { in rend_process_relay_cell() 47 origin_circ = NULL; in rend_process_relay_cell() 67 if (origin_circ) in rend_process_relay_cell() 71 if (origin_circ) in rend_process_relay_cell() 79 if (origin_circ) in rend_process_relay_cell() 83 if (origin_circ) in rend_process_relay_cell() 87 if (origin_circ) in rend_process_relay_cell() 94 if (r == 0 && origin_circ) { in rend_process_relay_cell() [all …]
|
/dports/security/tor/tor-0.4.6.8/src/feature/rend/ |
H A D | rendcommon.c | 39 origin_circuit_t *origin_circ = NULL; in rend_process_relay_cell() local 42 origin_circ = TO_ORIGIN_CIRCUIT(circ); in rend_process_relay_cell() 43 if (!layer_hint || layer_hint != origin_circ->cpath->prev) { in rend_process_relay_cell() 47 origin_circ = NULL; in rend_process_relay_cell() 67 if (origin_circ) in rend_process_relay_cell() 71 if (origin_circ) in rend_process_relay_cell() 79 if (origin_circ) in rend_process_relay_cell() 83 if (origin_circ) in rend_process_relay_cell() 87 if (origin_circ) in rend_process_relay_cell() 94 if (r == 0 && origin_circ) { in rend_process_relay_cell() [all …]
|
/dports/security/tor/tor-0.4.6.8/src/test/ |
H A D | test_circuitbuild.c | 1703 tt_ptr_op(origin_circ, OP_NE, NULL); in test_circuit_send_next_onion_skin() 1717 tt_ptr_op(origin_circ, OP_NE, NULL); in test_circuit_send_next_onion_skin() 1732 tt_ptr_op(origin_circ, OP_NE, NULL); in test_circuit_send_next_onion_skin() 1734 origin_circ->base_.state = 0; in test_circuit_send_next_onion_skin() 1749 tt_ptr_op(origin_circ, OP_NE, NULL); in test_circuit_send_next_onion_skin() 1750 origin_circ->base_.state = 0; in test_circuit_send_next_onion_skin() 1763 tt_ptr_op(origin_circ, OP_NE, NULL); in test_circuit_send_next_onion_skin() 1764 origin_circ->base_.state = 0; in test_circuit_send_next_onion_skin() 1781 origin_circ->base_.state = 0; in test_circuit_send_next_onion_skin() 1796 origin_circ->base_.state = 0; in test_circuit_send_next_onion_skin() [all …]
|
H A D | test_circuitstats.c | 79 origin_circuit_t *origin_circ = build_unopened_fourhop(circ_start_time); in subtest_fourhop_circuit() local 83 origin_circ->cpath->state = CPATH_STATE_OPEN; in subtest_fourhop_circuit() 84 circuit_build_times_handle_completed_hop(origin_circ); in subtest_fourhop_circuit() 87 origin_circ->cpath->next->state = CPATH_STATE_OPEN; in subtest_fourhop_circuit() 88 circuit_build_times_handle_completed_hop(origin_circ); in subtest_fourhop_circuit() 92 origin_circ->cpath->next->next->state = CPATH_STATE_OPEN; in subtest_fourhop_circuit() 93 circuit_build_times_handle_completed_hop(origin_circ); in subtest_fourhop_circuit() 98 origin_circ->cpath->next->next->next->state = CPATH_STATE_OPEN; in subtest_fourhop_circuit() 99 circuit_build_times_handle_completed_hop(origin_circ); in subtest_fourhop_circuit() 104 return origin_circ; in subtest_fourhop_circuit()
|
H A D | test_relaycrypt.c | 30 origin_circuit_t *origin_circ; member 50 cs->origin_circ = origin_circuit_new(); in testing_circuitset_setup() 51 cs->origin_circ->base_.purpose = CIRCUIT_PURPOSE_C_GENERAL; in testing_circuitset_setup() 57 cpath_extend_linked_list(&cs->origin_circ->cpath, hop); in testing_circuitset_setup() 58 tt_ptr_op(hop, OP_EQ, cs->origin_circ->cpath->prev); in testing_circuitset_setup() 76 circuit_free_(TO_CIRCUIT(cs->origin_circ)); in testing_circuitset_teardown() 110 relay_encrypt_cell_outbound(&encrypted, cs->origin_circ, in test_relaycrypt_outbound() 111 cs->origin_circ->cpath->prev); in test_relaycrypt_outbound() 170 relay_decrypt_cell(TO_CIRCUIT(cs->origin_circ), in test_relaycrypt_inbound() 176 tt_ptr_op(layer_hint, OP_EQ, cs->origin_circ->cpath->prev); in test_relaycrypt_inbound()
|
H A D | test_helpers.c | 546 origin_circuit_t *origin_circ = origin_circuit_new(); in new_test_origin_circuit() local 548 TO_CIRCUIT(origin_circ)->purpose = CIRCUIT_PURPOSE_C_GENERAL; in new_test_origin_circuit() 551 origin_circ->build_state->desired_path_len = path_len; in new_test_origin_circuit() 556 cpath_append_hop(&origin_circ->cpath, ei); in new_test_origin_circuit() 561 origin_circ->has_opened = 1; in new_test_origin_circuit() 562 TO_CIRCUIT(origin_circ)->state = CIRCUIT_STATE_OPEN; in new_test_origin_circuit() 563 origin_circ->cpath->state = CPATH_STATE_OPEN; in new_test_origin_circuit() 565 TO_CIRCUIT(origin_circ)->timestamp_began = circ_start_time; in new_test_origin_circuit() 566 TO_CIRCUIT(origin_circ)->timestamp_created = circ_start_time; in new_test_origin_circuit() 567 origin_circ->cpath->state = CPATH_STATE_CLOSED; in new_test_origin_circuit() [all …]
|
/dports/security/tor-devel/tor-0.4.7.2-alpha/src/test/ |
H A D | test_circuitbuild.c | 1703 tt_ptr_op(origin_circ, OP_NE, NULL); in test_circuit_send_next_onion_skin() 1717 tt_ptr_op(origin_circ, OP_NE, NULL); in test_circuit_send_next_onion_skin() 1732 tt_ptr_op(origin_circ, OP_NE, NULL); in test_circuit_send_next_onion_skin() 1734 origin_circ->base_.state = 0; in test_circuit_send_next_onion_skin() 1749 tt_ptr_op(origin_circ, OP_NE, NULL); in test_circuit_send_next_onion_skin() 1750 origin_circ->base_.state = 0; in test_circuit_send_next_onion_skin() 1763 tt_ptr_op(origin_circ, OP_NE, NULL); in test_circuit_send_next_onion_skin() 1764 origin_circ->base_.state = 0; in test_circuit_send_next_onion_skin() 1781 origin_circ->base_.state = 0; in test_circuit_send_next_onion_skin() 1796 origin_circ->base_.state = 0; in test_circuit_send_next_onion_skin() [all …]
|
H A D | test_circuitstats.c | 79 origin_circuit_t *origin_circ = build_unopened_fourhop(circ_start_time); in subtest_fourhop_circuit() local 83 origin_circ->cpath->state = CPATH_STATE_OPEN; in subtest_fourhop_circuit() 84 circuit_build_times_handle_completed_hop(origin_circ); in subtest_fourhop_circuit() 87 origin_circ->cpath->next->state = CPATH_STATE_OPEN; in subtest_fourhop_circuit() 88 circuit_build_times_handle_completed_hop(origin_circ); in subtest_fourhop_circuit() 92 origin_circ->cpath->next->next->state = CPATH_STATE_OPEN; in subtest_fourhop_circuit() 93 circuit_build_times_handle_completed_hop(origin_circ); in subtest_fourhop_circuit() 98 origin_circ->cpath->next->next->next->state = CPATH_STATE_OPEN; in subtest_fourhop_circuit() 99 circuit_build_times_handle_completed_hop(origin_circ); in subtest_fourhop_circuit() 104 return origin_circ; in subtest_fourhop_circuit()
|
H A D | test_relaycrypt.c | 30 origin_circuit_t *origin_circ; member 50 cs->origin_circ = origin_circuit_new(); in testing_circuitset_setup() 51 cs->origin_circ->base_.purpose = CIRCUIT_PURPOSE_C_GENERAL; in testing_circuitset_setup() 57 cpath_extend_linked_list(&cs->origin_circ->cpath, hop); in testing_circuitset_setup() 58 tt_ptr_op(hop, OP_EQ, cs->origin_circ->cpath->prev); in testing_circuitset_setup() 76 circuit_free_(TO_CIRCUIT(cs->origin_circ)); in testing_circuitset_teardown() 110 relay_encrypt_cell_outbound(&encrypted, cs->origin_circ, in test_relaycrypt_outbound() 111 cs->origin_circ->cpath->prev); in test_relaycrypt_outbound() 170 relay_decrypt_cell(TO_CIRCUIT(cs->origin_circ), in test_relaycrypt_inbound() 176 tt_ptr_op(layer_hint, OP_EQ, cs->origin_circ->cpath->prev); in test_relaycrypt_inbound()
|
H A D | test_helpers.c | 546 origin_circuit_t *origin_circ = origin_circuit_new(); in new_test_origin_circuit() local 548 TO_CIRCUIT(origin_circ)->purpose = CIRCUIT_PURPOSE_C_GENERAL; in new_test_origin_circuit() 551 origin_circ->build_state->desired_path_len = path_len; in new_test_origin_circuit() 556 cpath_append_hop(&origin_circ->cpath, ei); in new_test_origin_circuit() 561 origin_circ->has_opened = 1; in new_test_origin_circuit() 562 TO_CIRCUIT(origin_circ)->state = CIRCUIT_STATE_OPEN; in new_test_origin_circuit() 563 origin_circ->cpath->state = CPATH_STATE_OPEN; in new_test_origin_circuit() 565 TO_CIRCUIT(origin_circ)->timestamp_began = circ_start_time; in new_test_origin_circuit() 566 TO_CIRCUIT(origin_circ)->timestamp_created = circ_start_time; in new_test_origin_circuit() 567 origin_circ->cpath->state = CPATH_STATE_CLOSED; in new_test_origin_circuit() [all …]
|
/dports/security/tor-devel/tor-0.4.7.2-alpha/src/core/or/ |
H A D | circuituse.c | 137 if (origin_circ->hs_circ_has_timed_out) { in circuit_is_acceptable() 151 if (origin_circ->unusable_for_new_conns) in circuit_is_acceptable() 160 build_state = origin_circ->build_state; in circuit_is_acceptable() 206 if (origin_circ->prepend_policy) { in circuit_is_acceptable() 351 origin_circuit_t *origin_circ; in circuit_get_best() local 354 origin_circ = TO_ORIGIN_CIRCUIT(circ); in circuit_get_best() 373 best = origin_circ; in circuit_get_best() 1085 const origin_circuit_t *origin_circ; in circuit_is_available_for_use() local 1104 build_state = origin_circ->build_state; in circuit_is_available_for_use() 1380 if (conn == origin_circ->p_streams) { in circuit_detach_stream() [all …]
|
H A D | circuitlist.c | 631 circuit_remove_from_origin_circuit_list(origin_circuit_t *origin_circ) in circuit_remove_from_origin_circuit_list() argument 633 int origin_idx = origin_circ->global_origin_circuit_list_idx; in circuit_remove_from_origin_circuit_list() 639 tor_assert(origin_circ == c2); in circuit_remove_from_origin_circuit_list() 646 origin_circ->global_origin_circuit_list_idx = -1; in circuit_remove_from_origin_circuit_list() 652 circuit_add_to_origin_circuit_list(origin_circuit_t *origin_circ) in circuit_add_to_origin_circuit_list() argument 654 tor_assert(origin_circ->global_origin_circuit_list_idx == -1); in circuit_add_to_origin_circuit_list() 656 smartlist_add(lst, origin_circ); in circuit_add_to_origin_circuit_list() 2739 const origin_circuit_t *origin_circ = NULL; variable 2747 origin_circ = CONST_TO_ORIGIN_CIRCUIT(c); 2791 if (origin_circ && origin_circ->cpath) { [all …]
|
H A D | connection_edge.c | 3817 origin_circuit_t *origin_circ; in handle_hs_exit_conn() local 3826 origin_circ = TO_ORIGIN_CIRCUIT(circ); in handle_hs_exit_conn() 3830 if (origin_circ->hs_ident) { in handle_hs_exit_conn() 3870 if (!origin_circ->p_streams) in handle_hs_exit_conn() 3874 conn->next_stream = origin_circ->p_streams; in handle_hs_exit_conn() 3875 origin_circ->p_streams = conn; in handle_hs_exit_conn() 3879 hs_inc_rdv_stream_counter(origin_circ); in handle_hs_exit_conn() 3893 pathbias_mark_use_success(origin_circ); in handle_hs_exit_conn() 3923 origin_circuit_t *origin_circ = NULL; in connection_exit_begin_conn() local 3935 origin_circ = TO_ORIGIN_CIRCUIT(circ); in connection_exit_begin_conn() [all …]
|
H A D | command.c | 429 origin_circuit_t *origin_circ = TO_ORIGIN_CIRCUIT(circ); in command_process_created_cell() local 432 if ((err_reason = circuit_finish_handshake(origin_circ, in command_process_created_cell() 438 if ((err_reason = circuit_send_next_onion_skin(origin_circ)) < 0) { in command_process_created_cell()
|
H A D | relay.c | 666 origin_circuit_t *origin_circ = TO_ORIGIN_CIRCUIT(circ); 667 if (origin_circ->remaining_relay_early_cells > 0 && 670 cpath_layer != origin_circ->cpath)) { 677 if (--origin_circ->remaining_relay_early_cells == 0) 678 circpad_machine_event_circ_has_no_relay_early(origin_circ); 680 (int)origin_circ->remaining_relay_early_cells); 683 origin_circ->relay_early_commands[ 684 origin_circ->relay_early_cells_sent++] = relay_command; 693 for (; i < origin_circ->relay_early_cells_sent; i++) 695 relay_command_to_string(origin_circ->relay_early_commands[i])); [all …]
|
/dports/security/tor/tor-0.4.6.8/src/core/or/ |
H A D | circuituse.c | 137 if (origin_circ->hs_circ_has_timed_out) { in circuit_is_acceptable() 151 if (origin_circ->unusable_for_new_conns) in circuit_is_acceptable() 160 build_state = origin_circ->build_state; in circuit_is_acceptable() 206 if (origin_circ->prepend_policy) { in circuit_is_acceptable() 351 origin_circuit_t *origin_circ; in circuit_get_best() local 354 origin_circ = TO_ORIGIN_CIRCUIT(circ); in circuit_get_best() 373 best = origin_circ; in circuit_get_best() 1085 const origin_circuit_t *origin_circ; in circuit_is_available_for_use() local 1104 build_state = origin_circ->build_state; in circuit_is_available_for_use() 1396 if (conn == origin_circ->p_streams) { in circuit_detach_stream() [all …]
|
H A D | circuitlist.c | 629 circuit_remove_from_origin_circuit_list(origin_circuit_t *origin_circ) in circuit_remove_from_origin_circuit_list() argument 631 int origin_idx = origin_circ->global_origin_circuit_list_idx; in circuit_remove_from_origin_circuit_list() 637 tor_assert(origin_circ == c2); in circuit_remove_from_origin_circuit_list() 644 origin_circ->global_origin_circuit_list_idx = -1; in circuit_remove_from_origin_circuit_list() 650 circuit_add_to_origin_circuit_list(origin_circuit_t *origin_circ) in circuit_add_to_origin_circuit_list() argument 652 tor_assert(origin_circ->global_origin_circuit_list_idx == -1); in circuit_add_to_origin_circuit_list() 654 smartlist_add(lst, origin_circ); in circuit_add_to_origin_circuit_list() 2718 const origin_circuit_t *origin_circ = NULL; variable 2726 origin_circ = CONST_TO_ORIGIN_CIRCUIT(c); 2770 if (origin_circ && origin_circ->cpath) { [all …]
|
H A D | connection_edge.c | 3848 origin_circuit_t *origin_circ; in handle_hs_exit_conn() local 3857 origin_circ = TO_ORIGIN_CIRCUIT(circ); in handle_hs_exit_conn() 3861 if (origin_circ->hs_ident) { in handle_hs_exit_conn() 3901 if (!origin_circ->p_streams) in handle_hs_exit_conn() 3905 conn->next_stream = origin_circ->p_streams; in handle_hs_exit_conn() 3906 origin_circ->p_streams = conn; in handle_hs_exit_conn() 3910 hs_inc_rdv_stream_counter(origin_circ); in handle_hs_exit_conn() 3924 pathbias_mark_use_success(origin_circ); in handle_hs_exit_conn() 3954 origin_circuit_t *origin_circ = NULL; in connection_exit_begin_conn() local 3966 origin_circ = TO_ORIGIN_CIRCUIT(circ); in connection_exit_begin_conn() [all …]
|
H A D | command.c | 429 origin_circuit_t *origin_circ = TO_ORIGIN_CIRCUIT(circ); in command_process_created_cell() local 432 if ((err_reason = circuit_finish_handshake(origin_circ, in command_process_created_cell() 438 if ((err_reason = circuit_send_next_onion_skin(origin_circ)) < 0) { in command_process_created_cell()
|
H A D | relay.c | 662 origin_circuit_t *origin_circ = TO_ORIGIN_CIRCUIT(circ); 663 if (origin_circ->remaining_relay_early_cells > 0 && 666 cpath_layer != origin_circ->cpath)) { 673 if (--origin_circ->remaining_relay_early_cells == 0) 674 circpad_machine_event_circ_has_no_relay_early(origin_circ); 676 (int)origin_circ->remaining_relay_early_cells); 679 origin_circ->relay_early_commands[ 680 origin_circ->relay_early_cells_sent++] = relay_command; 689 for (; i < origin_circ->relay_early_cells_sent; i++) 691 relay_command_to_string(origin_circ->relay_early_commands[i])); [all …]
|
/dports/security/tor/tor-0.4.6.8/src/feature/control/ |
H A D | control_getinfo.c | 1157 origin_circuit_t *origin_circ = NULL; in getinfo_helper_events() local 1188 origin_circ = TO_ORIGIN_CIRCUIT(circ); in getinfo_helper_events() 1192 origin_circ? in getinfo_helper_events() 1193 (unsigned long)origin_circ->global_identifier : 0ul, in getinfo_helper_events()
|
H A D | control_events.c | 795 origin_circuit_t *origin_circ = NULL; in control_event_stream_status() local 896 origin_circ = TO_ORIGIN_CIRCUIT(circ); in control_event_stream_status() 905 origin_circ? in control_event_stream_status() 906 (unsigned long)origin_circ->global_identifier : 0ul, in control_event_stream_status()
|
/dports/security/tor-devel/tor-0.4.7.2-alpha/src/feature/control/ |
H A D | control_getinfo.c | 1157 origin_circuit_t *origin_circ = NULL; in getinfo_helper_events() local 1188 origin_circ = TO_ORIGIN_CIRCUIT(circ); in getinfo_helper_events() 1192 origin_circ? in getinfo_helper_events() 1193 (unsigned long)origin_circ->global_identifier : 0ul, in getinfo_helper_events()
|
H A D | control_events.c | 795 origin_circuit_t *origin_circ = NULL; in control_event_stream_status() local 896 origin_circ = TO_ORIGIN_CIRCUIT(circ); in control_event_stream_status() 905 origin_circ? in control_event_stream_status() 906 (unsigned long)origin_circ->global_identifier : 0ul, in control_event_stream_status()
|
/dports/security/tor-devel/tor-0.4.7.2-alpha/src/feature/client/ |
H A D | entrynodes.c | 2565 origin_circuit_t *origin_circ = TO_ORIGIN_CIRCUIT(circ); in entry_guard_chan_failed() local 2566 if (origin_circ->guard_state) { in entry_guard_chan_failed() 2569 entry_guard_failed(&origin_circ->guard_state); in entry_guard_chan_failed()
|