]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
13 years agoAdd GeoIP database for IPv6 addresses
nils [Thu, 1 Mar 2012 01:04:45 +0000 (17:04 -0800)] 
Add GeoIP database for IPv6 addresses

13 years agoRename address family specific IPv4 geoip functions in preparation for IPv6 support
nils [Thu, 1 Mar 2012 00:42:59 +0000 (16:42 -0800)] 
Rename address family specific IPv4 geoip functions in preparation for IPv6 support

13 years agoMerge branch 'bug7087' of git://git.torproject.org/user/andrea/tor
Andrea Shepard [Mon, 15 Oct 2012 14:22:33 +0000 (07:22 -0700)] 
Merge branch 'bug7087' of git://git.torproject.org/user/andrea/tor

13 years agoAdd debug logging for channel_free() and channel_force_free()
Andrea Shepard [Mon, 15 Oct 2012 13:46:23 +0000 (06:46 -0700)] 
Add debug logging for channel_free() and channel_force_free()

13 years agoCorrectly clear cmux policies and free cmux in channel_free() and channel_force_free()
Andrea Shepard [Mon, 15 Oct 2012 13:32:44 +0000 (06:32 -0700)] 
Correctly clear cmux policies and free cmux in channel_free() and channel_force_free()

13 years agoMerge remote-tracking branch 'arma/bug7029'
Nick Mathewson [Mon, 15 Oct 2012 03:06:43 +0000 (23:06 -0400)] 
Merge remote-tracking branch 'arma/bug7029'

13 years agofix trivial typo
Roger Dingledine [Sat, 13 Oct 2012 22:34:24 +0000 (18:34 -0400)] 
fix trivial typo

13 years agotypo in src/ext/README; caught by rransom (thanks!)
Nick Mathewson [Fri, 12 Oct 2012 23:48:26 +0000 (19:48 -0400)] 
typo in src/ext/README; caught by rransom (thanks!)

13 years agoFix whitespace in aes.c
Nick Mathewson [Fri, 12 Oct 2012 21:17:36 +0000 (17:17 -0400)] 
Fix whitespace in aes.c

13 years agoSimplify list of files that get whitespace-checked
Nick Mathewson [Fri, 12 Oct 2012 21:16:20 +0000 (17:16 -0400)] 
Simplify list of files that get whitespace-checked

The rule is simple: Everything not in src/ext!

13 years agoMove strlcpy and strlcat into src/ext too
Nick Mathewson [Fri, 12 Oct 2012 21:09:33 +0000 (17:09 -0400)] 
Move strlcpy and strlcat into src/ext too

13 years agoDistribute src/ext/README.
Nick Mathewson [Fri, 12 Oct 2012 21:00:35 +0000 (17:00 -0400)] 
Distribute src/ext/README.

13 years agoAdd a README file for the src/ext directory.
Nick Mathewson [Fri, 12 Oct 2012 21:00:01 +0000 (17:00 -0400)] 
Add a README file for the src/ext directory.

13 years agoMake tor_addr_is_internal log the calling function on error
Nick Mathewson [Fri, 12 Oct 2012 15:34:54 +0000 (11:34 -0400)] 
Make tor_addr_is_internal log the calling function on error

This might make it a little easier to track down bug  7086.

13 years agoInstall correct incoming cell handlers on reachability testing channels
Andrea Shepard [Fri, 12 Oct 2012 07:45:31 +0000 (00:45 -0700)] 
Install correct incoming cell handlers on reachability testing channels

Fix for bug 7086.

13 years agoMerge branch 'move_contrib_source' of git://git.torproject.org/nickm/tor
Andrea Shepard [Thu, 11 Oct 2012 22:55:26 +0000 (15:55 -0700)] 
Merge branch 'move_contrib_source' of git://git.torproject.org/nickm/tor

13 years agoMove all externally maintained source files into src/ext
Nick Mathewson [Thu, 11 Oct 2012 21:19:37 +0000 (17:19 -0400)] 
Move all externally maintained source files into src/ext

The rationale for treating these files differently is that we should
be checking upstream for changes as applicable, and merging changes
upstream as warranted.

