]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Mon, 17 Sep 2018 13:10:18 +0000 (09:10 -0400)]
Start a changelog for 0.3.5.1-alpha
Nick Mathewson [Mon, 17 Sep 2018 02:08:02 +0000 (22:08 -0400)]
Add tortls.h includes to expose critical macro. Fix #27734.
Nick Mathewson [Sun, 16 Sep 2018 18:34:31 +0000 (14:34 -0400)]
Don't try to link C from rust doctests for nss detection
This is really annoying, since we can't use cfg(test) for doctests.
Nick Mathewson [Sun, 16 Sep 2018 17:46:12 +0000 (13:46 -0400)]
Merge branch 'bug25573-034-typefix'
Nick Mathewson [Sun, 16 Sep 2018 17:45:43 +0000 (13:45 -0400)]
Fix duplicate declaration of pathbias_count_valid_cells.
Nick Mathewson [Thu, 23 Aug 2018 15:30:18 +0000 (11:30 -0400)]
When Tor is compiled with NSS, don't claim support for LinkAuth=1
Closes ticket 27288
Nick Mathewson [Fri, 14 Sep 2018 19:02:11 +0000 (15:02 -0400)]
Add a missing function for windows
Nick Mathewson [Fri, 14 Sep 2018 17:09:10 +0000 (13:09 -0400)]
Explicitly ignore BIO_set_close() return val to fix #27711
Nick Mathewson [Fri, 14 Sep 2018 16:56:31 +0000 (12:56 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Fri, 14 Sep 2018 16:56:30 +0000 (12:56 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 14 Sep 2018 16:56:30 +0000 (12:56 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
David Goulet [Fri, 14 Sep 2018 14:56:34 +0000 (10:56 -0400)]
hs-v3: Don't BUG() on directory permission check failure
In hs_config.c, we do validate the permission of the hidden service directory
but we do not try to create it. So, in the event that the directory doesn't
exists, we end up in the loading key code path which checks for the
permission and possibly creates the directory. On failure, don't BUG() since
there is a perfectly valid use case for that function to fail.
Fixes #27335
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Fri, 14 Sep 2018 16:54:13 +0000 (12:54 -0400)]
Merge remote-tracking branch 'dgoulet/ticket27040_035_01'
Nick Mathewson [Fri, 14 Sep 2018 16:45:30 +0000 (12:45 -0400)]
Merge branch 'nss_countbytes_squashed'
Nick Mathewson [Thu, 13 Sep 2018 14:53:22 +0000 (10:53 -0400)]
Allow malloc includes in tls library
Nick Mathewson [Thu, 13 Sep 2018 14:18:34 +0000 (10:18 -0400)]
Add support for lower-level byte counting with NSS
This is harder than with OpenSSL, since OpenSSL counts the bytes on
its own and NSS doesn't. To fix this, we need to define a new
PRFileDesc layer that has its own byte-counting support.
Closes ticket 27289.
David Goulet [Fri, 14 Sep 2018 16:04:01 +0000 (12:04 -0400)]
hs-v2: Demote log warning to info when we don't have a consensus
Fixes #27040
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Fri, 14 Sep 2018 14:48:01 +0000 (10:48 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 14 Sep 2018 14:48:01 +0000 (10:48 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Fri, 14 Sep 2018 14:34:45 +0000 (10:34 -0400)]
If options_act() fails, restore the previous value of global_options
Before 0.3.3.1-alpha, we would exit() in this case immediately. But
now that we leave tor_main() more conventionally, we need to make
sure we restore things so as not to cause a double free.
Fixes bug 27708; bugfix on 0.3.3.1-alpha.
Nick Mathewson [Fri, 14 Sep 2018 14:24:46 +0000 (10:24 -0400)]
Merge branch 'nss_27664'
Nick Mathewson [Fri, 14 Sep 2018 14:22:38 +0000 (10:22 -0400)]
Merge branch 'nss_27451'
Nick Mathewson [Fri, 14 Sep 2018 13:32:53 +0000 (09:32 -0400)]
Tweak changes file: call this a major feature.
Nick Mathewson [Fri, 14 Sep 2018 13:32:39 +0000 (09:32 -0400)]
Tweak message; only log it on a relay.
Nick Mathewson [Fri, 14 Sep 2018 13:27:03 +0000 (09:27 -0400)]
Merge remote-tracking branch 'neel/b21530'
Nick Mathewson [Fri, 14 Sep 2018 13:25:34 +0000 (09:25 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 14 Sep 2018 13:25:34 +0000 (09:25 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Fri, 14 Sep 2018 13:25:31 +0000 (09:25 -0400)]
Merge remote-tracking branch 'onionk/rust-protokeyword1-035'
Nick Mathewson [Fri, 14 Sep 2018 13:22:23 +0000 (09:22 -0400)]
Merge remote-tracking branch 'tor-github/pr/329'
Nick Mathewson [Fri, 14 Sep 2018 13:14:12 +0000 (09:14 -0400)]
Merge branch 'ticket27247'
Nick Mathewson [Fri, 14 Sep 2018 11:11:37 +0000 (07:11 -0400)]
Re-order includes to expose intptr_t to tor_api_internal.h
cypherpunks [Fri, 14 Sep 2018 02:33:59 +0000 (02:33 +0000)]
Merge branch 'rust-protokeyword1-034' into rust-protokeyword1-035
cypherpunks [Fri, 14 Sep 2018 02:26:31 +0000 (02:26 +0000)]
Merge branch 'rust-protokeyword1' into rust-protokeyword1-034
Neel Chauhan [Fri, 14 Sep 2018 01:50:06 +0000 (21:50 -0400)]
Add log message for Tor being non-exit by default
Nick Mathewson [Thu, 13 Sep 2018 21:54:26 +0000 (17:54 -0400)]
Include torint.h in socketpair.c for intptr_t definition.
Nick Mathewson [Thu, 13 Sep 2018 21:49:36 +0000 (17:49 -0400)]
Fix a 32-bit off_t/size_t warning in crypto_rsa.c
Bug not in any released Tor.
Nick Mathewson [Thu, 13 Sep 2018 21:48:33 +0000 (17:48 -0400)]
Fix a shadowed-global warning in geoip.c
Bugfix on
5ab2110eb6b4ae9082430081cb2800018cf0dcd6 ; bug not in any
released Tor.
Nick Mathewson [Thu, 13 Sep 2018 20:43:06 +0000 (16:43 -0400)]
Merge branch 'bug27224_take2_squashed'
rl1987 [Fri, 24 Aug 2018 15:26:27 +0000 (18:26 +0300)]
Avoid calling node_get_all_orports() from node_is_a_configured_bridge()
All node_get_all_orports() does is allocate and return a smartlist
with at most two tor_addr_port_t members that match ORPort's of
node configuration. This is harmful for memory efficiency, as it
allocates the same stuff every time it is called. However,
node_is_a_configured_bridge() does not need to call it, as it
already has all the information to check if there is configured
bridge for a given node.
The new code is arranged in a way that hopefully makes each succeeding
linear search through bridge_list less likely.
Nick Mathewson [Thu, 13 Sep 2018 20:30:11 +0000 (16:30 -0400)]
Add a test case with a matching ip but mismatched identity.
rl1987 [Thu, 13 Sep 2018 20:21:44 +0000 (16:21 -0400)]
Unit tests for ticket 27224.
Since this is a refactoring ticket, these tests should pass before
and after the changes are made.
Nick Mathewson [Thu, 13 Sep 2018 18:53:20 +0000 (14:53 -0400)]
Explain PIE/PIC rationale for 23846.
Nick Mathewson [Thu, 13 Sep 2018 18:51:21 +0000 (14:51 -0400)]
Merge branch 'ticket23846'
Nick Mathewson [Thu, 13 Sep 2018 17:53:42 +0000 (13:53 -0400)]
Merge branch 'bug26470_032'
Mike Perry [Thu, 13 Sep 2018 01:25:57 +0000 (01:25 +0000)]
Ticket #27678: Changes file.
Mike Perry [Thu, 13 Sep 2018 01:23:17 +0000 (01:23 +0000)]
Ticket #27678: Emit CIRC_BW events immediately for dropped cells.
We determine that a cell was dropped by inspecting CIRC_BW fields. If we did
not update the delivered or overhead fields after processing the cell, the
cell was dropped/not processed.
Also emit CIRC_BW events for cases where we decide to close the circuit in
this function, so vanguards can print messages about dropped cells in those
cases, too.
Mike Perry [Thu, 13 Sep 2018 01:22:02 +0000 (01:22 +0000)]
Control port call to emit a CIRC_BW event for a single circuit.
This commit only moves code. No functionality has been changed.
Nick Mathewson [Thu, 13 Sep 2018 17:37:29 +0000 (13:37 -0400)]
Changes file for 27186
Nick Mathewson [Thu, 13 Sep 2018 17:35:59 +0000 (13:35 -0400)]
Merge remote-tracking branch 'UntoSten/inform-about-conf-includes'
Nick Mathewson [Thu, 13 Sep 2018 17:30:53 +0000 (13:30 -0400)]
Merge remote-tracking branch 'onionk/strcmpstart1'
Nick Mathewson [Thu, 13 Sep 2018 17:09:57 +0000 (13:09 -0400)]
Merge branches 'bug27684' and 'bug27685'
Nick Mathewson [Thu, 13 Sep 2018 16:47:42 +0000 (12:47 -0400)]
Fix a memory leak in tortls/openssl/try_to_extract_certs_from_tls
Since this is an "intrusive" test, it only shows up for openssl <1.1
This is a bugfix on 0.3.5.x; bug not in any released Tor.
Nick Mathewson [Thu, 13 Sep 2018 16:43:37 +0000 (12:43 -0400)]
Fix a memory leak in tortls/openssl/context_new test.
Bugfix on 0.3.5.x; bugfix not on any released Tor.
cypherpunks [Thu, 13 Sep 2018 16:33:58 +0000 (16:33 +0000)]
rust/protover: validate unknown protocol names use only allowed characters
Nick Mathewson [Thu, 13 Sep 2018 15:48:13 +0000 (11:48 -0400)]
Merge branch 'ticket27547_035_01_squashed'
David Goulet [Wed, 12 Sep 2018 17:23:06 +0000 (13:23 -0400)]
hs-v3: Add changes file and man page for client authorization
Closes #27547
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Thu, 13 Sep 2018 15:46:04 +0000 (11:46 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Thu, 13 Sep 2018 15:46:04 +0000 (11:46 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 13 Sep 2018 15:46:04 +0000 (11:46 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 13 Sep 2018 15:46:04 +0000 (11:46 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Thu, 13 Sep 2018 15:45:58 +0000 (11:45 -0400)]
Merge branch 'bug27658_029' into maint-0.2.9
Nick Mathewson [Thu, 13 Sep 2018 12:58:28 +0000 (08:58 -0400)]
Run crypto_prefork() before start_daemon().
Without this, RunAsDaemon breaks NSS.
Fixes bug 27664; bug not in any released Tor.
David Goulet [Wed, 12 Sep 2018 21:51:52 +0000 (17:51 -0400)]
conn: Fix memleaks in retry_all_listeners
Fixes #27670
Signed-off-by: David Goulet <dgoulet@torproject.org>
Nick Mathewson [Wed, 12 Sep 2018 21:42:24 +0000 (17:42 -0400)]
Report UNIX connection addresses that we opened correctly.
This is an aside on ticket27670.
Nick Mathewson [Wed, 12 Sep 2018 21:25:40 +0000 (17:25 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Wed, 12 Sep 2018 21:24:41 +0000 (17:24 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Wed, 12 Sep 2018 20:13:23 +0000 (16:13 -0400)]
Merge remote-tracking branch 'tor-github/pr/280'
Nick Mathewson [Wed, 12 Sep 2018 15:32:15 +0000 (11:32 -0400)]
Use tor_tls_release_socket() to avoid double-closed sockets on NSS
Closes ticket 27451; bug not in any released Tor.
Nick Mathewson [Wed, 12 Sep 2018 15:02:59 +0000 (11:02 -0400)]
Add a tor_tls_release_socket() function.
This function tells the underlying TLS object that it shouldn't
close the fd on exit. Mostly, we hope not to have to use it, since
the NSS implementation is kludgey, but it should allow us to fix
cypherpunks [Wed, 12 Sep 2018 14:22:31 +0000 (14:22 +0000)]
fixup! changes file
Nick Mathewson [Wed, 12 Sep 2018 14:18:11 +0000 (10:18 -0400)]
Merge remote-tracking branch 'dgoulet/ticket27545_035_01'
cypherpunks [Tue, 11 Sep 2018 22:21:09 +0000 (22:21 +0000)]
nodelist: fix docs for networkstatus_read_cached_consensus_impl
Fix on
c12d2cb2dcfe52aadf528a70433b468327472eaf .
Nick Mathewson [Wed, 12 Sep 2018 14:10:29 +0000 (10:10 -0400)]
Add an --enable-pic option for people who hack Tor into libraries
Closes ticket 23846
cypherpunks [Tue, 11 Sep 2018 00:41:32 +0000 (00:41 +0000)]
nodelist: use strcmpstart() instead of strncmp()
in rend_parse_v2_service_descriptor.
Fix on
c58675ca728f12b42f65e5b8964ae695c2e0ec2d
Nick Mathewson [Wed, 12 Sep 2018 13:38:52 +0000 (09:38 -0400)]
Merge remote-tracking branch 'tor-github/pr/298'
Nick Mathewson [Wed, 12 Sep 2018 13:06:35 +0000 (09:06 -0400)]
Merge branch 'pr278_squashed'
rl1987 [Sun, 19 Aug 2018 18:33:18 +0000 (21:33 +0300)]
Actually, just disable test_rebind.sh on Appveyor
rl1987 [Sat, 18 Aug 2018 13:29:46 +0000 (16:29 +0300)]
Disable test_rebind.sh on Windows
rl1987 [Sun, 5 Aug 2018 13:27:49 +0000 (16:27 +0300)]
Update/fix CI build
Update integration test to Python 3
rl1987 [Sat, 21 Jul 2018 09:13:58 +0000 (12:13 +0300)]
Pick random ports in test_rebind.py
rl1987 [Tue, 17 Jul 2018 13:04:06 +0000 (13:04 +0000)]
Always include socket rebinding code
rl1987 [Tue, 22 May 2018 15:36:06 +0000 (17:36 +0200)]
Tweak test_rebind.py for future-proofness
rl1987 [Thu, 17 May 2018 14:01:52 +0000 (16:01 +0200)]
Integration test for socket rebinding
squash! Integration test for socket rebinding
rl1987 [Wed, 16 May 2018 15:23:42 +0000 (17:23 +0200)]
Avoid mentioning ticket number in comments
rl1987 [Wed, 16 May 2018 15:16:46 +0000 (17:16 +0200)]
Comments/explanation for #17873
rl1987 [Mon, 7 May 2018 12:26:27 +0000 (14:26 +0200)]
Minor code cleanups
rl1987 [Thu, 26 Apr 2018 10:21:43 +0000 (12:21 +0200)]
Add changes file
rl1987 [Sun, 20 May 2018 17:10:02 +0000 (19:10 +0200)]
Log a notice *after* creating connection
rl1987 [Thu, 26 Apr 2018 09:25:16 +0000 (11:25 +0200)]
Log a notice when changing to/from wildcard IP address
rl1987 [Thu, 26 Apr 2018 09:18:13 +0000 (11:18 +0200)]
Always close old listeners in retry_all_listeners
rl1987 [Wed, 25 Apr 2018 15:27:06 +0000 (17:27 +0200)]
Refrain from compiling socket rebinding code on system that don't need it
rl1987 [Wed, 25 Apr 2018 14:17:11 +0000 (16:17 +0200)]
Try rebinding new listener after closing old one if first bind failed with EADDRINUSE
Nick Mathewson [Wed, 12 Sep 2018 12:57:18 +0000 (08:57 -0400)]
Check waitpid return value and exit status in tinytest.c
It's possible for a unit test to report success via its pipe, but to
fail as it tries to clean up and exit. Notably, this happens on a
leak sanitizer failure.
Fixes bug 27658; bugfix on 0.2.2.4-alpha when tinytest was
introduced.
Nick Mathewson [Wed, 12 Sep 2018 12:17:45 +0000 (08:17 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Wed, 12 Sep 2018 12:17:42 +0000 (08:17 -0400)]
Merge remote-tracking branch 'teor/bug27464-034' into maint-0.3.4
Nick Mathewson [Wed, 12 Sep 2018 12:12:19 +0000 (08:12 -0400)]
Merge remote-tracking branch 'tor-github/pr/318'
cypherpunks [Wed, 12 Sep 2018 02:14:29 +0000 (02:14 +0000)]
rust/protover: fix check for overlapping ranges
Closes ticket 27649. Bugfix on
e6625113c98c281b0a649598d7daa347c28915e9 .
cypherpunks [Sat, 18 Aug 2018 20:05:19 +0000 (20:05 +0000)]
rust/protover: remove version zero from tests
This isn't legal according to dir-spec.txt.
We can write separate tests for it if the spec
is changed to make it legal.
cypherpunks [Sat, 18 Aug 2018 16:54:09 +0000 (16:54 +0000)]
test/protover: remove version zero from tests
This isn't legal according to dir-spec.txt.
We can write separate tests for it if the spec
is changed to make it legal.
Nick Mathewson [Tue, 11 Sep 2018 19:55:30 +0000 (15:55 -0400)]
Merge remote-tracking branch 'tor-github/pr/315'