]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Wed, 18 Jul 2018 17:20:23 +0000 (13:20 -0400)]
Merge remote-tracking branch 'teor/ticket26852'
Nick Mathewson [Wed, 18 Jul 2018 13:38:04 +0000 (09:38 -0400)]
Merge branch 'ulimit_when_crashing'
teor [Wed, 18 Jul 2018 02:06:48 +0000 (12:06 +1000)]
doc: Document Appveyor and Jenkins in doc/HACKING/HelpfulTools.md
Closes 26852.
Nick Mathewson [Tue, 17 Jul 2018 20:19:32 +0000 (16:19 -0400)]
Merge branch 'bug25552_ope_squashed'
George Kadianakis [Mon, 16 Jul 2018 12:28:11 +0000 (15:28 +0300)]
Improve a log message.
George Kadianakis [Tue, 17 Jul 2018 15:00:18 +0000 (11:00 -0400)]
Fix time source bug in sr_state_get_start_time_of_current_protocol_run().
The following bug was causing many issues for this branch in chutney:
In sr_state_get_start_time_of_current_protocol_run() we were using the
consensus valid-after to calculate beginning_of_current_round, but we were
using time(NULL) to calculate the current_round slot. This was causing time
sync issues when the consensus valid-after and time(NULL) were disagreeing on
what the current round is. Our fix is to use the consensus valid-after in both
places.
This also means that we are not using 'now' (aka time(NULL)) anymore in that
function, and hence we can remove that argument from the function (and its
callers). I'll do this in the next commit so that we keep things separated.
Furthermore, we fix a unittest that broke.
George Kadianakis [Thu, 12 Jul 2018 13:51:31 +0000 (16:51 +0300)]
Set revision counter before uploading, not during building.
We only build a descriptor once, and we just re-encode it (and change its intro
points if needed) before uploading.
Hence we should set the revision counter before uploading, not during building.
George Kadianakis [Tue, 10 Jul 2018 17:10:22 +0000 (20:10 +0300)]
Make the OPE scheme return CRYPTO_OPE_ERROR on error.
Instead of UINT64_MAX.
George Kadianakis [Tue, 17 Jul 2018 16:03:18 +0000 (12:03 -0400)]
Compute OPE cipher structure only when needed.
The OPE cipher is tied to the current blinded key which is tied to the current
time period. Hence create the OPE cipher structure when we create a new
descriptor (and build its blinded key).
George Kadianakis [Thu, 14 Jun 2018 12:53:31 +0000 (15:53 +0300)]
Add changes file.
George Kadianakis [Thu, 14 Jun 2018 12:51:00 +0000 (15:51 +0300)]
Remove now useless rev counter state file code.
We are not using the state file for rev counters anymore, we just generate them
on the fly!
George Kadianakis [Thu, 14 Jun 2018 12:38:46 +0000 (15:38 +0300)]
Fix up some unittests by being more careful with the local time.
Now that the rev counter depends on the local time, we need to be more careful
in the unittests. Some unittests were breaking because they were using
consensus values from 1985, but they were not updating the local time
appropriately. That was causing the OPE module to complain that it was trying
to encrypt insanely large values.
George Kadianakis [Thu, 14 Jun 2018 12:38:14 +0000 (15:38 +0300)]
Use approx_time() instead of time(NULL) in some HS functions.
These were breaking our unittests.
George Kadianakis [Thu, 14 Jun 2018 12:35:59 +0000 (15:35 +0300)]
Compute the description revision counter using the OPE scheme.
To do so for a given descriptor, we use the "seconds since the SR protocol run"
started, for the SRV that is relevant to this descriptor. This is guaranteed to
be a positive value (since we need an SRV to be able to build a descriptor),
and it's also guaranteed to be a small value (since SRVs stop being listed on a
consensus after 48 hours).
We cannot use the "seconds since the time period started", because for the next
descriptor we use the next time period, so the timestamp would end up negative.
See [SERVICEUPLOAD] from rend-spec-v3.txt for more details.
To do so, we have to introduce a new `is_current` argument to a bunch of
functions, because to use "seconds since the SR protocol run" we need to know
if we are building the current or the next descriptor, since we use a different
SRV for each descriptor.
George Kadianakis [Thu, 14 Jun 2018 12:25:43 +0000 (15:25 +0300)]
Introduce useful SRV funcs (start time of prev protocol run)
George Kadianakis [Thu, 14 Jun 2018 12:23:09 +0000 (15:23 +0300)]
Increase OPE_INPUT_MAX.
Nick Mathewson [Thu, 10 May 2018 12:46:36 +0000 (08:46 -0400)]
Implementation for a simple order-preserving encryption scheme.
This is meant for use when encrypting the current time within the
period in order to get a monotonically increasing revision counter
without actually revealing our view of the time.
This scheme is far from the most state-of-the-art: don't use it for
anything else without careful analysis by somebody much smarter than
I am.
See ticket #25552 for some rationale for this logic.
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Tue, 17 Jul 2018 18:56:52 +0000 (14:56 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
teor [Tue, 17 Jul 2018 01:24:02 +0000 (11:24 +1000)]
SKIP test_keygen.sh on Windows until the underlying issue is resolved
Skip an unreliable key generation test on Windows, until the underlying
issue in bug 26076 is resolved.
Fixes bug 26830; bugfix on 0.2.7.3-rc.
Nick Mathewson [Tue, 17 Jul 2018 18:47:56 +0000 (14:47 -0400)]
Merge remote-tracking branch 'rl1987/bug26789'
Nick Mathewson [Tue, 17 Jul 2018 18:46:16 +0000 (14:46 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Tue, 17 Jul 2018 18:33:31 +0000 (14:33 -0400)]
Merge remote-tracking branch 'ahf-github/bugs/26437'
rl1987 [Mon, 16 Jul 2018 10:49:40 +0000 (10:49 +0000)]
Fix build to work with --disable-unittests again
David Goulet [Mon, 16 Jul 2018 18:44:45 +0000 (14:44 -0400)]
Merge remote-tracking branch 'pastly/issue26703'
Nick Mathewson [Mon, 16 Jul 2018 11:53:43 +0000 (07:53 -0400)]
Try putting ulimit -c 0 in test_bt.sh to see if it fixes bug 26787
Nick Mathewson [Mon, 16 Jul 2018 11:51:11 +0000 (07:51 -0400)]
Avoid a use-after-null-check in proto_socks.c
Coverity rightly complains that early in the function we're checking
whether username is NULL, and later we're passing it unconditionally
to strlen().
Fixes CID
1437967 . Bug not in any released Tor.
rl1987 [Mon, 16 Jul 2018 10:49:40 +0000 (10:49 +0000)]
Fix build to work with --disable-unittests again
Nick Mathewson [Sun, 15 Jul 2018 21:07:20 +0000 (17:07 -0400)]
Merge branch 'socks_trunnel4_squashed_merged'
Nick Mathewson [Fri, 13 Jul 2018 22:30:17 +0000 (18:30 -0400)]
Merge remote-tracking branch 'tor-github/pr/179'
Roger Dingledine [Fri, 13 Jul 2018 20:58:46 +0000 (16:58 -0400)]
Faravahar hasn't been voting on versions for a while now
Taylor Yu [Fri, 13 Jul 2018 17:34:23 +0000 (12:34 -0500)]
Add changes file for ticket 26492
Alexander Færøy [Thu, 21 Jun 2018 02:32:42 +0000 (04:32 +0200)]
Fix forking tests on Windows when there is a space in the path.
See: https://bugs.torproject.org/26437
Roger Dingledine [Fri, 13 Jul 2018 01:52:54 +0000 (21:52 -0400)]
forward-port the changelog stanzas to 0.3.5 too
Nick Mathewson [Thu, 12 Jul 2018 18:32:16 +0000 (14:32 -0400)]
Merge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 12 Jul 2018 18:32:16 +0000 (14:32 -0400)]
Merge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Thu, 12 Jul 2018 18:32:16 +0000 (14:32 -0400)]
Merge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 12 Jul 2018 18:32:16 +0000 (14:32 -0400)]
Merge branch 'maint-0.3.4'
Nick Mathewson [Thu, 12 Jul 2018 18:20:56 +0000 (14:20 -0400)]
SOCKS: Always free username/password before setting them.
This fixes a memory leak found by fuzzing.
Nick Mathewson [Thu, 12 Jul 2018 18:20:46 +0000 (14:20 -0400)]
Add fuzzing wrapper for fetch_from_buf_socks()
Roger Dingledine [Thu, 12 Jul 2018 18:12:13 +0000 (14:12 -0400)]
put new bridge auth Serge into place
The "Bifroest" bridge authority has been retired; the new bridge authority
is "Serge", and it is operated by George from the TorBSD project.
Closes ticket 26771.
Nick Mathewson [Thu, 12 Jul 2018 15:47:25 +0000 (11:47 -0400)]
Merge branch 'socks_trunnel4_squashed' into socks_trunnel4_squashed_merged
rl1987 [Tue, 26 Jun 2018 17:48:35 +0000 (20:48 +0300)]
Use constants for possible values of first octet
rl1987 [Tue, 26 Jun 2018 16:31:26 +0000 (19:31 +0300)]
Remove prop229 stuff from socks5.trunnel
rl1987 [Wed, 23 May 2018 12:53:07 +0000 (14:53 +0200)]
Add changes file
rl1987 [Wed, 23 May 2018 12:38:13 +0000 (14:38 +0200)]
Rework socks_request_set_socks5_error() with trunnel
rl1987 [Wed, 23 May 2018 11:08:47 +0000 (13:08 +0200)]
Document new code
rl1987 [Wed, 23 May 2018 09:44:43 +0000 (11:44 +0200)]
Fix buf_t advancement in fetch_buf_from_socks
We pullup 512 bytes of input to make sure that at least one SOCKS
message ends up in head of linked list
rl1987 [Tue, 22 May 2018 14:28:15 +0000 (16:28 +0200)]
Make a distinction between truncated message and expecting more messages
rl1987 [Tue, 22 May 2018 11:59:07 +0000 (13:59 +0200)]
Fix whitespace/formatting
rl1987 [Tue, 22 May 2018 11:53:34 +0000 (13:53 +0200)]
Remove legacy SOCKS5 phase 2 code
rl1987 [Tue, 22 May 2018 10:23:32 +0000 (12:23 +0200)]
Add CMD_RESOLVE to socks5_client_request
rl1987 [Mon, 21 May 2018 15:33:28 +0000 (17:33 +0200)]
Second phase of SOCKS5
rl1987 [Mon, 21 May 2018 10:55:20 +0000 (12:55 +0200)]
Remove legacy RFC1929 code
rl1987 [Wed, 16 May 2018 13:41:57 +0000 (15:41 +0200)]
Implement SOCKS5 user/pass handling
rl1987 [Wed, 16 May 2018 12:47:46 +0000 (14:47 +0200)]
Fix type in socks5.trunnel
rl1987 [Wed, 16 May 2018 10:31:29 +0000 (12:31 +0200)]
Remove legacy SOCKS5 phase 1 code
rl1987 [Wed, 16 May 2018 10:06:10 +0000 (12:06 +0200)]
Call new SOCKS code from parse_socks, to parse multiple packets in row
rl1987 [Tue, 15 May 2018 13:13:13 +0000 (15:13 +0200)]
Reimplement phase 1 of SOCKS5 using trunnel
squash! Reimplement phase 1 of SOCKS5 using trunnel
rl1987 [Tue, 15 May 2018 10:24:21 +0000 (12:24 +0200)]
Remove legacy SOCKS4 code
rl1987 [Tue, 15 May 2018 09:49:07 +0000 (11:49 +0200)]
Add RESOLVE (0xF0) command to socks4_client_request
rl1987 [Sun, 13 May 2018 15:39:48 +0000 (17:39 +0200)]
Parsing SOCKS4/4a request using trunnel impl
Roger Dingledine [Thu, 12 Jul 2018 15:02:22 +0000 (11:02 -0400)]
Remove a redundant typedef in proto_ext_or.h
Nick Mathewson [Thu, 12 Jul 2018 14:35:29 +0000 (10:35 -0400)]
Remove a redundant typedef in addr_policy_st.h
Nick Mathewson [Thu, 12 Jul 2018 13:31:00 +0000 (09:31 -0400)]
Tweak changes/bug26502
(When the ticket isn't a bugfix, we don't say "fixes bug XYZ". When
we do, then the version in "bugfix on XXX" is supposed to be the
first version that had the bug.)
Nick Mathewson [Thu, 12 Jul 2018 13:30:01 +0000 (09:30 -0400)]
Merge remote-tracking branch 'imnotbad/bug26502'
Nick Mathewson [Thu, 12 Jul 2018 13:00:14 +0000 (09:00 -0400)]
Tweak changes file for 26663
Nick Mathewson [Thu, 12 Jul 2018 12:59:23 +0000 (08:59 -0400)]
Merge remote-tracking branch 'imnotbad/bug26663'
Nick Mathewson [Wed, 11 Jul 2018 14:20:39 +0000 (10:20 -0400)]
Merge branch 'unify_microrevision_users'
Nick Mathewson [Wed, 11 Jul 2018 13:52:39 +0000 (09:52 -0400)]
Move all use cases of micro-revision.i to a single place
That place is git-revision.c; git-revision.c now lives in lib/log.
Also fix the compilation rules so that all object files that need
micro-revision.i depend on it.
Nick Mathewson [Wed, 11 Jul 2018 00:18:28 +0000 (20:18 -0400)]
Merge branch 'ticket26223'
Nick Mathewson [Wed, 11 Jul 2018 00:18:20 +0000 (20:18 -0400)]
Document compat_getdelim_.
Nick Mathewson [Wed, 11 Jul 2018 00:16:37 +0000 (20:16 -0400)]
Explain why we use raw_free with getdelim result.
Nick Mathewson [Wed, 11 Jul 2018 00:15:23 +0000 (20:15 -0400)]
Tabify lists in configure.ac
Nick Mathewson [Tue, 10 Jul 2018 19:35:49 +0000 (15:35 -0400)]
Merge branch 'post-refactor-renaming'
Nick Mathewson [Tue, 10 Jul 2018 19:25:53 +0000 (15:25 -0400)]
Rename tm_cvt to time_to_tm
Nick Mathewson [Tue, 10 Jul 2018 19:20:28 +0000 (15:20 -0400)]
Rename torlog.[ch] to log.[ch]
Fun fact: these files used to be called log.[ch] until we ran into
conflicts with systems having a log.h file. But now that we always
include "lib/log/log.h", we should be fine.
Nick Mathewson [Tue, 10 Jul 2018 19:16:57 +0000 (15:16 -0400)]
Rename util_malloc to malloc.
Nick Mathewson [Tue, 10 Jul 2018 19:07:04 +0000 (15:07 -0400)]
Add a changes file for 26481 (the big code movement)
Nick Mathewson [Tue, 10 Jul 2018 18:51:10 +0000 (14:51 -0400)]
Remove changes file for 26715.
(Bugfixes on bugs that have never been in a released version don't
need a changes file.)
Nick Mathewson [Tue, 10 Jul 2018 18:50:49 +0000 (14:50 -0400)]
Merge remote-tracking branch 'neel/fbsd-cfix'
Nick Mathewson [Tue, 10 Jul 2018 18:48:12 +0000 (14:48 -0400)]
Merge branch 'ticket26526_26532'
Nick Mathewson [Tue, 10 Jul 2018 17:36:45 +0000 (13:36 -0400)]
Isolate resolve.h usage in the modules that really need it.
(Almost none of Tor should actually need to touch the platform resolver.)
Nick Mathewson [Tue, 10 Jul 2018 17:30:44 +0000 (13:30 -0400)]
Remove addr_port_lookup.
This lets us cut the dependency from address.c to resolve.c: the
address.c module now has no paths to the libc resolver in it.
Nick Mathewson [Tue, 10 Jul 2018 17:18:55 +0000 (13:18 -0400)]
Remove all users of addr_port_lookup outside of address.c
This function has a nasty API, since whether or not it invokes the
resolver depends on whether one of its arguments is NULL. That's a
good way for accidents to happen.
This patch incidentally makes tor-resolve support socks hosts on
IPv6.
Nick Mathewson [Tue, 10 Jul 2018 16:56:09 +0000 (12:56 -0400)]
Move tor_addr_{,port_}lookup to resolve.c
Nick Mathewson [Tue, 10 Jul 2018 16:50:38 +0000 (12:50 -0400)]
Refactor ipv[46].[ch]
These are now combined into an inaddr.[ch], since their purpose is
to implement functions for struct in_addr and struct in6_addr.
The definitions for in6_addr and its allies are now in a separate
header, inaddr_st.h.
Closes ticket 26532.
Neel Chauhan [Tue, 10 Jul 2018 16:15:49 +0000 (12:15 -0400)]
Fix build on FreeBSD post-refactor
Nick Mathewson [Tue, 10 Jul 2018 16:28:22 +0000 (12:28 -0400)]
Document the headers in src/app/config/
Nick Mathewson [Tue, 10 Jul 2018 16:22:01 +0000 (12:22 -0400)]
File-level summary documentation for src/lib/*/*.[ch]
Nick Mathewson [Tue, 10 Jul 2018 15:09:25 +0000 (11:09 -0400)]
Describe "check-includes" in the CodingStandards.md file
Nick Mathewson [Tue, 10 Jul 2018 15:03:45 +0000 (11:03 -0400)]
Stop mentioning src/or and src/common in doc/HACKING
Nick Mathewson [Tue, 10 Jul 2018 15:01:07 +0000 (11:01 -0400)]
Add an initial CodeStructure.md file to doc/HACKING.
Not complete or pretty, but better than nothing.
Nick Mathewson [Tue, 10 Jul 2018 14:32:09 +0000 (10:32 -0400)]
Use tor_getline() in dirserv.c to remove its upper line limit.
Closes ticket 26223.
Nick Mathewson [Tue, 10 Jul 2018 14:26:22 +0000 (10:26 -0400)]
Refactor dirserv_read_measured_bandwidths to have a single exit point
Nick Mathewson [Tue, 10 Jul 2018 14:23:29 +0000 (10:23 -0400)]
Integrate getdelim() and getline() support into Tor.
Nick Mathewson [Tue, 10 Jul 2018 14:14:24 +0000 (10:14 -0400)]
Add the compatibility definition for getdelim.c from netbsd.
We shouldn't actually need this code nearly anywhere we build:
getdelim is POSIX, and mingw provides it.
Nick Mathewson [Mon, 9 Jul 2018 19:46:39 +0000 (15:46 -0400)]
Make checkIncludes work on python 2.7