13 years agoMake very sure to handle cells in-order on channels.
Nick Mathewson [Thu, 11 Oct 2012 04:35:58 +0000 (00:35 -0400)] 
Make very sure to handle cells in-order on channels.

Fix on code for 6465, not yet in any release.

13 years agoMerge branch 'bug7011'
Nick Mathewson [Thu, 11 Oct 2012 02:31:06 +0000 (22:31 -0400)] 
Merge branch 'bug7011'

Conflicts:
src/or/circuitbuild.c

The conflict was trivial, since no line of code actually changed in
both branches: There was a fmt_addr() that turned into fmt_addrport()
in bug7011, and a "if (!n_conn)" that turned into "if (!n_chan)" in
master.

13 years agoFix changes/bug7011 slightly
Nick Mathewson [Thu, 11 Oct 2012 02:27:52 +0000 (22:27 -0400)] 
Fix changes/bug7011 slightly

13 years agoAdd changes file for bug7011.
David Fifield [Thu, 11 Oct 2012 00:34:55 +0000 (17:34 -0700)] 
Add changes file for bug7011.

13 years agoUse fmt_addrport in pt_get_extra_info_descriptor_string.
David Fifield [Thu, 11 Oct 2012 00:08:07 +0000 (17:08 -0700)] 
Use fmt_addrport in pt_get_extra_info_descriptor_string.

This patch is by asn.
https://trac.torproject.org/projects/tor/ticket/7011#comment:11

13 years agoUse fmt_addrport where appropriate.
David Fifield [Sun, 7 Oct 2012 04:25:25 +0000 (21:25 -0700)] 
Use fmt_addrport where appropriate.

This is mostly a conversion from this pattern:
log("... %s:%d ...", fmt_and_decorate_addr(&addr), port);
to this:
log("... %s ...", fmt_addrport(&addr, port));

The output is the same in all cases.

13 years agoAdd fmt_addrport.
David Fifield [Fri, 5 Oct 2012 02:43:44 +0000 (19:43 -0700)] 
Add fmt_addrport.

This function formats an addr:port pair, and always decorates IPv6
addresses.

13 years agoUse fmt_and_decorate_addr in extra-info "transport" lines.
David Fifield [Thu, 11 Oct 2012 00:11:03 +0000 (17:11 -0700)] 
Use fmt_and_decorate_addr in extra-info "transport" lines.

Apparently BridgeDB is already expecting transport lines to be formatted
thus; see https://trac.torproject.org/projects/tor/ticket/7011#comment:12 ff.
It may be that there are no extant IPv6 pluggable transport bridges yet,
so this didn't cause a problem.

13 years agoUse fmt_and_decorate_addr in TransportProxy statefile entry.
David Fifield [Sun, 7 Oct 2012 04:03:24 +0000 (21:03 -0700)] 
Use fmt_and_decorate_addr in TransportProxy statefile entry.

state_transport_line_is_valid calls tor_addr_port_lookup, which expects
brackets around an IPv6 address. Without this, cached transport
addresses can't be parsed later:

[warn] state: Could not parse addrport.
[warn] state: State file seems to be broken.

See #7011.

13 years agoDecorate addresses given to a HTTP CONNECT proxy.
David Fifield [Sun, 7 Oct 2012 03:40:18 +0000 (20:40 -0700)] 
Decorate addresses given to a HTTP CONNECT proxy.

This affects the Request-URI and the value of the Host header. RFC 2616
doesn't directly address the formatting of IPv6 addresses, but it
delegates some productions to RFC 2396 "Uniform Resource Identifiers
(URI): Generic Syntax," which is obsoleted by RFC 3986, which requires
square brackets for IPv6 addresses in both places.

I tested this with
HTTPSProxy 127.0.0.1:8000
Bridge <IPv6 bridge>
UseBridges 1
and an Ncat HTTP proxy:
ncat --proxy-type http -l 8000 -vvv

https://tools.ietf.org/html/rfc2616#section-3.2.1
https://tools.ietf.org/html/rfc2616#section-5.1.2
https://tools.ietf.org/html/rfc2616#section-14.23
https://tools.ietf.org/html/rfc3986#section-3.2.2

