]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
5 years agocopy 0.4.3.4-rc changelog forward.
Nick Mathewson [Mon, 13 Apr 2020 21:01:35 +0000 (17:01 -0400)] 
copy 0.4.3.4-rc changelog forward.

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

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 agoMerge remote-tracking branch 'tor-github/pr/1801/head'
Nick Mathewson [Thu, 9 Apr 2020 15:50:20 +0000 (11:50 -0400)] 
Merge remote-tracking branch 'tor-github/pr/1801/head'

5 years agoMerge branch 'maint-0.4.3'
Nick Mathewson [Thu, 9 Apr 2020 12:38:59 +0000 (08:38 -0400)] 
Merge branch 'maint-0.4.3'

"ours" to avoid version bump

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 agoMerge branch 'maint-0.4.3'
Nick Mathewson [Thu, 9 Apr 2020 12:33:36 +0000 (08:33 -0400)] 
Merge branch 'maint-0.4.3'

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

5 years agoMake sure that we free 'addr' at the end of a pair of addr tests
Nick Mathewson [Thu, 9 Apr 2020 11:54:23 +0000 (07:54 -0400)] 
Make sure that we free 'addr' at the end of a pair of addr tests

Fixes a couple of Coverity warnings about possible memory leaks.
Bug not in any released Tor.

5 years agohs-v3: Several fixes after #32542 review
David Goulet [Wed, 8 Apr 2020 13:58:17 +0000 (09:58 -0400)] 
hs-v3: Several fixes after #32542 review

asn: Accidentally left this commit out when merging #32542, so cherry-picking
it now.

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge branch 'maint-0.4.3'
teor [Thu, 9 Apr 2020 09:42:36 +0000 (19:42 +1000)] 
Merge branch 'maint-0.4.3'

