]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Wed, 21 Aug 2013 17:42:39 +0000 (13:42 -0400)]
Merge branch 'ticket5526'
Nick Mathewson [Wed, 21 Aug 2013 17:41:15 +0000 (13:41 -0400)]
Tweak/cleanup 5526 fix.
Peter Retzlaff [Wed, 12 Jun 2013 08:51:39 +0000 (10:51 +0200)]
Print accounting information in heartbeat messages.
Implements ticket 5526.
Nick Mathewson [Sat, 17 Aug 2013 02:00:14 +0000 (22:00 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Sat, 17 Aug 2013 01:58:50 +0000 (21:58 -0400)]
Document the correct loglevel for the heartbeat message
Nick Mathewson [Thu, 15 Aug 2013 19:51:56 +0000 (15:51 -0400)]
Add a changes file for 9108.
Nick Mathewson [Thu, 15 Aug 2013 19:37:23 +0000 (15:37 -0400)]
Rename circuit_get_global_list to remove trailing _
Nick Mathewson [Thu, 15 Aug 2013 19:36:04 +0000 (15:36 -0400)]
Merge remote-tracking branch 'majek/bug9108'
Conflicts:
src/or/circuitlist.h
George Kadianakis [Thu, 15 Aug 2013 16:15:34 +0000 (19:15 +0300)]
Add changes file for #4773.
Nick Mathewson [Thu, 15 Aug 2013 16:10:10 +0000 (12:10 -0400)]
Fix a wide line in test_geoip_with_pt
Nick Mathewson [Thu, 15 Aug 2013 16:04:56 +0000 (12:04 -0400)]
Merge branch 'bug5040_4773_rebase_3'
George Kadianakis [Wed, 14 Aug 2013 15:00:08 +0000 (18:00 +0300)]
Test ExtORPort cookie initialization when file writing is broken.
George Kadianakis [Wed, 14 Aug 2013 14:18:50 +0000 (17:18 +0300)]
Test some fail conditions of ext_orport.c USERADDR/TRANSPORT parsing.
George Kadianakis [Mon, 5 Aug 2013 16:08:14 +0000 (19:08 +0300)]
Fix some #5040 bugs found by Nick's tests.
- Set conn->address when we receive a USERADDR command.
- Set conn->state to a sane value when we transition from Extended
ORPort to ORPort.
George Kadianakis [Wed, 14 Aug 2013 14:16:06 +0000 (17:16 +0300)]
Write some free_all functions to free the auth. cookies.
We started allocating space for them on the heap in the previous
commit.
Conflicts:
src/or/ext_orport.h
George Kadianakis [Tue, 4 Jun 2013 17:00:28 +0000 (20:00 +0300)]
Implement and use a generic auth. cookie initialization function.
Use the generic function for both the ControlPort cookie and the
ExtORPort cookie.
Also, place the global cookie variables in the heap so that we can
pass them around more easily as pointers.
Also also, fix the unit tests that broke by this change.
Conflicts:
src/or/config.h
src/or/ext_orport.c
George Kadianakis [Sat, 1 Jun 2013 15:38:06 +0000 (18:38 +0300)]
Warn if the Extended ORPort listens on a public IP address.
George Kadianakis [Wed, 14 Aug 2013 14:00:56 +0000 (17:00 +0300)]
Better documentation for ext_or_auth_correct_client_hash.
Nick Mathewson [Thu, 1 Aug 2013 21:29:10 +0000 (17:29 -0400)]
White-box tests for the succeeding case of ext_or_port handshake.
(Okay, white-box plus mocking enough other functions so they don't
crash.)
Nick Mathewson [Thu, 1 Aug 2013 20:24:20 +0000 (16:24 -0400)]
Test for initializing ext_or_auth_cookie file
Nick Mathewson [Thu, 1 Aug 2013 17:21:52 +0000 (13:21 -0400)]
Make 0x01==SAFECOOKIE a macro, not a magic number
Nick Mathewson [Thu, 1 Aug 2013 17:19:07 +0000 (13:19 -0400)]
Unit test for the ext_orport safe_cookie handshake
Nick Mathewson [Thu, 1 Aug 2013 17:15:58 +0000 (13:15 -0400)]
Expose/mock some functions to make ext_orport.c testing possible
Nick Mathewson [Thu, 1 Aug 2013 16:13:09 +0000 (12:13 -0400)]
More unit tests for handle_client_auth_nonce
Incidentally, this business here where I make crypto_rand mockable:
this is exactly the kind of thing that would make me never want to
include test-support stuff in production builds.
Nick Mathewson [Thu, 1 Aug 2013 15:44:52 +0000 (11:44 -0400)]
Unit test for basic ext_or_cookie authentication backend
Nick Mathewson [Wed, 31 Jul 2013 16:31:26 +0000 (12:31 -0400)]
Split the cryptographic part of handle_client_auth_nonce into new fn
George Kadianakis [Thu, 18 Jul 2013 16:58:42 +0000 (19:58 +0300)]
Fix some ext_orport.c DOCDOCs.
Nick Mathewson [Thu, 18 Jul 2013 20:23:48 +0000 (16:23 -0400)]
Tests for connection_write_ext_or_command.
Nick Mathewson [Thu, 18 Jul 2013 19:51:29 +0000 (15:51 -0400)]
Unit tests for ext_or_id_map.
Nick Mathewson [Wed, 17 Jul 2013 21:51:21 +0000 (17:51 -0400)]
Unit tests for fetch_ext_or_cmd
Nick Mathewson [Wed, 17 Jul 2013 21:31:27 +0000 (17:31 -0400)]
Split out buffers and socks tests into separate modules.
No other changes were made here. Keeping everything in
src/test/test.c was a legacy of back when we had all our unit tests in
one big file.
Doing this now because I'm adding an ext_or_command test.
Nick Mathewson [Tue, 16 Jul 2013 18:04:36 +0000 (14:04 -0400)]
Add a clientmap_entry_free().
Remove a nedless strdup/free pair.
Nick Mathewson [Tue, 16 Jul 2013 17:59:31 +0000 (13:59 -0400)]
Fix hash functions for transport_name in client entry
Nick Mathewson [Tue, 16 Jul 2013 17:59:09 +0000 (13:59 -0400)]
Use memdup_nulterm and check for NULs in handle_cmd_transport
Nick Mathewson [Tue, 16 Jul 2013 17:54:10 +0000 (13:54 -0400)]
Fix a variety of issues in 4773
memwipe some stack-allocated stuff
Add DOCDOC comments for state machines
Use memdup_nulterm as appropriate
Check for NULs in useraddr
Add a macro so that <= AUTH_MAX has a meaning.
Nick Mathewson [Tue, 16 Jul 2013 17:44:00 +0000 (13:44 -0400)]
Break up <??> differently, and explain why
Nick Mathewson [Tue, 16 Jul 2013 17:42:25 +0000 (13:42 -0400)]
Add guards to ext_orport.h, rename get_file to get_file_name
Nick Mathewson [Tue, 16 Jul 2013 17:14:44 +0000 (13:14 -0400)]
Use only uintptr_t for the value of transport_count
George Kadianakis [Thu, 27 Jun 2013 15:27:44 +0000 (18:27 +0300)]
If a single client connects with multiple transports, note all transports.
George Kadianakis [Thu, 27 Jun 2013 14:50:56 +0000 (17:50 +0300)]
Fix a number of issues with the #5040 code.
- Don't leak if a transport proxy sends us a TRANSPORT command more
than once.
- Don't use smartlist_string_isin() in geoip_get_transport_history().
(pointed out by Nick)
- Use the 'join' argument of smartlist_join_strings() instead of
trying to write the separator on our own.
(pointed out by Nick)
- Document 'ext_or_transport' a bit better.
(pointed out by Nick)
- Be a bit more consistent with the types of the values of 'transport_counts'.
(pointed out by Nick)
George Kadianakis [Sat, 29 Jun 2013 11:46:45 +0000 (14:46 +0300)]
Trivially change unittests to make them more readable.
Pluggable transport names are now in alphabetical order like they
appear in the bridge-ip-transports string.
George Kadianakis [Thu, 28 Feb 2013 13:23:24 +0000 (15:23 +0200)]
Make check-spaces happy.
George Kadianakis [Thu, 28 Feb 2013 13:18:32 +0000 (15:18 +0200)]
Add a changes file for #5040.
George Kadianakis [Mon, 25 Feb 2013 19:29:28 +0000 (21:29 +0200)]
Fix some unittests that broke when we added bridge-ip-transports.
George Kadianakis [Mon, 25 Feb 2013 19:28:10 +0000 (21:28 +0200)]
Add a unittest for the bridge-ip-transports extra-info line.
Nick Mathewson [Tue, 13 Aug 2013 14:14:14 +0000 (10:14 -0400)]
Correction in the 0.2.4.16-rc changelog
Nick Mathewson [Mon, 12 Aug 2013 13:47:30 +0000 (09:47 -0400)]
Merge remote-tracking branch 'karsten/geoip-manual-update-aug2013'
Nick Mathewson [Mon, 12 Aug 2013 13:47:17 +0000 (09:47 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Mon, 12 Aug 2013 13:46:54 +0000 (09:46 -0400)]
Merge remote-tracking branch 'asn/bug9363_take2'
Nick Mathewson [Mon, 12 Aug 2013 13:45:07 +0000 (09:45 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Mon, 12 Aug 2013 13:44:36 +0000 (09:44 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.2' into maint-0.2.3
Karsten Loesing [Mon, 12 Aug 2013 13:26:22 +0000 (15:26 +0200)]
Update to the August 2013 GeoIP database.
Karsten Loesing [Mon, 12 Aug 2013 13:22:14 +0000 (15:22 +0200)]
Add 2, update 1, and remove 3 manual A1 substitutions.
Roger Dingledine [Sat, 10 Aug 2013 22:33:37 +0000 (18:33 -0400)]
new location for tarballs; and you should edit Makefile too
Roger Dingledine [Sat, 10 Aug 2013 22:30:42 +0000 (18:30 -0400)]
forward-port the 0.2.4.16-rc changelog
Roger Dingledine [Sat, 10 Aug 2013 22:30:20 +0000 (18:30 -0400)]
Merge branch 'maint-0.2.4'
Nick Mathewson [Mon, 5 Aug 2013 15:40:33 +0000 (11:40 -0400)]
Fix an uninitialized-read when parsing v3 introduction requests.
Fortunately, later checks mean that uninitialized data can't get sent
to the network by this bug. Unfortunately, reading uninitialized heap
*can* (in some cases, with some allocators) cause a crash if you get
unlucky and go off the end of a page.
Found by asn. Bugfix on 0.2.4.1-alpha.
Nick Mathewson [Tue, 6 Aug 2013 16:00:16 +0000 (12:00 -0400)]
Update coverage instructions
George Kadianakis [Mon, 5 Aug 2013 17:54:54 +0000 (20:54 +0300)]
Also test that server transports get written to Tor's state.
George Kadianakis [Mon, 5 Aug 2013 13:30:21 +0000 (16:30 +0300)]
test_pt_configure_proxy(): verify the internals of the managed proxy.
Roger Dingledine [Mon, 5 Aug 2013 06:47:40 +0000 (02:47 -0400)]
forward-port 0.2.4.15-rc changelog
Roger Dingledine [Mon, 5 Aug 2013 06:42:27 +0000 (02:42 -0400)]
forward-port the reformat of changelog stanza
Arlo Breault [Sun, 4 Aug 2013 05:36:32 +0000 (22:36 -0700)]
Use size_t for length in replaycache_add_test_and_elapsed()
For consistency with the rest of buffer lengths in Tor.
See #8960
Andrea Shepard [Sat, 3 Aug 2013 01:49:57 +0000 (18:49 -0700)]
Fix tor_get_lines_from_handle() for make check-spaces
Nick Mathewson [Fri, 2 Aug 2013 17:44:22 +0000 (13:44 -0400)]
Unit test for smartlist_ints_eq
(This was the only wholly untested function in containers.c)
Nick Mathewson [Fri, 2 Aug 2013 15:04:30 +0000 (11:04 -0400)]
Try to make the win32 ersatz_socketpair pass.
Nick Mathewson [Fri, 2 Aug 2013 14:52:57 +0000 (10:52 -0400)]
Fixed "unused parameter cloexec" warnings on windows
Nick Mathewson [Fri, 2 Aug 2013 14:36:36 +0000 (10:36 -0400)]
Unit test for tor_{ersatz_,}socketpair.
This catches tor_accept as well.
Nick Mathewson [Fri, 2 Aug 2013 14:36:01 +0000 (10:36 -0400)]
Split the socketpair replacement code into its own function for testing
Nick Mathewson [Fri, 2 Aug 2013 14:05:17 +0000 (10:05 -0400)]
Simple unit test for tor_open_socket_with_extensions
Nick Mathewson [Fri, 2 Aug 2013 14:04:21 +0000 (10:04 -0400)]
Actually use the cloexec argument in the !defined(SOCK_CLOEXEC) case
Peter Retzlaff [Mon, 27 May 2013 19:16:43 +0000 (19:16 +0000)]
Prepare patch for ticket 5129 for merging.
- Preserve old eventdns code.
- Add function to close sockets cross-platform, without accounting.
- Add changes/ file.
Nick Mathewson [Thu, 1 Aug 2013 01:49:30 +0000 (21:49 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Thu, 1 Aug 2013 01:48:48 +0000 (21:48 -0400)]
Merge remote-tracking branch 'arma/bug9354' into maint-0.2.4
Nick Mathewson [Wed, 31 Jul 2013 18:19:29 +0000 (14:19 -0400)]
Fix compilation on Windows
(Bugfix on tests for #9288 fix; bug not in any released Tor)
Nick Mathewson [Wed, 31 Jul 2013 18:03:05 +0000 (14:03 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
George Kadianakis [Thu, 18 Jul 2013 13:01:49 +0000 (16:01 +0300)]
Fix invalid-read when a managed proxy configuration fails.
Nick Mathewson [Wed, 31 Jul 2013 17:51:15 +0000 (13:51 -0400)]
Merge branch 'bug9288_rebased'
Conflicts:
src/test/test_pt.c
Nick Mathewson [Wed, 31 Jul 2013 17:36:17 +0000 (13:36 -0400)]
Fix mixed declaration/statement warning
Nick Mathewson [Mon, 29 Jul 2013 15:37:39 +0000 (11:37 -0400)]
Update pt/configure_proxy until it stops segfaulting
George Kadianakis [Mon, 29 Jul 2013 14:01:10 +0000 (16:01 +0200)]
Modifications to transports.c for the unit tests to work.
Both 'managed_proxy_list' and 'unconfigured_proxies_n' are global
src/or/transports.c variables that are not initialized properly when
unit tests are run.
George Kadianakis [Mon, 29 Jul 2013 13:59:59 +0000 (15:59 +0200)]
Write unit tests for configure_proxy().
George Kadianakis [Mon, 29 Jul 2013 13:46:57 +0000 (15:46 +0200)]
Prepare some mock functions to test #9288.
George Kadianakis [Thu, 18 Jul 2013 13:01:49 +0000 (16:01 +0300)]
Fix invalid-read when a managed proxy configuration fails.
Roger Dingledine [Tue, 30 Jul 2013 16:05:39 +0000 (12:05 -0400)]
NumDirectoryGuards now tracks NumEntryGuards by default
Now a user who changes only NumEntryGuards will get the behavior she
expects. Fixes bug 9354; bugfix on 0.2.4.8-alpha.
Nick Mathewson [Fri, 26 Jul 2013 14:07:11 +0000 (16:07 +0200)]
Allow {,k,kilo,m,mega,g,giga,t,tera}bit{,s} in torrc
Patch from CharlieB for ticket #9214
Nick Mathewson [Fri, 26 Jul 2013 13:42:10 +0000 (15:42 +0200)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Fri, 26 Jul 2013 13:41:35 +0000 (15:41 +0200)]
Merge branch 'bug9337' into maint-0.2.4
Nick Mathewson [Fri, 26 Jul 2013 13:33:46 +0000 (15:33 +0200)]
Avoid assertion failure on unexepcted address family in DNS reply.
Fixes bug 9337; bugfix on 0.2.4.7-alpha.
Nick Mathewson [Tue, 23 Jul 2013 09:52:10 +0000 (11:52 +0200)]
Fix bug9309, and n_noncanonical count/continue code
When we moved channel_matches_target_addr_for_extend() into a separate
function, its sense was inverted from what one might expect, and we
didn't have a ! in one place where we should have.
Found by skruffy.
Roger Dingledine [Fri, 19 Jul 2013 03:35:20 +0000 (23:35 -0400)]
fix typo
Nick Mathewson [Tue, 23 Jul 2013 09:52:10 +0000 (11:52 +0200)]
Fix bug9309, and n_noncanonical count/continue code
When we moved channel_matches_target_addr_for_extend() into a separate
function, its sense was inverted from what one might expect, and we
didn't have a ! in one place where we should have.
Found by skruffy.
Nick Mathewson [Fri, 19 Jul 2013 16:05:38 +0000 (12:05 -0400)]
Whoops; check in test_circuitmux.c
Nick Mathewson [Fri, 19 Jul 2013 15:58:20 +0000 (11:58 -0400)]
Merge branch 'bug9296'
Nick Mathewson [Fri, 19 Jul 2013 14:17:00 +0000 (10:17 -0400)]
Regression test for destroy cell queue
This exercises the code that crashed and caused #9296.
Nick Mathewson [Fri, 19 Jul 2013 13:49:35 +0000 (09:49 -0400)]
Initialize destroy_cell_queue.
Likely fix for the crash bug of #9296, which was introduced through a
combination of #7912 and #8586. Bugfix not in any released Tor.
Roger Dingledine [Fri, 19 Jul 2013 03:35:20 +0000 (23:35 -0400)]
fix typo
Nick Mathewson [Fri, 19 Jul 2013 03:17:57 +0000 (23:17 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Fri, 19 Jul 2013 03:17:05 +0000 (23:17 -0400)]
Merge remote-tracking branch 'public/bug9295_023' into maint-0.2.4
Nick Mathewson [Fri, 19 Jul 2013 03:15:46 +0000 (23:15 -0400)]
Fix for bug 9295: Don't crash when running --hash-password.
Fix on 0.2.4.15-rc; I'm doing this branch against 0.2.3, since we're
considering #9122 for an 0.2.3 backport, and if we do, we should merge
this too.