13 years agoUse fmt_and_decorate_addr in log messages.
David Fifield [Sun, 7 Oct 2012 03:30:58 +0000 (20:30 -0700)] 
Use fmt_and_decorate_addr in log messages.

13 years agoMerge branch 'bug6816_squashed_nowarn' of git://git.torproject.org/nickm/tor
Andrea Shepard [Thu, 11 Oct 2012 01:53:38 +0000 (18:53 -0700)] 
Merge branch 'bug6816_squashed_nowarn' of git://git.torproject.org/nickm/tor

13 years agoRemove variables; fix gcc 4.7 warnings
Nick Mathewson [Thu, 11 Oct 2012 01:25:52 +0000 (21:25 -0400)] 
Remove variables; fix gcc 4.7 warnings

My GCC warns when variables are assigned to but never used.  There
were a few like that in the 6816/6465 branches.

13 years agoAdd changes file for bug6816
Andrea Shepard [Wed, 10 Oct 2012 07:51:55 +0000 (00:51 -0700)] 
Add changes file for bug6816

13 years agoFix formatting in various places after 6465/6816 work
Andrea Shepard [Wed, 10 Oct 2012 07:48:36 +0000 (00:48 -0700)] 
Fix formatting in various places after 6465/6816 work

13 years agoMake channel_flush_some_cells() compile cleanly on machines with ssize_t larger than...
Andrea Shepard [Wed, 10 Oct 2012 07:19:57 +0000 (00:19 -0700)] 
Make channel_flush_some_cells() compile cleanly on machines with ssize_t larger than int per sjumrdoch comment

13 years agoDon't remove circuitmux hash table entries in circuitmux_detach_circuit() until after...
Andrea Shepard [Sat, 6 Oct 2012 12:45:24 +0000 (05:45 -0700)] 
Don't remove circuitmux hash table entries in circuitmux_detach_circuit() until after circuitmux_make_circuit_inactive()

13 years agoFix 'warning: circuit was already inactive' and assert in circuitmux_make_circuit_ina...
Andrea Shepard [Sat, 6 Oct 2012 04:57:42 +0000 (21:57 -0700)] 
Fix 'warning: circuit was already inactive' and assert in circuitmux_make_circuit_inactive() during circuitmux_detach_all_circuits()

13 years agoBring summary comment block in circuitmux.c up to date
Andrea Shepard [Wed, 3 Oct 2012 03:08:30 +0000 (20:08 -0700)] 
Bring summary comment block in circuitmux.c up to date

13 years agoNew and improved circuitmux_detach_all_circuits(), now without the stupid
Andrea Shepard [Tue, 2 Oct 2012 04:03:38 +0000 (21:03 -0700)] 
New and improved circuitmux_detach_all_circuits(), now without the stupid

13 years agoCorrectly set magic numbers on ewma policy data/circuit data when allocating
Andrea Shepard [Tue, 2 Oct 2012 03:30:33 +0000 (20:30 -0700)] 
Correctly set magic numbers on ewma policy data/circuit data when allocating

13 years agoSet circuitmux policy on existing active channels when ewma_enabled changes
Andrea Shepard [Tue, 2 Oct 2012 03:27:51 +0000 (20:27 -0700)] 
Set circuitmux policy on existing active channels when ewma_enabled changes

13 years agoSet circuitmux policy on new channels in channeltls.c
Andrea Shepard [Tue, 2 Oct 2012 03:27:01 +0000 (20:27 -0700)] 
Set circuitmux policy on new channels in channeltls.c

13 years agoImplement cell_ewma_enabled()
Andrea Shepard [Tue, 2 Oct 2012 03:08:36 +0000 (20:08 -0700)] 
Implement cell_ewma_enabled()

13 years agoImplement channel_set_cmux_policy_everywhere()
Andrea Shepard [Tue, 2 Oct 2012 03:05:03 +0000 (20:05 -0700)] 
Implement channel_set_cmux_policy_everywhere()

