]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Sun, 25 Aug 2013 15:29:03 +0000 (11:29 -0400)]
Basic unit test for EVENT_TRANSPORT_LAUNCHED
Nick Mathewson [Sun, 25 Aug 2013 14:38:20 +0000 (10:38 -0400)]
Widen event_mask_t to 64 bits
George Kadianakis [Sat, 26 Jan 2013 11:25:09 +0000 (13:25 +0200)]
Add a changes file for #5609.
George Kadianakis [Wed, 23 Jan 2013 10:41:19 +0000 (12:41 +0200)]
Implement the TRANSPORT_LAUNCHED control port event.
Nick Mathewson [Sun, 25 Aug 2013 04:34:23 +0000 (00:34 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Sun, 25 Aug 2013 04:33:10 +0000 (00:33 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
(Using "ours" strategy to avoid taking 9546 fix in 0.2.3; we just
merged our own into 0.2.4)
Nick Mathewson [Sun, 25 Aug 2013 04:32:27 +0000 (00:32 -0400)]
Merge remote-tracking branch 'public/bug9546_023_v2' into maint-0.2.3
Nick Mathewson [Sun, 25 Aug 2013 04:31:51 +0000 (00:31 -0400)]
Merge remote-tracking branch 'public/bug9546_v2' into maint-0.2.4
Nick Mathewson [Sun, 25 Aug 2013 04:29:49 +0000 (00:29 -0400)]
Merge remote-tracking branch 'public/bug9366' into maint-0.2.4
Nick Mathewson [Sun, 25 Aug 2013 04:29:06 +0000 (00:29 -0400)]
Merge remote-tracking branch 'public/bug9543' into maint-0.2.4
Roger Dingledine [Sat, 24 Aug 2013 01:43:57 +0000 (21:43 -0400)]
fix typos
Nick Mathewson [Fri, 23 Aug 2013 00:47:23 +0000 (20:47 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Fri, 23 Aug 2013 00:47:10 +0000 (20:47 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Fri, 23 Aug 2013 00:46:40 +0000 (20:46 -0400)]
Merge remote-tracking branch 'public/bug9564' into maint-0.2.3
Nick Mathewson [Thu, 22 Aug 2013 14:16:07 +0000 (10:16 -0400)]
Merge branch 'bug6153_squashed'
Nick Mathewson [Wed, 21 Aug 2013 16:37:35 +0000 (12:37 -0400)]
Hide the contents of the circuit_build_times structure.
There were only two functions outside of circuitstats that actually
wanted to know what was inside this. Making the structure itself
hidden should help isolation and prevent us from spaghettifying the
thing more.
Nick Mathewson [Wed, 21 Aug 2013 16:17:20 +0000 (12:17 -0400)]
Documentation for new cbt accessors
Nick Mathewson [Wed, 21 Aug 2013 16:12:21 +0000 (12:12 -0400)]
changes file for 6153
Nick Mathewson [Wed, 21 Aug 2013 16:10:05 +0000 (12:10 -0400)]
Separate mutable/const accessors for circuit_build_times
(These have proved invaluable for other global accessors.)
Nick Mathewson [Wed, 21 Aug 2013 15:59:19 +0000 (11:59 -0400)]
Rename get_circuit_nbuild_* to end with _ms
vagrant [Wed, 21 Aug 2013 15:44:28 +0000 (11:44 -0400)]
Make circ_times static and add accessor functions.
Change the global circ_times to a static variable and use
accessor functions throughout the code, instead of
accessing it directly.
Nick Mathewson [Thu, 22 Aug 2013 14:00:37 +0000 (10:00 -0400)]
Replace return with continue in update_consensus_networkstatus_downloads
Fix for bug 9564; bugfix on 0.2.3.14-alpha.
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 [Wed, 21 Aug 2013 15:35:00 +0000 (11:35 -0400)]
Add a 30-day maximum on user-supplied MaxCircuitDirtiness
Fix for bug 9543.
Nick Mathewson [Wed, 21 Aug 2013 14:10:35 +0000 (10:10 -0400)]
Make bridges send AUTH_CHALLENGE cells
The spec requires them to do so, and not doing so creates a situation
where they can't send-test because relays won't extend to them because
of the other part of bug 9546.
Fixes bug 9546; bugfix on 0.2.3.6-alpha.
Nick Mathewson [Wed, 21 Aug 2013 14:10:35 +0000 (10:10 -0400)]
Make bridges send AUTH_CHALLENGE cells
The spec requires them to do so, and not doing so creates a situation
where they can't send-test because relays won't extend to them because
of the other part of bug 9546.
Fixes bug 9546; bugfix on 0.2.3.6-alpha.
Nick Mathewson [Tue, 20 Aug 2013 18:52:56 +0000 (14:52 -0400)]
Send NETINFO on receiving a NETINFO if we have not yet sent one.
(Backport to Tor 0.2.3)
Relays previously, when initiating a connection, would only send a
NETINFO after sending an AUTHENTICATE. But bridges, when receiving a
connection, would never send AUTH_CHALLENGE. So relays wouldn't
AUTHENTICATE, and wouldn't NETINFO, and then bridges would be
surprised to be receiving CREATE cells on a non-open circuit.
Fixes bug 9546.
Nick Mathewson [Tue, 20 Aug 2013 18:52:56 +0000 (14:52 -0400)]
Send NETINFO on receiving a NETINFO if we have not yet sent one.
Relays previously, when initiating a connection, would only send a
NETINFO after sending an AUTHENTICATE. But bridges, when receiving a
connection, would never send AUTH_CHALLENGE. So relays wouldn't
AUTHENTICATE, and wouldn't NETINFO, and then bridges would be
surprised to be receiving CREATE cells on a non-open circuit.
Fixes bug 9546.
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.
Nick Mathewson [Mon, 5 Aug 2013 16:14:48 +0000 (12:14 -0400)]
Don't allow all ORPort values to be NoAdvertise
Fix for bug #9366
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.