"ours" merge, because we only want to remove check-best-practices
from check-local in 0.4.2 and 0.4.3.

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
teor [Thu, 9 Apr 2020 09:41:19 +0000 (19:41 +1000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

Remove check-best-practices from check-local in maint-0.4.3.
(The check-local jobs are all on separate lines in 0.4.3.)

5 years agoremove practracker from check-local (0.4.2 and 0.4.3 only)
Nick Mathewson [Wed, 19 Jun 2019 18:29:08 +0000 (14:29 -0400)] 
remove practracker from check-local (0.4.2 and 0.4.3 only)

practracker shouldn't be running in release or maint branches.

5 years agoMerge branch 'maint-0.4.3'
teor [Thu, 9 Apr 2020 01:06:51 +0000 (11:06 +1000)] 
Merge branch 'maint-0.4.3'

"ours" merge, to avoid taking PR 1854, which reverts
"Prefer IPv6 by default"  for 0.4.3 only.

5 years agoMerge branch 'pr1854_squashed' into maint-0.4.3
teor [Thu, 9 Apr 2020 01:05:59 +0000 (11:05 +1000)] 
Merge branch 'pr1854_squashed' into maint-0.4.3

Squashed PR 1854, and fixed a minor typo (IPv4 -> IPv6).

5 years agoclient: Revert setting PreferIPv6 on by default
David Goulet [Tue, 7 Apr 2020 13:04:01 +0000 (09:04 -0400)] 
client: Revert setting PreferIPv6 on by default

This change broke torsocks that by default is expecting an IPv4 for hostname
resolution because it can't ask tor for a specific IP version with the SOCKS5
extension.

PreferIPv6 made it that sometimes the IPv6 could be returned to torsocks that
was expecting an IPv4.

Torsocks is probably a very unique case because the runtime flow is that it
hijacks DNS resolution (ex: getaddrinfo()), gets an IP and then sends it back
for the connect() to happen.

The libc has DNS resolution functions that allows the caller to request a
specific INET family but torsocks can't tell tor to resolve the hostname only
to an IPv4 or IPv6 and thus by default fallsback to IPv4.

Reverting this change into 0.4.3.x series but we'll keep it in the 0.4.4.x
series in the hope that we add this SOCKS5 extension to tor for DNS resolution
and then change torsocks to use that.

Fixes #33804

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge branch 'maint-0.4.3'
teor [Thu, 9 Apr 2020 01:03:40 +0000 (11:03 +1000)] 
Merge branch 'maint-0.4.3'

5 years agoMerge branch 'maint-0.4.2' into maint-0.4.3
teor [Thu, 9 Apr 2020 01:03:34 +0000 (11:03 +1000)] 
Merge branch 'maint-0.4.2' into maint-0.4.3

5 years agoMerge branch 'maint-0.4.1' into maint-0.4.2
teor [Thu, 9 Apr 2020 01:03:27 +0000 (11:03 +1000)] 
Merge branch 'maint-0.4.1' into maint-0.4.2

5 years agoMerge branch 'maint-0.3.5' into maint-0.4.1
teor [Thu, 9 Apr 2020 01:03:20 +0000 (11:03 +1000)] 
Merge branch 'maint-0.3.5' into maint-0.4.1

5 years agoMerge remote-tracking branch 'tor-github/pr/1784' into maint-0.3.5
teor [Thu, 9 Apr 2020 01:02:49 +0000 (11:02 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1784' into maint-0.3.5

5 years agorelay: Run practracker --regen
teor [Tue, 17 Mar 2020 07:45:49 +0000 (17:45 +1000)] 
relay: Run practracker --regen

Lock in some file and function size improvements.

Accept some small file size and dependency increases.

Part of 33633.

5 years agorelay: Run "make autostyle"
teor [Tue, 17 Mar 2020 07:43:02 +0000 (17:43 +1000)] 
relay: Run "make autostyle"

But only take the changes from the relay module.

Part of 33633.

5 years agotest/circuitbuild: Add a test for onionskin_answer()
teor [Tue, 7 Apr 2020 08:26:57 +0000 (18:26 +1000)] 
test/circuitbuild: Add a test for onionskin_answer()

Part of 33633.

5 years agochanges: file for 33633
teor [Wed, 18 Mar 2020 09:15:14 +0000 (19:15 +1000)] 
changes: file for 33633

5 years agorelay/circuitbuild: Refactor circuit_extend()
teor [Mon, 6 Apr 2020 09:21:13 +0000 (19:21 +1000)] 
relay/circuitbuild: Refactor circuit_extend()

Make the "else" case explicit at the end of the function.

Part of 33633.

5 years agotest/circuitbuild: Add tests for circuit_extend()
teor [Mon, 6 Apr 2020 09:20:14 +0000 (19:20 +1000)] 
test/circuitbuild: Add tests for circuit_extend()

Part of 33633.

5 years agocore/or: Make some functions mockable
teor [Mon, 6 Apr 2020 09:14:27 +0000 (19:14 +1000)] 
core/or: Make some functions mockable

Preparation for testing circuit_extend().

Part of 33633.

5 years agochannel: Rewrite the channel_get_for_extend() comments
teor [Mon, 6 Apr 2020 09:11:17 +0000 (19:11 +1000)] 
channel: Rewrite the channel_get_for_extend() comments

Explain what the function does now.
Fix some typos.

Part of 33633.

5 years agotest/circuitbuild: Add tests for open_connection_for_extend
teor [Fri, 3 Apr 2020 09:02:26 +0000 (19:02 +1000)] 
test/circuitbuild: Add tests for open_connection_for_extend

Part of 33633.

5 years agocircuitbuild: Make some functions mockable
teor [Fri, 3 Apr 2020 09:01:19 +0000 (19:01 +1000)] 
circuitbuild: Make some functions mockable

Part of 33633.

5 years agotest/circuitbuild: Add tests for extend_lspec_valid
teor [Fri, 3 Apr 2020 04:36:29 +0000 (14:36 +1000)] 
test/circuitbuild: Add tests for extend_lspec_valid

Part of 33633.

5 years agotest/circuitbuild: Make some tests fork
teor [Fri, 3 Apr 2020 04:35:46 +0000 (14:35 +1000)] 
test/circuitbuild: Make some tests fork

Since we're testing IF_BUG_ONCE(), we need to fork.

Part of 33633.

5 years agotest/circuitbuild: Tests for adding ed25519 keys
teor [Thu, 2 Apr 2020 03:39:17 +0000 (13:39 +1000)] 
test/circuitbuild: Tests for adding ed25519 keys

Add tests for circuit_extend_add_ed25519_helper().

Part of 33633.

5 years agonodelist: Make some functions mockable
teor [Thu, 2 Apr 2020 03:38:49 +0000 (13:38 +1000)] 
nodelist: Make some functions mockable

Part of 33633.

5 years agotest/circuitbuild: Add a test for extend_state_valid
teor [Wed, 1 Apr 2020 12:36:33 +0000 (22:36 +1000)] 
test/circuitbuild: Add a test for extend_state_valid

Part of 33633.

5 years agotest/circuitbuid: Fix new_route_len_unhandled_exit
teor [Wed, 1 Apr 2020 12:35:07 +0000 (22:35 +1000)] 
test/circuitbuid: Fix new_route_len_unhandled_exit

Make test_new_route_len_unhandled_exit more robust, by always tearing
down logs. (Rather than just tearing them down on success.)

5 years agotest/circuitbuild: Refactor test case array
teor [Wed, 1 Apr 2020 11:14:51 +0000 (21:14 +1000)] 
test/circuitbuild: Refactor test case array

Avoid repeating test names.

Part of 33633.

5 years agorelay: End circuitbuild logs with "."
teor [Fri, 3 Apr 2020 04:31:45 +0000 (14:31 +1000)] 
relay: End circuitbuild logs with "."

Consistent logs make testing easier.

Part of 33633.

5 years agorelay: Check for NULL arguments in circuitbuild
teor [Wed, 1 Apr 2020 12:25:10 +0000 (22:25 +1000)] 
relay: Check for NULL arguments in circuitbuild

Part of 33633.

5 years agorelay: Make circuitbuild functions STATIC
teor [Wed, 1 Apr 2020 11:37:47 +0000 (21:37 +1000)] 
relay: Make circuitbuild functions STATIC

Allow the circuitbuild_relay functions to be accessed by the unit tests.

Part of 33633.

5 years agorelay: Remove a redundant function return value
teor [Wed, 18 Mar 2020 09:07:57 +0000 (19:07 +1000)] 
relay: Remove a redundant function return value

Part of 33633.

5 years agorelay: Split out opening a connection for an extend
teor [Wed, 18 Mar 2020 09:06:41 +0000 (19:06 +1000)] 
relay: Split out opening a connection for an extend

Part of 33633.

5 years agorelay: Refactor some long lines from circuit_extend()
teor [Wed, 18 Mar 2020 08:48:01 +0000 (18:48 +1000)] 
relay: Refactor some long lines from circuit_extend()

Part of 33633.

5 years agorelay: Split link specifier checks from circuit_extend()
teor [Wed, 18 Mar 2020 08:44:42 +0000 (18:44 +1000)] 
relay: Split link specifier checks from circuit_extend()

Part of 33633.

5 years agorelay: Split state checks out of circuit_extend()
teor [Tue, 31 Mar 2020 23:20:58 +0000 (09:20 +1000)] 
relay: Split state checks out of circuit_extend()

Part of 33633.

5 years agorelay: Improve the comments on onionskin_answer()
teor [Tue, 17 Mar 2020 07:41:26 +0000 (17:41 +1000)] 
relay: Improve the comments on onionskin_answer()

Part of 33633.

5 years agorelay: Protocol warn when a client gets an extend
teor [Wed, 18 Mar 2020 08:07:14 +0000 (18:07 +1000)] 
relay: Protocol warn when a client gets an extend

circuit_extend() may be called when a client receives an extend cell,
even if the relay module is disabled.

Log a protocol warning when the relay module is disabled.

Part of 33633.

5 years agofix typos from #32542
Roger Dingledine [Wed, 8 Apr 2020 23:13:52 +0000 (19:13 -0400)] 
fix typos from #32542

5 years agoMerge branch 'tor-github/pr/1857'
George Kadianakis [Wed, 8 Apr 2020 15:15:37 +0000 (18:15 +0300)] 
Merge branch 'tor-github/pr/1857'

5 years agochanges: Add changes file for #32542
David Goulet [Wed, 8 Apr 2020 12:17:41 +0000 (08:17 -0400)] 
changes: Add changes file for #32542

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agotest: Unit test for missing ExtendedErrors
David Goulet [Wed, 11 Dec 2019 16:08:54 +0000 (11:08 -0500)] 
test: Unit test for missing ExtendedErrors

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoman: Update tor.1 ExtendedErrors section with latest
David Goulet [Wed, 11 Dec 2019 15:34:35 +0000 (10:34 -0500)] 
man: Update tor.1 ExtendedErrors section with latest

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge branch 'maint-0.4.3'
David Goulet [Wed, 8 Apr 2020 13:42:13 +0000 (09:42 -0400)] 
Merge branch 'maint-0.4.3'

5 years agoCorrect 'was not internal' to 'was internal' in test_external_ip()
Mrigyen Sawant [Tue, 7 Apr 2020 18:02:39 +0000 (23:32 +0530)] 
Correct 'was not internal' to 'was internal' in test_external_ip()

5 years agoMerge branch 'tor-github/pr/1855'
George Kadianakis [Wed, 8 Apr 2020 13:31:37 +0000 (16:31 +0300)] 
Merge branch 'tor-github/pr/1855'

5 years agohs-v3: Report SOCKS ExtendedErrors when all intro timed out
David Goulet [Wed, 11 Dec 2019 15:30:31 +0000 (10:30 -0500)] 
hs-v3: Report SOCKS ExtendedErrors when all intro timed out

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agohs-v3: Report rendezvous circuit failure SOCKS ExtendedErrors
David Goulet [Wed, 11 Dec 2019 15:15:02 +0000 (10:15 -0500)] 
hs-v3: Report rendezvous circuit failure SOCKS ExtendedErrors

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agohs-v3: Report introduction failure SOCKS ExtendedErrors
David Goulet [Wed, 11 Dec 2019 14:50:43 +0000 (09:50 -0500)] 
hs-v3: Report introduction failure SOCKS ExtendedErrors

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoaddress: Simplify tor_addr_is_valid()
teor [Tue, 31 Mar 2020 23:56:00 +0000 (09:56 +1000)] 
address: Simplify tor_addr_is_valid()

And rewrite the function comment.

Part of 33679.

5 years agoAdded tests for tor_addr_is_null/valid()
MrSquanchee [Fri, 20 Mar 2020 18:27:40 +0000 (23:57 +0530)] 
Added tests for tor_addr_is_null/valid()

Added tests for tor_addr_is_valid(),
and added tests for tor_addr_is_null(),
which is not modfied.
Ticket 33679

5 years agohs-v3: Fix typo in log info when PublishHidServDescriptors is set to 0
David Goulet [Tue, 7 Apr 2020 17:17:21 +0000 (13:17 -0400)] 
hs-v3: Fix typo in log info when PublishHidServDescriptors is set to 0

Fixes #33779

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge branch 'pr1838_squashed'
teor [Tue, 7 Apr 2020 07:36:17 +0000 (17:36 +1000)] 
Merge branch 'pr1838_squashed'

5 years agoTry rewriting normalize_srcdir to normalize harder.
Nick Mathewson [Mon, 6 Apr 2020 14:48:59 +0000 (10:48 -0400)] 
Try rewriting normalize_srcdir to normalize harder.

5 years agoMake check_subsystem_order work in distcheck builds.
Nick Mathewson [Sat, 4 Apr 2020 15:31:30 +0000 (11:31 -0400)] 
Make check_subsystem_order work in distcheck builds.

5 years agoMake check_subsystem_order work in out-of-tree builds.
Nick Mathewson [Sat, 4 Apr 2020 15:31:30 +0000 (11:31 -0400)] 
Make check_subsystem_order work in out-of-tree builds.

5 years agoadd changes file for 31634
Nick Mathewson [Thu, 26 Mar 2020 16:40:56 +0000 (12:40 -0400)] 
add changes file for 31634

5 years agoAdd a test script to check subsystem order as part of make check.
Nick Mathewson [Thu, 26 Mar 2020 16:37:49 +0000 (12:37 -0400)] 
Add a test script to check subsystem order as part of make check.

5 years agochannel: Fix a comment typo
teor [Mon, 6 Apr 2020 09:10:30 +0000 (19:10 +1000)] 
channel: Fix a comment typo

5 years agochannel: Remove a newline at the start of the file
teor [Mon, 6 Apr 2020 09:08:33 +0000 (19:08 +1000)] 
channel: Remove a newline at the start of the file

5 years agoMerge branch 'maint-0.4.3'
teor [Sun, 5 Apr 2020 07:17:51 +0000 (17:17 +1000)] 
Merge branch 'maint-0.4.3'

5 years agodoc: Fix another man page typo
teor [Sun, 5 Apr 2020 07:17:03 +0000 (17:17 +1000)] 
doc: Fix another man page typo

The default value of the option is "auto", not "default".

5 years agoMerge branch 'maint-0.4.3'
teor [Sun, 5 Apr 2020 07:12:11 +0000 (17:12 +1000)] 
Merge branch 'maint-0.4.3'

5 years agodoc: Fix a typo in the man page
teor [Sun, 5 Apr 2020 07:10:37 +0000 (17:10 +1000)] 
doc: Fix a typo in the man page

"proceeding" means starting an action.
"preceding" means the thing before this thing.

In this context, it's a bit ambiguous.

5 years agocore/or: Fix a comment typo in onion.h
teor [Sat, 4 Apr 2020 05:05:34 +0000 (15:05 +1000)] 
core/or: Fix a comment typo in onion.h

Comment-only change.

5 years agoMerge branch 'maint-0.4.3'
teor [Sat, 4 Apr 2020 03:23:56 +0000 (13:23 +1000)] 
Merge branch 'maint-0.4.3'

5 years agochanges: file for ticket 33782
teor [Sat, 4 Apr 2020 03:20:06 +0000 (13:20 +1000)] 
changes: file for ticket 33782

Avoid conflicts between the fake sockets in tor's unit tests, and real
file descriptors. Resolves issues running unit tests with GitHub
Actions, where the process that embeds or launches the tests has
already opened a large number of file descriptors.

Fixes bug 33782; bugfix on 0.2.8.1-alpha.

Found and fixed by Putta Khunchalee.

5 years agodoc: Also stop running practracker in hooks
teor [Fri, 3 Apr 2020 12:10:01 +0000 (22:10 +1000)] 
doc: Also stop running practracker in hooks

When making a new maint branch, stop running practracker in hooks.

5 years agodoc: Minor restructure for Release Lifecycle
teor [Fri, 3 Apr 2020 12:06:27 +0000 (22:06 +1000)] 
doc: Minor restructure for Release Lifecycle

* make end and beginning of life into second-level sections
* write an intro for beginning
* tweak intro for end

5 years agoRe-apply: doc: Replace "underline" with "## Section name".
teor [Fri, 3 Apr 2020 12:02:11 +0000 (22:02 +1000)] 
Re-apply: doc: Replace "underline" with "## Section name".

Re-applying changes after merge.

5 years agoMerge remote-tracking branch 'tor-github/pr/1739'
teor [Fri, 3 Apr 2020 11:59:19 +0000 (21:59 +1000)] 
Merge remote-tracking branch 'tor-github/pr/1739'

Ignored conflicting style changes: they will be re-applied in
the next commit.

5 years agoChange starting file descriptor for tests.
Putta Khunchalee [Fri, 3 Apr 2020 09:47:38 +0000 (16:47 +0700)] 
Change starting file descriptor for tests.

5 years agoscripts: Ignore editor temporary files
teor [Fri, 3 Apr 2020 09:11:08 +0000 (19:11 +1000)] 
scripts: Ignore editor temporary files

Ignore editor temporary files when autostyling in:
* rectify_include_paths.py
* rename_c_identifier.py

Obviously correct changes to already-reviewed code.

5 years agoMerge branch 'maint-0.4.3'
teor [Fri, 3 Apr 2020 04:44:34 +0000 (14:44 +1000)] 
Merge branch 'maint-0.4.3'

5 years agodoc: Rewrite the approved-routers man page entry
teor [Fri, 3 Apr 2020 04:43:48 +0000 (14:43 +1000)] 
doc: Rewrite the approved-routers man page entry

Obviously correct documentation changes.

5 years agoMerge branch 'tor-github/pr/1851'
George Kadianakis [Wed, 1 Apr 2020 23:38:11 +0000 (02:38 +0300)] 
Merge branch 'tor-github/pr/1851'

5 years agoMerge branch 'maint-0.4.3'
teor [Wed, 1 Apr 2020 13:03:51 +0000 (23:03 +1000)] 
Merge branch 'maint-0.4.3'

5 years agoconfigure: Fix enabled module variable expansion
David Goulet [Tue, 31 Mar 2020 12:21:12 +0000 (08:21 -0400)] 
configure: Fix enabled module variable expansion

Fixes #33646

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agohs-v3: Move to log notice the registration of an OB instance
David Goulet [Wed, 1 Apr 2020 12:31:20 +0000 (08:31 -0400)] 
hs-v3: Move to log notice the registration of an OB instance

This is to allow a visual feedback in the logs for operators setting up Onion
Balance so they can confirm they properly configured the instances.

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge branch 'tor-github/pr/1844'
David Goulet [Wed, 1 Apr 2020 12:22:36 +0000 (08:22 -0400)] 
Merge branch 'tor-github/pr/1844'

5 years agoMove LOG_PROTOCOL_WARN to app/config.h
teor [Tue, 31 Mar 2020 23:14:47 +0000 (09:14 +1000)] 
Move LOG_PROTOCOL_WARN to app/config.h

LOG_PROTOCOL_WARN was in core/or.h, but the function it depends on is in
app/config.h. Put them in the same header, to reduce dependencies.

Part of 33633.

5 years agohs-v3: Move ob_subcreds to hs_service_state_t.
George Kadianakis [Mon, 30 Mar 2020 20:24:33 +0000 (23:24 +0300)] 
hs-v3: Move ob_subcreds to hs_service_state_t.

It's more natural there since it's runtime state.

5 years agohs-v3: Don't crash after SIGHUP in Onionbalance backend mode.
George Kadianakis [Mon, 30 Mar 2020 20:17:39 +0000 (23:17 +0300)] 
hs-v3: Don't crash after SIGHUP in Onionbalance backend mode.

The ob_subcreds array was not copied after SIGHUP, and that left the
post-SIGHUP service with a NULL ob_subcreds pointer (until the next descriptor
gets build where we regenerate ob_subcreds in hs_ob_refresh_keys()).

Fixes bug #33762; not in any released tor version.

5 years agoMerge branch 'maint-0.4.3'
David Goulet [Mon, 30 Mar 2020 17:38:58 +0000 (13:38 -0400)] 
Merge branch 'maint-0.4.3'

5 years agohs-v3: Relax severity of a log message when decoding descriptors.
George Kadianakis [Wed, 11 Mar 2020 13:18:47 +0000 (15:18 +0200)] 
hs-v3: Relax severity of a log message when decoding descriptors.

Make it LOG_PROTOCOL_WARN and also add the expiration timestamp in there to
ease debugging in the future.

5 years agochanges: Add file for ticket 33014
David Goulet [Mon, 30 Mar 2020 17:36:54 +0000 (13:36 -0400)] 
changes: Add file for ticket 33014

Signed-off-by: David Goulet <dgoulet@torproject.org>
5 years agoMerge branch 'tor-github/pr/1775'
David Goulet [Mon, 30 Mar 2020 17:31:56 +0000 (13:31 -0400)] 
Merge branch 'tor-github/pr/1775'