13 years agoFix broken circuitmux_move_active_circ_to_tail(); don't assume n_chan is not NULL...
Andrea Shepard [Tue, 2 Oct 2012 00:33:41 +0000 (17:33 -0700)] 
Fix broken circuitmux_move_active_circ_to_tail(); don't assume n_chan is not NULL in circuitmux_detach_circuit()

13 years agoAllow n_chan to be NULL in circuitmux_find_map_entry(); it can be but with non-NULL...
Andrea Shepard [Mon, 1 Oct 2012 21:55:33 +0000 (14:55 -0700)] 
Allow n_chan to be NULL in circuitmux_find_map_entry(); it can be but with non-NULL p_chan when extending a circuit

13 years agoUse circuit_get_by_circid_channel_even_if_marked() and fix some asserts in circuitmux.c
Andrea Shepard [Mon, 1 Oct 2012 21:25:52 +0000 (14:25 -0700)] 
Use circuit_get_by_circid_channel_even_if_marked() and fix some asserts in circuitmux.c

13 years agoFix some circuitmux-related asserts in relay.c
Andrea Shepard [Mon, 1 Oct 2012 21:24:08 +0000 (14:24 -0700)] 
Fix some circuitmux-related asserts in relay.c

13 years agoFix detach when setting circuit ID to 0 bug in circuit_set_circid_chan_helper() and...
Andrea Shepard [Mon, 1 Oct 2012 21:22:53 +0000 (14:22 -0700)] 
Fix detach when setting circuit ID to 0 bug in circuit_set_circid_chan_helper() and add circuit_get_by_circid_channel_even_if_marked()

13 years agoDetach circuits from circuitmux early when freeing channel so they can find the chann...
Andrea Shepard [Mon, 1 Oct 2012 21:22:04 +0000 (14:22 -0700)] 
Detach circuits from circuitmux early when freeing channel so they can find the channel by ID

13 years agoHandle closing circuits correctly with circuitmux_t
Andrea Shepard [Mon, 1 Oct 2012 20:06:10 +0000 (13:06 -0700)] 
Handle closing circuits correctly with circuitmux_t

13 years agoAdd a bunch of paranoid-mode expensive asserts incircuitmux.c
Andrea Shepard [Mon, 1 Oct 2012 19:01:05 +0000 (12:01 -0700)] 
Add a bunch of paranoid-mode expensive asserts incircuitmux.c

13 years agoAdjust the circuitmux_t counter correctly in circuitmux_notify_xmit_cells()
Andrea Shepard [Mon, 1 Oct 2012 17:58:27 +0000 (10:58 -0700)] 
Adjust the circuitmux_t counter correctly in circuitmux_notify_xmit_cells()

13 years agoFix circuitmux attach/detach logic in circuit_set_circid_chan_helper(); it's possible...
Andrea Shepard [Mon, 1 Oct 2012 17:39:40 +0000 (10:39 -0700)] 
Fix circuitmux attach/detach logic in circuit_set_circid_chan_helper(); it's possible for id to be zero (not assigned yet) and shouldn't be attached then

13 years agoUpdate circuitmux-related TODOs in channeltls.c
Andrea Shepard [Mon, 1 Oct 2012 08:59:40 +0000 (01:59 -0700)] 
Update circuitmux-related TODOs in channeltls.c

13 years agoFix comment on circuit_t.n_hop and remove circuitmux TODO in or.h
Andrea Shepard [Mon, 1 Oct 2012 08:58:13 +0000 (01:58 -0700)] 
Fix comment on circuit_t.n_hop and remove circuitmux TODO in or.h

13 years agoMove all EWMA code into circuitmux.c and implement circuitmux_policy_t methods using it
Andrea Shepard [Mon, 1 Oct 2012 08:54:42 +0000 (01:54 -0700)] 
Move all EWMA code into circuitmux.c and implement circuitmux_policy_t methods using it

13 years agoAdd circuitmux.h, circuitmux_ewma.h includes now necessary in networkstatus.c
Andrea Shepard [Mon, 1 Oct 2012 08:53:59 +0000 (01:53 -0700)] 
Add circuitmux.h, circuitmux_ewma.h includes now necessary in networkstatus.c

