]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 14:23:41 +0000 (14:23 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 14:23:41 +0000 (14:23 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'tor-github/pr/1909' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 14:23:17 +0000 (14:23 +0000)] 
Merge branch 'tor-github/pr/1909' into maint-0.3.5

5 years agoMerge branch 'tor-github/pr/1887' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 14:19:28 +0000 (14:19 +0000)] 
Merge branch 'tor-github/pr/1887' into maint-0.4.3

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 14:16:16 +0000 (14:16 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'tor-github/pr/1806' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 14:15:57 +0000 (14:15 +0000)] 
Merge branch 'tor-github/pr/1806' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 14:03:04 +0000 (14:03 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 14:03:04 +0000 (14:03 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'tor-github/pr/1793' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 13:55:39 +0000 (13:55 +0000)] 
Merge branch 'tor-github/pr/1793' into maint-0.3.5

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 13:48:49 +0000 (13:48 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 13:48:49 +0000 (13:48 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'tor-github/pr/1785' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 13:47:55 +0000 (13:47 +0000)] 
Merge branch 'tor-github/pr/1785' into maint-0.3.5

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Alexander Færøy [Tue, 30 Jun 2020 13:37:20 +0000 (13:37 +0000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Alexander Færøy [Tue, 30 Jun 2020 13:37:20 +0000 (13:37 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge remote-tracking branch 'nickm-github/bug32884_035' into maint-0.3.5
Alexander Færøy [Tue, 30 Jun 2020 13:35:13 +0000 (13:35 +0000)] 
Merge remote-tracking branch 'nickm-github/bug32884_035' into maint-0.3.5

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 17:57:41 +0000 (13:57 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'ticket33290_v2_042' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 17:57:13 +0000 (13:57 -0400)] 
Merge branch 'ticket33290_v2_042' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 17:55:22 +0000 (13:55 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-github/pr/1696/head' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 17:53:27 +0000 (13:53 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1696/head' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 17:48:32 +0000 (13:48 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-github/pr/1697/head' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 17:48:25 +0000 (13:48 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1697/head' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 16:58:50 +0000 (12:58 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-github/pr/1722/head' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 16:58:23 +0000 (12:58 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1722/head' into maint-0.4.2

5 years agoMerge remote-tracking branch 'tor-github/pr/1829/head' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 16:56:39 +0000 (12:56 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1829/head' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Nick Mathewson [Mon, 29 Jun 2020 16:55:35 +0000 (12:55 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 29 Jun 2020 16:55:35 +0000 (12:55 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-github/pr/1725/head' into maint-0.3.5
Nick Mathewson [Mon, 29 Jun 2020 16:55:27 +0000 (12:55 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1725/head' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
David Goulet [Fri, 12 Jun 2020 16:55:41 +0000 (12:55 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
David Goulet [Fri, 12 Jun 2020 16:55:41 +0000 (12:55 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'tor-github/pr/1912' into maint-0.3.5
David Goulet [Fri, 12 Jun 2020 16:55:17 +0000 (12:55 -0400)] 
Merge branch 'tor-github/pr/1912' into maint-0.3.5

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.2
Nick Mathewson [Fri, 5 Jun 2020 16:37:29 +0000 (12:37 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Fri, 5 Jun 2020 16:37:29 +0000 (12:37 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoUpdate and upgrade Pacman before installing dependencies in AppVeyor.
Alexander Færøy [Tue, 2 Jun 2020 13:07:54 +0000 (13:07 +0000)] 
Update and upgrade Pacman before installing dependencies in AppVeyor.

This patch makes sures that AppVeyor upgrades its Pacman (the package
manager) before installing the Tor dependencies.

See: https://bugs.torproject.org/34384

5 years agoRevert "Travis: temporarily fix stem version to d1174a83c2dcb7b8"
Nick Mathewson [Wed, 3 Jun 2020 18:48:05 +0000 (14:48 -0400)] 
Revert "Travis: temporarily fix stem version to d1174a83c2dcb7b8"

This reverts commit e63bfca5f2d98788d11b9a0a82bf67277a228c71, now
that Stem has been upgraded to fix the underlying issue.

5 years agoMerge branch 'tor-github/pr/1909' into maint-0.4.3
George Kadianakis [Tue, 2 Jun 2020 11:05:33 +0000 (14:05 +0300)] 
Merge branch 'tor-github/pr/1909' into maint-0.4.3

5 years agoMerge remote-tracking branch 'tor-github/pr/1905/head' into maint-0.4.3
Nick Mathewson [Mon, 1 Jun 2020 13:47:37 +0000 (09:47 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1905/head' into maint-0.4.3

5 years agoPreemptive circs should work with UseEntryGuards 0
Roger Dingledine [Sat, 30 May 2020 05:54:22 +0000 (01:54 -0400)] 
Preemptive circs should work with UseEntryGuards 0

Resume being willing to use preemptively-built circuits when
UseEntryGuards is set to 0. We accidentally disabled this feature with
that config setting (in our fix for #24469), leading to slower load times.

Fixes bug 34303; bugfix on 0.3.3.2-alpha.

5 years agoMerge branch 'tor-github/pr/1792' into maint-0.4.3
George Kadianakis [Thu, 28 May 2020 09:25:57 +0000 (12:25 +0300)] 
Merge branch 'tor-github/pr/1792' into maint-0.4.3

5 years agochanges: Add changes file for ticket 33458
David Goulet [Wed, 18 Mar 2020 14:16:31 +0000 (10:16 -0400)] 
changes: Add changes file for ticket 33458

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agohs-v3: Improve accessor semantic of client cached object
David Goulet [Tue, 10 Mar 2020 14:58:51 +0000 (10:58 -0400)] 
hs-v3: Improve accessor semantic of client cached object

Add an inline helper function that indicates if the cached object contains a
decrypted descriptor or not.

The descriptor object is NULL if tor is unable to decrypt it (lacking client
authorization) and some actions need to be done only when we have a decrypted
object.

This improves code semantic.

Fixes #33458

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMan page: MinUptimeHidServDirectoryV2 defaults to 96 hours
Roger Dingledine [Sat, 23 May 2020 08:27:56 +0000 (04:27 -0400)] 
Man page: MinUptimeHidServDirectoryV2 defaults to 96 hours

Bugfix on 0.2.6.3-alpha; fixes bug 34299.

5 years agoMerge branch 'ticket34255_043' into maint-0.4.3
Nick Mathewson [Tue, 19 May 2020 13:39:04 +0000 (09:39 -0400)] 
Merge branch 'ticket34255_043' into maint-0.4.3

5 years agoDoxygen: fix unbalanced groups.
Nick Mathewson [Tue, 19 May 2020 13:18:39 +0000 (09:18 -0400)] 
Doxygen: fix unbalanced groups.

Closes ticket 34255.

5 years agoAdd a changes file for 34233.
Nick Mathewson [Fri, 15 May 2020 14:27:49 +0000 (10:27 -0400)] 
Add a changes file for 34233.

This bug was merged back to 0.3.5 with our #34078 fix, but only
released in 0.4.3.5, so the changes file goes here.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Fri, 15 May 2020 14:25:27 +0000 (10:25 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Fri, 15 May 2020 14:25:27 +0000 (10:25 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1 maint-0.4.1
Nick Mathewson [Fri, 15 May 2020 14:25:27 +0000 (10:25 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoFix use of non-portable == in configure.ac.
Nick Mathewson [Fri, 15 May 2020 13:58:49 +0000 (09:58 -0400)] 
Fix use of non-portable == in configure.ac.

Fixes bug 34233.

(This has bug has been backported to 0.3.5, but only released in
0.4.3, so it only needs a changes file there.)

5 years agobump to 0.4.3.5-dev
Nick Mathewson [Fri, 15 May 2020 13:02:12 +0000 (09:02 -0400)] 
bump to 0.4.3.5-dev

5 years agobump to 0.4.3.5
Nick Mathewson [Thu, 14 May 2020 14:37:42 +0000 (10:37 -0400)] 
bump to 0.4.3.5

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Thu, 14 May 2020 14:20:08 +0000 (10:20 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Thu, 14 May 2020 14:20:08 +0000 (10:20 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Thu, 14 May 2020 14:20:08 +0000 (10:20 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoTravis: temporarily fix stem version to d1174a83c2dcb7b8
Nick Mathewson [Wed, 13 May 2020 12:53:02 +0000 (08:53 -0400)] 
Travis: temporarily fix stem version to d1174a83c2dcb7b8

This is a workaround for https://github.com/torproject/stem/issues/63

5 years agoFix crash when tor is compiled with NSS and seccomp sandbox is enabled
Daniel Pinto [Wed, 6 May 2020 21:00:50 +0000 (22:00 +0100)] 
Fix crash when tor is compiled with NSS and seccomp sandbox is enabled

Adds seccomp rules for socket and getpeername used by NSS

5 years agoFix a boolean logic error when logging about invalid hostnames.
Nick Mathewson [Wed, 6 May 2020 21:15:37 +0000 (17:15 -0400)] 
Fix a boolean logic error when logging about invalid hostnames.

Fixes bug 34131; bugfix on 0.4.3.1-alpha.

5 years agoconnection_or_finished_flushing(): add a missing "break;"
Nick Mathewson [Wed, 6 May 2020 21:09:27 +0000 (17:09 -0400)] 
connection_or_finished_flushing(): add a missing "break;"

This one is harmless like the others (so far)

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Wed, 6 May 2020 21:07:47 +0000 (17:07 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 21:07:27 +0000 (17:07 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agobtrack_orconn_cevent.c: Add a missing "break;"
Nick Mathewson [Wed, 6 May 2020 21:07:12 +0000 (17:07 -0400)] 
btrack_orconn_cevent.c: Add a missing "break;"

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Wed, 6 May 2020 20:58:12 +0000 (16:58 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 20:58:12 +0000 (16:58 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:58:12 +0000 (16:58 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agochanges file for bug 34078.
Nick Mathewson [Wed, 6 May 2020 20:58:06 +0000 (16:58 -0400)] 
changes file for bug 34078.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

(In order to avoid conflicts, I'm applying this script separately to
each maint branch. This is the 0.4.3 version.)

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Wed, 6 May 2020 20:54:12 +0000 (16:54 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

This is an "ours" merge to avoid taking the maint-0.4.2 version of the 34078
fix.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

(In order to avoid conflicts, I'm applying this script separately to
each maint branch. This is the 0.4.2 version.)

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 20:53:06 +0000 (16:53 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

This is an "ours" merge to avoid taking the 0.4.1 version of the 34078 fix.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

(In order to avoid conflicts, I'm applying this script separately to
each maint branch. This is the 0.4.1 version.)

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:51:33 +0000 (16:51 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

This is an "ours" merge to avoid taking the 0.3.5 fix for 34078.

5 years agoUse __attribute__((fallthrough)) rather than magic GCC comments.
Nick Mathewson [Wed, 6 May 2020 14:45:48 +0000 (10:45 -0400)] 
Use __attribute__((fallthrough)) rather than magic GCC comments.

GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

5 years agohs_dos.c: rewrite a comment not to say "fallthrough"
Nick Mathewson [Wed, 6 May 2020 20:49:57 +0000 (16:49 -0400)] 
hs_dos.c: rewrite a comment not to say "fallthrough"

There's nothing wrong with the comment, but the script I'm about to
apply wouldn't like it.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Wed, 6 May 2020 20:47:03 +0000 (16:47 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:47:03 +0000 (16:47 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Wed, 6 May 2020 20:47:03 +0000 (16:47 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'bug34078_prelim_041' into maint-0.4.1
Nick Mathewson [Wed, 6 May 2020 20:46:52 +0000 (16:46 -0400)] 
Merge branch 'bug34078_prelim_041' into maint-0.4.1

5 years agoMerge branch 'bug34078_prelim_035' into maint-0.3.5
Nick Mathewson [Wed, 6 May 2020 20:46:31 +0000 (16:46 -0400)] 
Merge branch 'bug34078_prelim_035' into maint-0.3.5

5 years agoMerge branch 'bug34078_prelim_035' into bug34078_prelim_041
Nick Mathewson [Wed, 6 May 2020 19:18:36 +0000 (15:18 -0400)] 
Merge branch 'bug34078_prelim_035' into bug34078_prelim_041

5 years agoRemove an incorrect "Fall through" comment.
Nick Mathewson [Wed, 6 May 2020 18:47:38 +0000 (14:47 -0400)] 
Remove an incorrect "Fall through" comment.

5 years agoaddress.c: add a single (harmless) missing break;
Nick Mathewson [Wed, 6 May 2020 14:42:17 +0000 (10:42 -0400)] 
address.c: add a single (harmless) missing break;

5 years agoinclude compat_compiler for ed25519_donna
Nick Mathewson [Wed, 6 May 2020 14:38:59 +0000 (10:38 -0400)] 
include compat_compiler for ed25519_donna

5 years agoReplace some "fall through" comments not at the end of a case.
Nick Mathewson [Wed, 6 May 2020 14:35:36 +0000 (10:35 -0400)] 
Replace some "fall through" comments not at the end of a case.

5 years agoReplace a "fall through" comment that was outside a switch.
Nick Mathewson [Wed, 6 May 2020 14:32:35 +0000 (10:32 -0400)] 
Replace a "fall through" comment that was outside a switch.

5 years agoAdd a fallthrough macro.
Nick Mathewson [Wed, 6 May 2020 14:24:21 +0000 (10:24 -0400)] 
Add a fallthrough macro.

This macro defers to __attribute__((fallthrough)) on GCC (and
clang).  Previously we had been using GCC's magic /* fallthrough */
comments, but clang very sensibly doesn't accept those.

Since not all compiler recognize it, we only define it when our
configure script detects that it works.

Part of a fix for 34078.

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
Nick Mathewson [Mon, 4 May 2020 14:25:52 +0000 (10:25 -0400)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
Nick Mathewson [Mon, 4 May 2020 14:25:52 +0000 (10:25 -0400)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'bug34077_043' into maint-0.4.3
Nick Mathewson [Mon, 4 May 2020 14:25:45 +0000 (10:25 -0400)] 
Merge branch 'bug34077_043' into maint-0.4.3

5 years agoMerge branch 'bug34077_041' into maint-0.4.1
Nick Mathewson [Mon, 4 May 2020 14:14:38 +0000 (10:14 -0400)] 
Merge branch 'bug34077_041' into maint-0.4.1

5 years agoFix a GCC 10.0.1 compilation error.
Nick Mathewson [Fri, 1 May 2020 03:04:56 +0000 (23:04 -0400)] 
Fix a GCC 10.0.1 compilation error.

Do not try to stuff "HS_DESC_DECODE_GENERIC_ERROR" (-1) into a
socks5_reply_status_t (enum).  It doesn't actually make sense, and
isn't one of our documented extensions.

(This can only happen on a nonfatal assertion that we haven't seen,
so it probably isn't happening in practice.)

Fixes another case of bug 34077; bugfix on 0.4.3.1-alpha.

5 years agoMerge branch 'bug34077_042' into bug34077_043
Nick Mathewson [Fri, 1 May 2020 03:01:58 +0000 (23:01 -0400)] 
Merge branch 'bug34077_042' into bug34077_043

5 years agoMerge branch 'bug34077_041' into bug34077_042
Nick Mathewson [Fri, 1 May 2020 02:59:08 +0000 (22:59 -0400)] 
Merge branch 'bug34077_041' into bug34077_042

5 years agoFix a GCC 10.0.1 compilation warning.
Nick Mathewson [Fri, 1 May 2020 02:56:31 +0000 (22:56 -0400)] 
Fix a GCC 10.0.1 compilation warning.

Fixes 34077 for 0.4.1; bugfix on 0.4.0.3-alpha. (Specifically, GCC
first gives this warning for 9eeff921ae7b786d960ea4286d5bba56)

5 years agochanneltls: Stop truncating IPv6 in logs
teor [Wed, 15 Apr 2020 03:06:01 +0000 (13:06 +1000)] 
channeltls: Stop truncating IPv6 in logs

Stop truncating IPv6 addresses and ports in channel and connection logs.

Fixes bug 33918; bugfix on 0.2.4.4-alpha.

5 years agobump to 0.4.3.4-rc-dev
Nick Mathewson [Mon, 13 Apr 2020 21:02:20 +0000 (17:02 -0400)] 
bump to 0.4.3.4-rc-dev

5 years agoMerge branch 'bug33545_043_squashed' into maint-0.4.3
Nick Mathewson [Mon, 13 Apr 2020 18:13:44 +0000 (14:13 -0400)] 
Merge branch 'bug33545_043_squashed' into maint-0.4.3

5 years agohs-v3: Change all-zeroes hard-assert to a BUG-and-err.
George Kadianakis [Mon, 30 Mar 2020 13:33:30 +0000 (16:33 +0300)] 
hs-v3: Change all-zeroes hard-assert to a BUG-and-err.

And also disallow all-zeroes keys from the filesystem; add a test for it too.

5 years agohs-v3: Don't allow registration of an all-zeroes client auth key.
George Kadianakis [Mon, 30 Mar 2020 13:09:52 +0000 (16:09 +0300)] 
hs-v3: Don't allow registration of an all-zeroes client auth key.

The client auth protocol allows attacker-controlled x25519 private keys being
passed around, which allows an attacker to potentially trigger the all-zeroes
assert for client_auth_sk in hs_descriptor.c:decrypt_descriptor_cookie().

We fixed that by making sure that an all-zeroes client auth key will not be
used.

There are no guidelines for validating x25519 private keys, and the assert was
there as a sanity check for code flow issues (we don't want to enter that
function with an unitialized key if client auth is being used). To avoid such
crashes in the future, we also changed the assert to a BUG-and-err.

5 years agobump to 0.4.3.4-rc
Nick Mathewson [Thu, 9 Apr 2020 12:38:41 +0000 (08:38 -0400)] 
bump to 0.4.3.4-rc

5 years agoAdd fsync to list of syscalls permitted by sandbox
Nick Mathewson [Thu, 9 Apr 2020 12:33:11 +0000 (08:33 -0400)] 
Add fsync to list of syscalls permitted by sandbox

(Our fix for 33087 requires this, I believe.)

5 years agoMerge remote-tracking branch 'tor-github/pr/1723/head' into maint-0.4.3
Nick Mathewson [Thu, 9 Apr 2020 12:30:14 +0000 (08:30 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1723/head' into maint-0.4.3