]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agoconn: Fix memleaks in retry_all_listeners
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>
7 years agoReport UNIX connection addresses that we opened correctly.
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.

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Wed, 12 Sep 2018 21:25:40 +0000 (17:25 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'maint-0.3.3' into 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

7 years agoMerge remote-tracking branch 'tor-github/pr/280'
Nick Mathewson [Wed, 12 Sep 2018 20:13:23 +0000 (16:13 -0400)] 
Merge remote-tracking branch 'tor-github/pr/280'

7 years agofixup! changes file
cypherpunks [Wed, 12 Sep 2018 14:22:31 +0000 (14:22 +0000)] 
fixup! changes file

7 years agoMerge remote-tracking branch 'dgoulet/ticket27545_035_01'
Nick Mathewson [Wed, 12 Sep 2018 14:18:11 +0000 (10:18 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket27545_035_01'

7 years agoMerge remote-tracking branch 'tor-github/pr/298'
Nick Mathewson [Wed, 12 Sep 2018 13:38:52 +0000 (09:38 -0400)] 
Merge remote-tracking branch 'tor-github/pr/298'

7 years agoMerge branch 'pr278_squashed'
Nick Mathewson [Wed, 12 Sep 2018 13:06:35 +0000 (09:06 -0400)] 
Merge branch 'pr278_squashed'

7 years agoActually, just disable test_rebind.sh on Appveyor
rl1987 [Sun, 19 Aug 2018 18:33:18 +0000 (21:33 +0300)] 
Actually, just disable test_rebind.sh on Appveyor

7 years agoDisable test_rebind.sh on Windows
rl1987 [Sat, 18 Aug 2018 13:29:46 +0000 (16:29 +0300)] 
Disable test_rebind.sh on Windows

7 years agoUpdate/fix CI build
rl1987 [Sun, 5 Aug 2018 13:27:49 +0000 (16:27 +0300)] 
Update/fix CI build

Update integration test to Python 3

7 years agoPick random ports in test_rebind.py
rl1987 [Sat, 21 Jul 2018 09:13:58 +0000 (12:13 +0300)] 
Pick random ports in test_rebind.py

7 years agoAlways include socket rebinding code
rl1987 [Tue, 17 Jul 2018 13:04:06 +0000 (13:04 +0000)] 
Always include socket rebinding code

7 years agoTweak test_rebind.py for future-proofness
rl1987 [Tue, 22 May 2018 15:36:06 +0000 (17:36 +0200)] 
Tweak test_rebind.py for future-proofness

7 years agoIntegration test for socket rebinding
rl1987 [Thu, 17 May 2018 14:01:52 +0000 (16:01 +0200)] 
Integration test for socket rebinding

squash! Integration test for socket rebinding

7 years agoAvoid mentioning ticket number in comments
rl1987 [Wed, 16 May 2018 15:23:42 +0000 (17:23 +0200)] 
Avoid mentioning ticket number in comments

7 years agoComments/explanation for #17873
rl1987 [Wed, 16 May 2018 15:16:46 +0000 (17:16 +0200)] 
Comments/explanation for #17873

7 years agoMinor code cleanups
rl1987 [Mon, 7 May 2018 12:26:27 +0000 (14:26 +0200)] 
Minor code cleanups

7 years agoAdd changes file
rl1987 [Thu, 26 Apr 2018 10:21:43 +0000 (12:21 +0200)] 
Add changes file

7 years agoLog a notice *after* creating connection
rl1987 [Sun, 20 May 2018 17:10:02 +0000 (19:10 +0200)] 
Log a notice *after* creating connection

7 years agoLog a notice when changing to/from wildcard IP address
rl1987 [Thu, 26 Apr 2018 09:25:16 +0000 (11:25 +0200)] 
Log a notice when changing to/from wildcard IP address

7 years agoAlways close old listeners in retry_all_listeners
rl1987 [Thu, 26 Apr 2018 09:18:13 +0000 (11:18 +0200)] 
Always close old listeners in retry_all_listeners

7 years agoRefrain from compiling socket rebinding code on system that don't need it
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

7 years agoTry rebinding new listener after closing old one if first bind failed with EADDRINUSE
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

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Wed, 12 Sep 2018 12:17:45 +0000 (08:17 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge remote-tracking branch 'teor/bug27464-034' into 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

7 years agoMerge remote-tracking branch 'tor-github/pr/318'
Nick Mathewson [Wed, 12 Sep 2018 12:12:19 +0000 (08:12 -0400)] 
Merge remote-tracking branch 'tor-github/pr/318'

7 years agorust/protover: fix check for overlapping ranges
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.

7 years agorust/protover: remove version zero from tests
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.

7 years agotest/protover: remove version zero from tests
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.

7 years agoMerge remote-tracking branch 'tor-github/pr/315'
Nick Mathewson [Tue, 11 Sep 2018 19:55:30 +0000 (15:55 -0400)] 
Merge remote-tracking branch 'tor-github/pr/315'

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 11 Sep 2018 19:53:06 +0000 (15:53 -0400)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Tue, 11 Sep 2018 19:53:06 +0000 (15:53 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoBug 25505: Check circuitmux queues before padding.
Mike Perry [Tue, 13 Mar 2018 13:50:35 +0000 (13:50 +0000)] 
Bug 25505: Check circuitmux queues before padding.

7 years agoMerge remote-tracking branch 'mikeperry/bug25505'
Nick Mathewson [Tue, 11 Sep 2018 18:32:39 +0000 (14:32 -0400)] 
Merge remote-tracking branch 'mikeperry/bug25505'

7 years agoMerge remote-tracking branch 'tor-github/pr/312'
Nick Mathewson [Tue, 11 Sep 2018 18:05:16 +0000 (14:05 -0400)] 
Merge remote-tracking branch 'tor-github/pr/312'

7 years agoMerge remote-tracking branch 'onionk/doublevote1'
Nick Mathewson [Tue, 11 Sep 2018 17:16:49 +0000 (13:16 -0400)] 
Merge remote-tracking branch 'onionk/doublevote1'

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 11 Sep 2018 17:09:21 +0000 (13:09 -0400)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Tue, 11 Sep 2018 17:09:21 +0000 (13:09 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Tue, 11 Sep 2018 17:09:21 +0000 (13:09 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Tue, 11 Sep 2018 17:09:21 +0000 (13:09 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

7 years agoMerge remote-tracking branch 'teor/ticket27252-034' into maint-0.3.4
Nick Mathewson [Tue, 11 Sep 2018 17:09:18 +0000 (13:09 -0400)] 
Merge remote-tracking branch 'teor/ticket27252-034' into maint-0.3.4

7 years agoMerge remote-tracking branch 'teor/ticket27252-033' into maint-0.3.3
Nick Mathewson [Tue, 11 Sep 2018 17:09:09 +0000 (13:09 -0400)] 
Merge remote-tracking branch 'teor/ticket27252-033' into maint-0.3.3

7 years agoMerge remote-tracking branch 'teor/ticket27252-032' into maint-0.3.2
Nick Mathewson [Tue, 11 Sep 2018 17:09:04 +0000 (13:09 -0400)] 
Merge remote-tracking branch 'teor/ticket27252-032' into maint-0.3.2

7 years agoMerge remote-tracking branch 'teor/ticket27252-029' into maint-0.2.9
Nick Mathewson [Tue, 11 Sep 2018 17:08:57 +0000 (13:08 -0400)] 
Merge remote-tracking branch 'teor/ticket27252-029' into maint-0.2.9

7 years agoMerge remote-tracking branch 'tor-github/pr/313'
Nick Mathewson [Tue, 11 Sep 2018 16:23:21 +0000 (12:23 -0400)] 
Merge remote-tracking branch 'tor-github/pr/313'

7 years agoMerge remote-tracking branch 'tor-github/pr/314'
Nick Mathewson [Tue, 11 Sep 2018 16:19:13 +0000 (12:19 -0400)] 
Merge remote-tracking branch 'tor-github/pr/314'

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 11 Sep 2018 16:04:56 +0000 (12:04 -0400)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Tue, 11 Sep 2018 16:04:56 +0000 (12:04 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Tue, 11 Sep 2018 16:04:56 +0000 (12:04 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Tue, 11 Sep 2018 16:04:55 +0000 (12:04 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

7 years agohs-v3: Shuffle the list of authorized clients
Suphanat Chunhapanya [Fri, 7 Sep 2018 14:29:44 +0000 (21:29 +0700)] 
hs-v3: Shuffle the list of authorized clients

This commit makes it that the authorized clients in the descriptor are in
random order instead of ordered by how they were read on disk.

Fixes #27545

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoInitialize 't' in ge25519_scalarmult_base_niels()
Nick Mathewson [Tue, 11 Sep 2018 14:35:18 +0000 (10:35 -0400)] 
Initialize 't' in ge25519_scalarmult_base_niels()

OSS-Fuzz's version of memorysanitizer can't tell that this value is
not going to be used unsafely.

7 years agoUpdate geoip and geoip6 to the September 6 2018 database.
Karsten Loesing [Tue, 11 Sep 2018 07:26:59 +0000 (09:26 +0200)] 
Update geoip and geoip6 to the September 6 2018 database.

7 years agoDefer reporting directory bootstrap progress
Taylor Yu [Fri, 31 Aug 2018 17:56:23 +0000 (12:56 -0500)] 
Defer reporting directory bootstrap progress

Existing cached directory information can cause misleadingly high
bootstrap percentages.  To improve user experience, defer reporting of
directory information progress until at least one connection has
succeeded to a relay or bridge.

Closes ticket 27169.

7 years agoBugfix: sizeof(socklen) doesn't make sense when calling connect()
rl1987 [Mon, 10 Sep 2018 18:50:30 +0000 (21:50 +0300)] 
Bugfix: sizeof(socklen) doesn't make sense when calling connect()

Bugfix on 2f657a1416f2f81dd1be900269c4ae9bdb29f52d; bug not in
any Tor release.

7 years agoTrack bootstrap phase independently of progress
Taylor Yu [Fri, 31 Aug 2018 22:54:09 +0000 (17:54 -0500)] 
Track bootstrap phase independently of progress

Track bootstrap phase (enumerated by bootstrap_status_t) independently
from the bootstrap progress (which can represent intermediate
progress).  This allows control_event_bootstrap_problem() to avoid
doing a linear search through the bootstrap progress space to find the
current bootstrap phase.

7 years agoRefactor control_event_bootstrap_core() more
Taylor Yu [Tue, 28 Aug 2018 19:52:44 +0000 (14:52 -0500)] 
Refactor control_event_bootstrap_core() more

Eliminate a few conditional expressions in
control_event_bootstrap_core() by overwriting the status parameter.

7 years agoRefactor control_event_bootstrap() somewhat
Taylor Yu [Tue, 28 Aug 2018 19:31:51 +0000 (14:31 -0500)] 
Refactor control_event_bootstrap() somewhat

Move the mostly-invariant part of control_event_boostrap() into a
helper control_event_bootstrap_core().  The helper doesn't modify any
state beyond doing logging and control port notifications.

7 years agoDeindent much of control_event_bootstrap
Taylor Yu [Tue, 28 Aug 2018 19:18:10 +0000 (14:18 -0500)] 
Deindent much of control_event_bootstrap

7 years agoMake control_event_bootstrap() return void
Taylor Yu [Tue, 28 Aug 2018 18:30:58 +0000 (13:30 -0500)] 
Make control_event_bootstrap() return void

Simplify control_event_bootstrap() by making it return void again.  It
is currently a fairly complicated function, and it's made more
complicated by returning an int to signal whether it logged at NOTICE
or INFO.

The callers conditionally log messages at level NOTICE based on this
return value.  Change the callers to unconditionally log their verbose
human-readable messages at level INFO to keep NOTICE logs less
cluttered.

This partially reverts the changes of #14950.

7 years agotest: Fix coverity CID 1439129
David Goulet [Mon, 10 Sep 2018 14:28:35 +0000 (10:28 -0400)] 
test: Fix coverity CID 1439129

One HSv3 unit test used "tor_memeq()" without checking the return value. This
commit changes that to use "tt_mem_op()" to actually make the test validate
something :).

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agotest: Fix coverity CID 1439130
David Goulet [Mon, 10 Sep 2018 14:22:31 +0000 (10:22 -0400)] 
test: Fix coverity CID 1439130

Trivial fix of removing an uneeded NULL check in an HS v3 unit test.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agotest: Fix coverity CID 1439131
David Goulet [Mon, 10 Sep 2018 14:20:58 +0000 (10:20 -0400)] 
test: Fix coverity CID 1439131

Simple uninitialized object that we could free in an HS v3 unit test.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoCopy changelogs and releasenotes to master
Nick Mathewson [Mon, 10 Sep 2018 14:03:01 +0000 (10:03 -0400)] 
Copy changelogs and releasenotes to master

7 years agoAddress coverity warnings (CID 1439133/1439132).
George Kadianakis [Mon, 10 Sep 2018 13:47:28 +0000 (16:47 +0300)] 
Address coverity warnings (CID 1439133/1439132).

>>>>    CID 1439133:  Null pointer dereferences  (REVERSE_INULL)
>>>>    Null-checking "fields" suggests that it may be null, but it
>>>> has already been dereferenced on all paths leading to the check.

>>>>    CID 1439132:  Null pointer dereferences  (REVERSE_INULL)
>>>>    Null-checking "fields" suggests that it may be null, but it
>>>> has already been dereferenced on all paths leading to the check.

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Mon, 10 Sep 2018 13:42:50 +0000 (09:42 -0400)] 
Merge branch 'maint-0.3.4'

"ours" to avoid version bump.

7 years agoBump to 0.3.4.8-dev
Nick Mathewson [Mon, 10 Sep 2018 13:42:40 +0000 (09:42 -0400)] 
Bump to 0.3.4.8-dev

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Mon, 10 Sep 2018 13:42:22 +0000 (09:42 -0400)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

"ours" to avoid version bump.

7 years agoBump to 0.3.3.10-dev.
Nick Mathewson [Mon, 10 Sep 2018 13:42:12 +0000 (09:42 -0400)] 
Bump to 0.3.3.10-dev.

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Mon, 10 Sep 2018 13:41:55 +0000 (09:41 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

"ours" to avoid version bump.

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Mon, 10 Sep 2018 13:41:39 +0000 (09:41 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

"ours" to avoid version bump.

7 years agoBump to 0.3.2.12-dev
Nick Mathewson [Mon, 10 Sep 2018 13:41:34 +0000 (09:41 -0400)] 
Bump to 0.3.2.12-dev

7 years agoBump to 0.2.9.17-dev
Nick Mathewson [Mon, 10 Sep 2018 13:41:22 +0000 (09:41 -0400)] 
Bump to 0.2.9.17-dev

7 years agoCall event_set_mem_functions during initialization
rl1987 [Tue, 4 Sep 2018 18:39:11 +0000 (21:39 +0300)] 
Call event_set_mem_functions during initialization

7 years agoRefactor initialization in curve25519_basepoint_spot_check
Nick Mathewson [Sun, 9 Sep 2018 14:15:44 +0000 (10:15 -0400)] 
Refactor initialization in curve25519_basepoint_spot_check

This is an attempt to work around what I think may be a bug in
OSS-Fuzz, which thinks that uninitialized data might be passed to
the curve25519 functions.

7 years agomake ipv6-only config complaint clearer
Roger Dingledine [Sat, 8 Sep 2018 21:08:22 +0000 (17:08 -0400)] 
make ipv6-only config complaint clearer

(a relay operator hit this on #tor-relays and couldn't make sense
of it. i couldn't either until i went to go read the code.)

7 years agoMerge branch 'maint-0.3.4'
Nick Mathewson [Fri, 7 Sep 2018 19:14:03 +0000 (15:14 -0400)] 
Merge branch 'maint-0.3.4'

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 7 Sep 2018 19:12:27 +0000 (15:12 -0400)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

"ours" to avoid bump.

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Fri, 7 Sep 2018 19:12:09 +0000 (15:12 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

"ours" to avoid bump

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.2
Nick Mathewson [Fri, 7 Sep 2018 19:11:49 +0000 (15:11 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.2

"ours" to avoid bump

7 years agoBump to 0.3.3.10
Nick Mathewson [Fri, 7 Sep 2018 19:11:18 +0000 (15:11 -0400)] 
Bump to 0.3.3.10

7 years agoBump to 0.3.2.12
Nick Mathewson [Fri, 7 Sep 2018 19:11:07 +0000 (15:11 -0400)] 
Bump to 0.3.2.12

7 years agoBump to 0.2.9.17
Nick Mathewson [Fri, 7 Sep 2018 19:10:49 +0000 (15:10 -0400)] 
Bump to 0.2.9.17

7 years agoMerge remote-tracking branch 'dgoulet/ticket20700_035_03'
Nick Mathewson [Fri, 7 Sep 2018 19:03:32 +0000 (15:03 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket20700_035_03'

7 years agoHSv3: Don't assert when reading bad client-side privkeys.
George Kadianakis [Fri, 7 Sep 2018 15:06:44 +0000 (18:06 +0300)] 
HSv3: Don't assert when reading bad client-side privkeys.

7 years agoHSv3: Add subcredential in client auth KDF on the client-side.
George Kadianakis [Thu, 6 Sep 2018 13:25:31 +0000 (16:25 +0300)] 
HSv3: Add subcredential in client auth KDF on the client-side.

7 years agoHSv3: Add subcredential in client auth KDF on the service-side.
George Kadianakis [Thu, 6 Sep 2018 13:07:27 +0000 (16:07 +0300)] 
HSv3: Add subcredential in client auth KDF on the service-side.

Also update some client auth test vectors that broke...

7 years agohs-v3: Make hs_desc_build_fake_authorized_client() return an object
David Goulet [Wed, 5 Sep 2018 17:37:37 +0000 (13:37 -0400)] 
hs-v3: Make hs_desc_build_fake_authorized_client() return an object

Return a newly allocated fake client authorization object instead of taking
the object as a parameter.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agobug: Use PATH_SEPARATOR instead of slash
Suphanat Chunhapanya [Sun, 2 Sep 2018 20:19:24 +0000 (03:19 +0700)] 
bug: Use PATH_SEPARATOR instead of slash

In function get_fname_suffix, previously it uses /, but in fact it
should use PATH_SEPARATOR.

7 years agohs-v3: Improve v3 client authorization logging
David Goulet [Thu, 30 Aug 2018 13:16:48 +0000 (09:16 -0400)] 
hs-v3: Improve v3 client authorization logging

Part of #20700.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agohs-v3: Log client auth load activities client side
Suphanat Chunhapanya [Sun, 19 Aug 2018 12:47:46 +0000 (19:47 +0700)] 
hs-v3: Log client auth load activities client side

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agohs-v3: Log client auth load activities service side
Suphanat Chunhapanya [Sun, 19 Aug 2018 12:37:38 +0000 (19:37 +0700)] 
hs-v3: Log client auth load activities service side

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agohs-v3: Rename client_pk to client_auth_pk
Suphanat Chunhapanya [Mon, 21 May 2018 17:09:40 +0000 (00:09 +0700)] 
hs-v3: Rename client_pk to client_auth_pk

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agohs-v3: Rename client_sk to client_auth_sk
Suphanat Chunhapanya [Mon, 21 May 2018 17:01:52 +0000 (00:01 +0700)] 
hs-v3: Rename client_sk to client_auth_sk

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agotest: HS v3 client auth is config equal function
Suphanat Chunhapanya [Wed, 16 May 2018 14:57:24 +0000 (21:57 +0700)] 
test: HS v3 client auth is config equal function

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agohs-v3: Republish descriptors if client auth changes
Suphanat Chunhapanya [Wed, 9 May 2018 20:35:29 +0000 (03:35 +0700)] 
hs-v3: Republish descriptors if client auth changes

When reloading tor, check if our the configured client authorization have
changed from what we previously had. If so, republish the updated descriptor.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agohs-v3: Make all descriptor content free functions public
Suphanat Chunhapanya [Wed, 9 May 2018 20:14:01 +0000 (03:14 +0700)] 
hs-v3: Make all descriptor content free functions public

Series of functions that we now need in hs_service.c.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agohs-v3: Re-enable the decoding in the encoding function
Suphanat Chunhapanya [Sun, 22 Apr 2018 13:51:21 +0000 (20:51 +0700)] 
hs-v3: Re-enable the decoding in the encoding function

Previously, the validation by decoding a created descriptor was disabled
because the interface had to be entirely changed and not implemented at the
time.

This commit re-enabled it because it is now implemented.

Signed-off-by: David Goulet <dgoulet@torproject.org>