13 years agoRemove cell_ewma_t from or.h and from circuit_t/or_circuit_t; all that goes to the...
Andrea Shepard [Mon, 1 Oct 2012 08:53:24 +0000 (01:53 -0700)] 
Remove cell_ewma_t from or.h and from circuit_t/or_circuit_t; all that goes to the new circuitmux_ewma.c now

13 years agoAdd circuitmux.h, circuitmux_ewma.h includes now necessary in config.c
Andrea Shepard [Mon, 1 Oct 2012 08:52:39 +0000 (01:52 -0700)] 
Add circuitmux.h, circuitmux_ewma.h includes now necessary in config.c

13 years agoRemove EWMA code from relay.{c,h}; it goes to a circuitmux policy now
Andrea Shepard [Mon, 1 Oct 2012 08:51:31 +0000 (01:51 -0700)] 
Remove EWMA code from relay.{c,h}; it goes to a circuitmux policy now

13 years agoRemove ewma setup code in init_circuit_base()/or_circuit_new() of circuitlist.c;...
Andrea Shepard [Mon, 1 Oct 2012 08:50:05 +0000 (01:50 -0700)] 
Remove ewma setup code in init_circuit_base()/or_circuit_new() of circuitlist.c; it gets allocated when the circuit is attached to a circuitmux_t with that policy now

13 years agoAdd upcasts for circuitmux_policy_data_t and circuitmux_policy_circ_data_t to circuit...
Andrea Shepard [Mon, 1 Oct 2012 08:48:52 +0000 (01:48 -0700)] 
Add upcasts for circuitmux_policy_data_t and circuitmux_policy_circ_data_t to circuitmux.h

13 years agoAdd initial circuitmux_ewma.{c,h}
Andrea Shepard [Mon, 1 Oct 2012 04:41:25 +0000 (21:41 -0700)] 
Add initial circuitmux_ewma.{c,h}

13 years agoImplement circuitmux_assert_okay() and helper functions in circuitmux.c
Andrea Shepard [Mon, 1 Oct 2012 04:24:04 +0000 (21:24 -0700)] 
Implement circuitmux_assert_okay() and helper functions in circuitmux.c

13 years agoImplement circuitmux_get_first_active_circuit() in circuitmux.c; add pick_active_circ...
Andrea Shepard [Fri, 28 Sep 2012 23:56:46 +0000 (16:56 -0700)] 
Implement circuitmux_get_first_active_circuit() in circuitmux.c; add pick_active_circuit() to circuitmux_policy_t in circuitmux.h

13 years agoAdd comment for circuitmux_notify_xmit_cells() in circuitmux.c
Andrea Shepard [Thu, 27 Sep 2012 22:17:48 +0000 (15:17 -0700)] 
Add comment for circuitmux_notify_xmit_cells() in circuitmux.c

13 years agoAdd comment for circuitmux_move_active_circ_to_tail() in circuitmux.c
Andrea Shepard [Thu, 27 Sep 2012 22:09:37 +0000 (15:09 -0700)] 
Add comment for circuitmux_move_active_circ_to_tail() in circuitmux.c

13 years agoImplement circuitmux_notify_xmit_cells() and circuitmux_move_active_circ_to_tail...
Andrea Shepard [Thu, 27 Sep 2012 22:04:46 +0000 (15:04 -0700)] 
Implement circuitmux_notify_xmit_cells() and circuitmux_move_active_circ_to_tail() helper in circuitmux.c

13 years agoConsistently allow policy alloc_cmux_data() and alloc_circ_data() functions to return...
Andrea Shepard [Thu, 27 Sep 2012 20:51:04 +0000 (13:51 -0700)] 
Consistently allow policy alloc_cmux_data() and alloc_circ_data() functions to return NULL if the policy does not use this in circuitmux.c

13 years agoImplement circuitmux_clear_policy(), circuitmux_get_policy() and circuitmux_set_polic...
Andrea Shepard [Thu, 27 Sep 2012 20:42:47 +0000 (13:42 -0700)] 
Implement circuitmux_clear_policy(), circuitmux_get_policy() and circuitmux_set_policy() in circuitmux.c

13 years agoAdd cmux policy notify_set_n_cells() and notify_xmit_cells() callbacks
Andrea Shepard [Thu, 27 Sep 2012 19:20:05 +0000 (12:20 -0700)] 
Add cmux policy notify_set_n_cells() and notify_xmit_cells() callbacks

13 years agoAllocate and free circuit-specific policy data in the right places
Andrea Shepard [Thu, 27 Sep 2012 19:00:21 +0000 (12:00 -0700)] 
Allocate and free circuit-specific policy data in the right places

13 years agoImplement circuitmux policy basic notifications mechanism
Andrea Shepard [Thu, 27 Sep 2012 18:38:27 +0000 (11:38 -0700)] 
Implement circuitmux policy basic notifications mechanism

13 years agoEliminate linked list helper functions in relay.c which are no longer used
Andrea Shepard [Wed, 26 Sep 2012 22:05:10 +0000 (15:05 -0700)] 
Eliminate linked list helper functions in relay.c which are no longer used

13 years agoImplement circuitmux_make_circuit_inactive(), circuitmux_make_circuit_active() and...
Andrea Shepard [Wed, 26 Sep 2012 22:04:29 +0000 (15:04 -0700)] 
Implement circuitmux_make_circuit_inactive(), circuitmux_make_circuit_active() and linked list helper functions in circuitmux.c

13 years agoImplement circuitmux_detach_all_circuits() in circuitmux.c
Andrea Shepard [Wed, 26 Sep 2012 20:38:32 +0000 (13:38 -0700)] 
Implement circuitmux_detach_all_circuits() in circuitmux.c

13 years agoImplement circuitmux_is_circuit_active(), circuitmux_num_cells_for_circuit(), circuit...
Andrea Shepard [Wed, 26 Sep 2012 19:56:30 +0000 (12:56 -0700)] 
Implement circuitmux_is_circuit_active(), circuitmux_num_cells_for_circuit(), circuitmux_num_cells(), circuitmux_num_active_circuits() and circuitmux_num_circuits() in circuitmux.c

13 years agoImplement circuitmux_clear_num_cells() and circuitmux_set_num_cells() in circuitmux...
Andrea Shepard [Wed, 26 Sep 2012 19:23:58 +0000 (12:23 -0700)] 
Implement circuitmux_clear_num_cells() and circuitmux_set_num_cells() in circuitmux.c, remove unneeded circuitmux_add_to_num_cells() from circuitmux.h

13 years agoHandle n_mux/p_mux properly in circuitmux.c
Andrea Shepard [Wed, 26 Sep 2012 18:51:39 +0000 (11:51 -0700)] 
Handle n_mux/p_mux properly in circuitmux.c

13 years agoImplement circuitmux_detach_circuit() in circuitmux.c
Andrea Shepard [Wed, 26 Sep 2012 18:40:33 +0000 (11:40 -0700)] 
Implement circuitmux_detach_circuit() in circuitmux.c

13 years agoImplement circuitmux_attached_circuit_direction(), circuitmux_find_map_entry() and...
Andrea Shepard [Wed, 26 Sep 2012 17:54:08 +0000 (10:54 -0700)] 
Implement circuitmux_attached_circuit_direction(), circuitmux_find_map_entry() and circuitmux_is_circuit_attached() in circuitmux.c

13 years agoImplement circuitmux_attach_circuit() in circuitmux.c
Andrea Shepard [Wed, 26 Sep 2012 07:56:26 +0000 (00:56 -0700)] 
Implement circuitmux_attach_circuit() in circuitmux.c

13 years agoImplement circuitmux_alloc()/circuitmux_free() and chanid/circid->muxinfo hash table
Andrea Shepard [Mon, 24 Sep 2012 15:52:05 +0000 (08:52 -0700)] 
Implement circuitmux_alloc()/circuitmux_free() and chanid/circid->muxinfo hash table

13 years agoUse circuitmux_t in channels and when relaying cells
Andrea Shepard [Fri, 21 Sep 2012 21:46:22 +0000 (14:46 -0700)] 
Use circuitmux_t in channels and when relaying cells

13 years agoAdd circuitmux.c, circuitmux.h
Andrea Shepard [Fri, 21 Sep 2012 21:45:32 +0000 (14:45 -0700)] 
Add circuitmux.c, circuitmux.h

13 years agoAdd magic number for type-checking channel casts
Andrea Shepard [Tue, 9 Oct 2012 21:16:51 +0000 (14:16 -0700)] 
Add magic number for type-checking channel casts

13 years agoImprove comments on channel_write_*()
Andrea Shepard [Tue, 9 Oct 2012 18:38:15 +0000 (11:38 -0700)] 
Improve comments on channel_write_*()

13 years agoUse cell_queue_entry_new/free() functions in channel.c
Andrea Shepard [Tue, 9 Oct 2012 18:35:08 +0000 (11:35 -0700)] 
Use cell_queue_entry_new/free() functions in channel.c

13 years agoSet reason_for_closing when erroring out of channel_tls_connect()
Andrea Shepard [Tue, 9 Oct 2012 17:51:10 +0000 (10:51 -0700)] 
Set reason_for_closing when erroring out of channel_tls_connect()

13 years agoSplit channel_t into channel_t and channel_listener_t; get rid of that big union
Andrea Shepard [Tue, 9 Oct 2012 07:51:33 +0000 (00:51 -0700)] 
Split channel_t into channel_t and channel_listener_t; get rid of that big union

13 years agoMerge branch 'bug7014_squashed'
Nick Mathewson [Wed, 10 Oct 2012 03:50:09 +0000 (23:50 -0400)] 
Merge branch 'bug7014_squashed'

13 years agoDon't call fmt_addr() twice in a parameter list.
George Kadianakis [Fri, 5 Oct 2012 00:48:56 +0000 (20:48 -0400)] 
Don't call fmt_addr() twice in a parameter list.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.3'
Nick Mathewson [Wed, 10 Oct 2012 03:49:26 +0000 (23:49 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.3'

13 years agoMerge branch 'bug7014_023_squashed' into maint-0.2.3
Nick Mathewson [Wed, 10 Oct 2012 03:46:56 +0000 (23:46 -0400)] 
Merge branch 'bug7014_023_squashed' into maint-0.2.3

13 years agoDon't call fmt_addr() twice in a parameter list.
George Kadianakis [Fri, 5 Oct 2012 00:54:29 +0000 (20:54 -0400)] 
Don't call fmt_addr() twice in a parameter list.

13 years agoConform to existing Doxygen style
Andrea Shepard [Tue, 9 Oct 2012 04:30:07 +0000 (21:30 -0700)] 
Conform to existing Doxygen style

13 years agoRefactor channel_write_cell()/channel_write_packed_cell()/channel_write_var_cell...
Andrea Shepard [Tue, 9 Oct 2012 04:16:59 +0000 (21:16 -0700)] 
Refactor channel_write_cell()/channel_write_packed_cell()/channel_write_var_cell() to eliminate redundant code

13 years agoUse typedefs for function pointer return values and s/listener/listener_fn/ for disti...
Andrea Shepard [Tue, 9 Oct 2012 03:49:19 +0000 (20:49 -0700)] 
Use typedefs for function pointer return values and s/listener/listener_fn/ for distinctness

13 years agos/cell_queue/incoming_queue/g in channel.c for consistency with outgoing_queue
Andrea Shepard [Tue, 9 Oct 2012 03:20:28 +0000 (20:20 -0700)] 
s/cell_queue/incoming_queue/g in channel.c for consistency with outgoing_queue

13 years agoFix typo in comment
Andrea Shepard [Tue, 9 Oct 2012 03:15:09 +0000 (20:15 -0700)] 
Fix typo in comment

13 years agos/channel_request_close()/channel_mark_for_close()/g for consistency
Andrea Shepard [Tue, 9 Oct 2012 03:14:04 +0000 (20:14 -0700)] 
s/channel_request_close()/channel_mark_for_close()/g for consistency