]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
6 years agocorrect bug number in 29042 changelog
Nick Mathewson [Tue, 22 Jan 2019 17:27:46 +0000 (12:27 -0500)] 
correct bug number in 29042 changelog

6 years agoMerge branch 'bug29042_035' into maint-0.3.5
Nick Mathewson [Tue, 22 Jan 2019 16:55:53 +0000 (11:55 -0500)] 
Merge branch 'bug29042_035' into maint-0.3.5

6 years agoMerge branch 'bug28979_035' into maint-0.3.5
Nick Mathewson [Tue, 22 Jan 2019 13:04:52 +0000 (08:04 -0500)] 
Merge branch 'bug28979_035' into maint-0.3.5

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Fri, 18 Jan 2019 17:25:08 +0000 (12:25 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

6 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 18 Jan 2019 17:25:08 +0000 (12:25 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

6 years agoMerge branch 'maint-0.2.9' into maint-0.3.3
Nick Mathewson [Fri, 18 Jan 2019 17:25:08 +0000 (12:25 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.3

6 years agoFix documentation for ClientAuth on HSv3.
Nick Mathewson [Wed, 16 Jan 2019 21:05:54 +0000 (16:05 -0500)] 
Fix documentation for ClientAuth on HSv3.

The manpage erroneously said "privkey" when "public-key" would have
been correct.  Reported by "Felixix" as ticket 28979. Bugfix on
0.3.5.1-alpha.

6 years agoAdd changes file for bug 28981
Kris Katterjohn [Tue, 15 Jan 2019 20:55:55 +0000 (14:55 -0600)] 
Add changes file for bug 28981

The fix was in commit 61636ad989de674698601284957dacde53cc4984.

Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
6 years agoUpdate and fix a couple of comments in meminfo.c
Kris Katterjohn [Thu, 3 Jan 2019 23:24:26 +0000 (17:24 -0600)] 
Update and fix a couple of comments in meminfo.c

This fixes a typo and also notes that HW_PHYSMEM64 is defined on
NetBSD (not just OpenBSD).

Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
6 years agoUse HW_PHYSMEM instead of HW_USERMEM in get_total_system_memory_impl
Kris Katterjohn [Thu, 3 Jan 2019 23:19:46 +0000 (17:19 -0600)] 
Use HW_PHYSMEM instead of HW_USERMEM in get_total_system_memory_impl

The code checked for sysctl being available and HW_PHYSMEM being
defined, but HW_USERMEM was actually being used with sysctl instead
of HW_PHYSMEM.

The case for OpenBSD, etc. use HW_PHYSMEM64 (which is obviously a
64-bit variant of HW_PHYSMEM) and the case for OSX uses HW_MEMSIZE
(which appears to be a 64-bit variant of HW_PHYSMEM).

Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
6 years agoLog more messages when failing to decode RSA keys
Nick Mathewson [Wed, 16 Jan 2019 19:33:40 +0000 (14:33 -0500)] 
Log more messages when failing to decode RSA keys

We log these messages at INFO level, except when we are reading a
private key from a file, in which case we log at WARN.

This fixes a regression from when we re-wrote our PEM code to be
generic between nss and openssl.

Fixes bug 29042, bugfix on 0.3.5.1-alpha.

6 years agoBump copyright date to 2019.
Nick Mathewson [Wed, 16 Jan 2019 17:32:32 +0000 (12:32 -0500)] 
Bump copyright date to 2019.

6 years agoRework rep_hist_log_link_protocol_counts()
rl1987 [Sun, 23 Dec 2018 18:55:14 +0000 (20:55 +0200)] 
Rework rep_hist_log_link_protocol_counts()

6 years agoMerge remote-tracking branch 'tor-github/pr/563' into maint-0.3.5
Nick Mathewson [Fri, 11 Jan 2019 23:53:18 +0000 (18:53 -0500)] 
Merge remote-tracking branch 'tor-github/pr/563' into maint-0.3.5

6 years agorend: stop warning when clients send multiple rend establish cells
teor [Wed, 9 Jan 2019 08:00:34 +0000 (18:00 +1000)] 
rend: stop warning when clients send multiple rend establish cells

Stop logging "Tried to establish rendezvous on non-OR circuit..." as
a warning. Instead, log it as a protocol warning, because there is
nothing that relay operators can do to fix it.

Fixes bug 29029; bugfix on 0.2.5.7-rc.

6 years agoMerge remote-tracking branch 'tor-github/pr/636' into maint-0.3.5
Nick Mathewson [Wed, 9 Jan 2019 14:38:22 +0000 (09:38 -0500)] 
Merge remote-tracking branch 'tor-github/pr/636' into maint-0.3.5

6 years agoStop logging 'Your Guard' in circpathbias.c
rl1987 [Sun, 23 Dec 2018 17:21:37 +0000 (19:21 +0200)] 
Stop logging 'Your Guard' in circpathbias.c

6 years agoAdd changes file for bug 28938
Kris Katterjohn [Tue, 8 Jan 2019 02:01:52 +0000 (20:01 -0600)] 
Add changes file for bug 28938

The fix was in commit 30b84adb5f0b6e56d0fb82c374e3cb44089f64d0.

Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
6 years agoFix (and make consistent) the use of OpenBSD preprocessor macro tests
Kris Katterjohn [Sun, 23 Dec 2018 20:51:45 +0000 (14:51 -0600)] 
Fix (and make consistent) the use of OpenBSD preprocessor macro tests

Prior to this commit, the testsuite was failing on OpenBSD.  After
this commit the testsuite runs fine on OpenBSD.

It was previously decided to test for the OpenBSD macro (rather than
__OpenBSD__, etc.) because OpenBSD forks seem to have the former
macro defined.  sys/param.h must be included for the OpenBSD macro
definition; however, many files tested for the OpenBSD macro without
having this header included.

This commit includes sys/param.h in the files where the OpenBSD macro
is used (and sys/param.h is not already included), and it also
changes some instances of the __OpenBSD__ macro to OpenBSD.

See commit 27df23abb675ffeb198bf0c1cc85c4baed77a988 which changed
everything to use OpenBSD instead of __OpenBSD__ or OPENBSD.  See
also tickets #6982 and #20980 (the latter ticket is where it was
decided to use the OpenBSD macro).

Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
6 years agoUpdate to 0.3.5.7-dev
Nick Mathewson [Tue, 8 Jan 2019 02:18:25 +0000 (21:18 -0500)] 
Update to 0.3.5.7-dev

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Tue, 8 Jan 2019 02:17:46 +0000 (21:17 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

"ours" to avoid version bump

6 years agoUpdate to 0.3.4.10-dev
Nick Mathewson [Tue, 8 Jan 2019 02:17:34 +0000 (21:17 -0500)] 
Update to 0.3.4.10-dev

6 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 8 Jan 2019 02:16:56 +0000 (21:16 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

"Ours" to avoid version bump.

6 years agoUpdate to 0.3.3.3.11-dev
Nick Mathewson [Tue, 8 Jan 2019 02:16:40 +0000 (21:16 -0500)] 
Update to 0.3.3.3.11-dev

6 years agoFix tor_ersatz_socketpair on IPv6-only systems
Kris Katterjohn [Mon, 7 Jan 2019 23:28:21 +0000 (17:28 -0600)] 
Fix tor_ersatz_socketpair on IPv6-only systems

In get_local_listener used by tor_ersatz_socketpair, the address
family used when binding the IPv6 socket was AF_INET instead of
AF_INET6.

Fixes bug 28995; bugfix on 0.3.5.1-alpha.

Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
6 years agoBump version to 0.3.5.7
Nick Mathewson [Mon, 7 Jan 2019 15:23:21 +0000 (10:23 -0500)] 
Bump version to 0.3.5.7

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Mon, 7 Jan 2019 15:22:47 +0000 (10:22 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

"ours" to avoid version bump.

6 years agoBump to 0.3.4.10
Nick Mathewson [Mon, 7 Jan 2019 15:22:42 +0000 (10:22 -0500)] 
Bump to 0.3.4.10

6 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Mon, 7 Jan 2019 15:22:13 +0000 (10:22 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

"ours" merge to avoid version bump.

6 years agoBump to 0.3.3.11
Nick Mathewson [Mon, 7 Jan 2019 15:21:59 +0000 (10:21 -0500)] 
Bump to 0.3.3.11

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Mon, 7 Jan 2019 13:43:46 +0000 (08:43 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

6 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Mon, 7 Jan 2019 13:43:45 +0000 (08:43 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

6 years agoMerge branch 'maint-0.2.9' into maint-0.3.3
Nick Mathewson [Mon, 7 Jan 2019 13:43:45 +0000 (08:43 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.3

6 years agoUpdate geoip and geoip6 to the January 3 2019 database.
Karsten Loesing [Mon, 7 Jan 2019 08:00:29 +0000 (09:00 +0100)] 
Update geoip and geoip6 to the January 3 2019 database.

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Fri, 4 Jan 2019 20:04:58 +0000 (15:04 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

6 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 4 Jan 2019 20:04:58 +0000 (15:04 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

6 years agoMerge branch 'maint-0.2.9' into maint-0.3.3
Nick Mathewson [Fri, 4 Jan 2019 20:04:58 +0000 (15:04 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.3

6 years agoMerge branch 'bug21394_029_redux' into maint-0.2.9
Nick Mathewson [Fri, 4 Jan 2019 20:04:54 +0000 (15:04 -0500)] 
Merge branch 'bug21394_029_redux' into maint-0.2.9

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Fri, 4 Jan 2019 19:57:06 +0000 (14:57 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

6 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Fri, 4 Jan 2019 19:57:06 +0000 (14:57 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

6 years agoMerge remote-tracking branch 'dgoulet/ticket28619_033_01' into maint-0.3.3
Nick Mathewson [Fri, 4 Jan 2019 19:49:16 +0000 (14:49 -0500)] 
Merge remote-tracking branch 'dgoulet/ticket28619_033_01' into maint-0.3.3

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Fri, 4 Jan 2019 19:36:02 +0000 (14:36 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

6 years agoMerge branch 'ticket27750_034_01_squashed' into maint-0.3.4
Nick Mathewson [Fri, 4 Jan 2019 19:34:38 +0000 (14:34 -0500)] 
Merge branch 'ticket27750_034_01_squashed' into maint-0.3.4

6 years agoMerge branch 'ticket28879' into maint-0.3.5
Nick Mathewson [Fri, 4 Jan 2019 02:34:35 +0000 (21:34 -0500)] 
Merge branch 'ticket28879' into maint-0.3.5

6 years agoMerge branch 'ticket28851_035_squashed' into maint-0.3.5
Nick Mathewson [Thu, 3 Jan 2019 14:45:53 +0000 (09:45 -0500)] 
Merge branch 'ticket28851_035_squashed' into maint-0.3.5

6 years agoStop re-checking our hardcoded dh parameters on every startup
Nick Mathewson [Fri, 14 Dec 2018 19:07:00 +0000 (14:07 -0500)] 
Stop re-checking our hardcoded dh parameters on every startup

Closes ticket 28851.

6 years agoMerge remote-tracking branch 'public/ticket28838_035' into maint-0.3.5
Nick Mathewson [Thu, 3 Jan 2019 14:44:10 +0000 (09:44 -0500)] 
Merge remote-tracking branch 'public/ticket28838_035' into maint-0.3.5

6 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 3 Jan 2019 14:02:39 +0000 (09:02 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Thu, 3 Jan 2019 14:02:39 +0000 (09:02 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

6 years agoMerge branch 'ticket28973_033_squashed' into maint-0.3.3
Nick Mathewson [Thu, 3 Jan 2019 14:01:40 +0000 (09:01 -0500)] 
Merge branch 'ticket28973_033_squashed' into maint-0.3.3

6 years agoDetect openssl bug 7712 and work around it.
Nick Mathewson [Wed, 2 Jan 2019 19:23:42 +0000 (14:23 -0500)] 
Detect openssl bug 7712 and work around it.

In theory it would be better to detect this bug in advance, but this
approach is much simpler, and therefore safer to backport.

This closes tor issue 28973.

6 years agoMerge branch 'bug28974_035' into maint-0.3.5
Nick Mathewson [Wed, 2 Jan 2019 21:15:34 +0000 (16:15 -0500)] 
Merge branch 'bug28974_035' into maint-0.3.5

6 years agoticket 28924 deserves a changes file. I made one, but I guess I forgot to git add
Nick Mathewson [Wed, 2 Jan 2019 21:09:10 +0000 (16:09 -0500)] 
ticket 28924 deserves a changes file. I made one, but I guess I forgot to git add

6 years agoAdd an errno.h include to freespace.c to fix bug 28974.
Nick Mathewson [Wed, 2 Jan 2019 20:19:52 +0000 (15:19 -0500)] 
Add an errno.h include to freespace.c to fix bug 28974.

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Fri, 21 Dec 2018 20:42:57 +0000 (15:42 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

6 years agomainloop: Reactivate the linked connection event with a non empty list
David Goulet [Fri, 21 Dec 2018 16:17:45 +0000 (11:17 -0500)] 
mainloop: Reactivate the linked connection event with a non empty list

Linked connections aren't woken up by libevent due to I/O but rather
artificially so we can, by chunks, empty the spooled object(s).

Commit 5719dfb48f87a54aeb5982ff03345303bc058ebb (in 0.3.4.1-alpha) made it
that the schedule_active_linked_connections_event would be only called once at
startup but this is wrong because then we would never go through again the
active linked connections.

Fortunately, everytime a new linked connection is created, the event is
activated and thus we would go through the active list again. On a busy relay,
this issue is mitigated by that but on a slower relays or bridge, a connection
could get stuck for a while until a new directory information request would
show up.

Fixes #28717, #28912

6 years agoTry @warning_flags to avoid bloating verbose make logs
Nick Mathewson [Fri, 21 Dec 2018 14:49:33 +0000 (09:49 -0500)] 
Try @warning_flags to avoid bloating verbose make logs

We now accumulate warning flags in a separate variable,
"TOR_WARNING_FLAGS", and write it to a "warning_flags" file.  Then
we test whether the compiler will accept "@warning_flags": if so, we
put "@warning_flags" in the CFLAGS; if not, we copy the contents of
"$TOR_WARNING_FLAGS" into the CFLAGS.

Closes ticket 28924.

6 years agoMerge remote-tracking branch 'tor-github/pr/607' into maint-0.3.5
Nick Mathewson [Thu, 20 Dec 2018 12:49:59 +0000 (07:49 -0500)] 
Merge remote-tracking branch 'tor-github/pr/607' into maint-0.3.5

6 years agoStop running stem's unit tests as part of "make test-stem"
teor [Thu, 20 Dec 2018 03:01:18 +0000 (13:01 +1000)] 
Stop running stem's unit tests as part of "make test-stem"

But continue to run stem's unit and online tests during
"make test-stem-full".

Fixes bug 28568; bugfix on 0.2.6.3-alpha.

6 years agoMerge branch 'ticket28883_035' into maint-0.3.5
Nick Mathewson [Wed, 19 Dec 2018 20:36:03 +0000 (15:36 -0500)] 
Merge branch 'ticket28883_035' into maint-0.3.5

6 years agoMerge branch 'bug28612_squashed' into maint-0.3.5
Nick Mathewson [Tue, 18 Dec 2018 18:55:57 +0000 (13:55 -0500)] 
Merge branch 'bug28612_squashed' into maint-0.3.5

6 years agoCall run_tor_main_loop() in ntmain.c, rather than do_main_loop().
Nick Mathewson [Wed, 5 Dec 2018 15:31:43 +0000 (10:31 -0500)] 
Call run_tor_main_loop() in ntmain.c, rather than do_main_loop().

Fixes bug 28612; bugfix on 0.3.5.3-alpha.

6 years agoMerge branch 'ticket28881_035' into maint-0.3.5
Nick Mathewson [Tue, 18 Dec 2018 18:52:36 +0000 (13:52 -0500)] 
Merge branch 'ticket28881_035' into maint-0.3.5

6 years agoAlways initialize addr in parse_port_config()
Nick Mathewson [Mon, 17 Dec 2018 14:38:42 +0000 (09:38 -0500)] 
Always initialize addr in parse_port_config()

It was always analyzed before use, but scan-build wasn't able to
persuade itself of that.

Closes ticket 28881.

6 years agoBump version to 0.3.5.6-rc-dev
Nick Mathewson [Tue, 18 Dec 2018 18:33:49 +0000 (13:33 -0500)] 
Bump version to 0.3.5.6-rc-dev

6 years agoRevert "Log bootstrap tag names"
Nick Mathewson [Tue, 18 Dec 2018 13:09:43 +0000 (08:09 -0500)] 
Revert "Log bootstrap tag names"

This reverts commit 1b855af5e33189d70d74273af03a535c343b63a5.

6 years agoBump to 0.3.5.6-rc
Nick Mathewson [Tue, 18 Dec 2018 13:04:04 +0000 (08:04 -0500)] 
Bump to 0.3.5.6-rc

6 years agoChanges file for 28562
Nick Mathewson [Mon, 17 Dec 2018 15:57:47 +0000 (10:57 -0500)] 
Changes file for 28562

6 years agoCreate a temporary directory for tor's DataDirectory in test_rebind.
Taylor R Campbell [Thu, 22 Nov 2018 00:53:57 +0000 (00:53 +0000)] 
Create a temporary directory for tor's DataDirectory in test_rebind.

Fixes #28562.

While here, put the argument count test and usage message _before_ we
attempt to read from sys.argv.

6 years agotest_rebind: wait for tor to timeout, even if it is logging a lot
Nick Mathewson [Mon, 17 Dec 2018 14:53:17 +0000 (09:53 -0500)] 
test_rebind: wait for tor to timeout, even if it is logging a lot

Fixes bug 28883; bugfix on 0.3.5.4-alpha.

6 years agoCheck hostname before using it in send_resolved_hostname_cell()
Nick Mathewson [Mon, 17 Dec 2018 14:14:16 +0000 (09:14 -0500)] 
Check hostname before using it in send_resolved_hostname_cell()

Also, turn an absent hostname into a BUG(), not a crash.

Found by scan-build.

Closes ticket 28879; bugfix on 0.1.2.7-alpha

6 years agoMerge remote-tracking branch 'tlyu-github/ticket28731-035' into maint-0.3.5
Nick Mathewson [Thu, 13 Dec 2018 23:57:00 +0000 (18:57 -0500)] 
Merge remote-tracking branch 'tlyu-github/ticket28731-035' into maint-0.3.5

6 years agoLower the loop_max constant in curve25519_basepoint_spot_check()
Nick Mathewson [Thu, 13 Dec 2018 16:26:09 +0000 (11:26 -0500)] 
Lower the loop_max constant in curve25519_basepoint_spot_check()

The point of this function is to make sure that the ed25519-based
implementation of curve25519_basepoint() actually works when we
start tor, and use the regular fallback implementation if it
doesn't.  But it accounts for 9% of our startup time in the case
when we have directory information, and I think it's safe to make
the test shorter.  After all, it has yet to find any actual bugs in
curved25519_scalarmult_basepoint_donna() on any platforms.

Closes ticket 28838.

6 years agoMerge remote-tracking branch 'teor/bug28826-035' into maint-0.3.5
Nick Mathewson [Thu, 13 Dec 2018 13:22:01 +0000 (08:22 -0500)] 
Merge remote-tracking branch 'teor/bug28826-035' into maint-0.3.5

6 years agoAppveyor: Explain appveyor image names in the comments
teor [Wed, 12 Dec 2018 00:26:21 +0000 (10:26 +1000)] 
Appveyor: Explain appveyor image names in the comments

Appveyor images are named after the Visual Studio version they contain.
But we compile using MinGW, not Visual Studio.
We use these images because they have different Windows versions.

Closes bug 28826.

6 years agoMerge branch 'maint-0.2.9' into maint-0.3.3
Nick Mathewson [Tue, 11 Dec 2018 15:00:22 +0000 (10:00 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.3

6 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 11 Dec 2018 15:00:22 +0000 (10:00 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Tue, 11 Dec 2018 15:00:22 +0000 (10:00 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

6 years agoNote ticket number in changes file for 24803
Nick Mathewson [Tue, 11 Dec 2018 15:00:19 +0000 (10:00 -0500)] 
Note ticket number in changes file for 24803

6 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Tue, 11 Dec 2018 14:41:05 +0000 (09:41 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

6 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Tue, 11 Dec 2018 14:41:05 +0000 (09:41 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

6 years agoMerge branch 'maint-0.2.9' into maint-0.3.3
Nick Mathewson [Tue, 11 Dec 2018 14:41:04 +0000 (09:41 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.3

6 years agoLog bootstrap tag names
Taylor Yu [Mon, 10 Dec 2018 23:22:28 +0000 (17:22 -0600)] 
Log bootstrap tag names

Add the bootstrap tag name to the log messages, so people
troubleshooting connection problems can look up a symbol instead of a
number.  Closes ticket 28731.

6 years agoFallbacks: Update the hard-coded fallback list in December 2018
teor [Mon, 10 Dec 2018 06:56:29 +0000 (16:56 +1000)] 
Fallbacks: Update the hard-coded fallback list in December 2018

Merge Phoul's two lists into teor's list.

Replace the 150 fallbacks originally introduced in Tor 0.3.3.1-alpha in
January 2018 (of which ~115 were still functional), with a list of
157 fallbacks (92 new, 65 existing, 85 removed) generated in
December 2018.

Closes ticket 24803.

7 years agoFallbacks: Update the hard-coded fallback list in December 2018
teor [Fri, 7 Dec 2018 06:43:10 +0000 (16:43 +1000)] 
Fallbacks: Update the hard-coded fallback list in December 2018

Replace the 150 fallbacks originally introduced in Tor 0.3.3.1-alpha in
January 2018 (of which ~115 were still functional), with a list of
148 fallbacks (89 new, 59 existing, 91 removed) generated in
December 2018.

Closes ticket 24803.

7 years agoMerge branch 'maint-0.3.4' into maint-0.3.5
Nick Mathewson [Thu, 6 Dec 2018 14:26:33 +0000 (09:26 -0500)] 
Merge branch 'maint-0.3.4' into maint-0.3.5

7 years agoMerge branch 'maint-0.3.3' into maint-0.3.4
Nick Mathewson [Thu, 6 Dec 2018 14:26:32 +0000 (09:26 -0500)] 
Merge branch 'maint-0.3.3' into maint-0.3.4

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.3
Nick Mathewson [Thu, 6 Dec 2018 14:26:32 +0000 (09:26 -0500)] 
Merge branch 'maint-0.2.9' into maint-0.3.3

7 years agoUpdate geoip and geoip6 to the December 5 2018 database.
Karsten Loesing [Wed, 5 Dec 2018 20:02:39 +0000 (21:02 +0100)] 
Update geoip and geoip6 to the December 5 2018 database.

7 years agoMerge remote-tracking branch 'tor-github/pr/546' into maint-0.3.5
Nick Mathewson [Wed, 5 Dec 2018 15:23:28 +0000 (10:23 -0500)] 
Merge remote-tracking branch 'tor-github/pr/546' into maint-0.3.5

7 years agohs-v3: Don't BUG() if descriptor is found on SOCKS connection retry
David Goulet [Tue, 4 Dec 2018 19:27:46 +0000 (14:27 -0500)] 
hs-v3: Don't BUG() if descriptor is found on SOCKS connection retry

When retrying all SOCKS connection because new directory information just
arrived, do not BUG() if a connection in state AP_CONN_STATE_RENDDESC_WAIT is
found to have a usable descriptor.

There is a rare case when this can happen as detailed in #28669 so the right
thing to do is put that connection back in circuit wait state so the
descriptor can be retried.

Fixes #28669

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agohs-v3: Add the helper function mark_conn_as_waiting_for_circuit
David Goulet [Tue, 4 Dec 2018 19:18:23 +0000 (14:18 -0500)] 
hs-v3: Add the helper function mark_conn_as_waiting_for_circuit

This helper function marks an entry connection as pending for a circuit and
changes its state to AP_CONN_STATE_CIRCUIT_WAIT. The timestamps are set to
now() so it can be considered as new.

No behaviour change, this helper function will be used in next commit.

Part of #28669

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoconn: Use connection_ap_mark_as_waiting_for_renddesc()
David Goulet [Tue, 4 Dec 2018 19:09:15 +0000 (14:09 -0500)] 
conn: Use connection_ap_mark_as_waiting_for_renddesc()

Use the helper function connection_ap_mark_as_waiting_for_renddesc()
introduced in previous commit everywhere in the code where an AP connection
state is transitionned to AP_CONN_STATE_RENDDESC_WAIT.

Part of #28669

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoconn: Add an helper to mark a connection as waiting for an HS descriptor
David Goulet [Tue, 4 Dec 2018 19:00:08 +0000 (14:00 -0500)] 
conn: Add an helper to mark a connection as waiting for an HS descriptor

The transition for a connection to either become or go back in
AP_CONN_STATE_RENDDESC_WAIT state must make sure that the entry connection is
_not_ in the waiting for circuit list.

This commit implements the helper function
connection_ap_mark_as_waiting_for_renddesc() that removes the entry connection
from the pending list and then change its state. This code pattern is used in
many places in the code where next commit will remove this code duplication to
use this new helper function.

Part of #28669

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoman: Document HSv3 client authorization revocation
David Goulet [Mon, 3 Dec 2018 16:22:14 +0000 (11:22 -0500)] 
man: Document HSv3 client authorization revocation

Removing a ".auth" file revokes a client access to the service but the
rendezvous circuit is not closed service side because the service simply
doesn't know which circuit is for which client.

This commit notes in the man page that to fully revoke a client access to the
service, the tor process should be restarted.

Closes #28275

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge remote-tracking branch 'tor-github/pr/554' into maint-0.3.5
Nick Mathewson [Sat, 1 Dec 2018 16:26:52 +0000 (11:26 -0500)] 
Merge remote-tracking branch 'tor-github/pr/554' into maint-0.3.5

7 years agoMerge branch 'bug28229_diag_035' into maint-0.3.5
Nick Mathewson [Sat, 1 Dec 2018 16:20:04 +0000 (11:20 -0500)] 
Merge branch 'bug28229_diag_035' into maint-0.3.5

7 years agoAlso log a Tor log entry when it has a substring we are waiting for
rl1987 [Tue, 13 Nov 2018 09:38:51 +0000 (11:38 +0200)] 
Also log a Tor log entry when it has a substring we are waiting for

7 years ago1 ms. resolution for Tor logs
rl1987 [Tue, 13 Nov 2018 09:15:40 +0000 (11:15 +0200)] 
1 ms. resolution for Tor logs

7 years agoAdd changes file
rl1987 [Sun, 4 Nov 2018 17:10:40 +0000 (19:10 +0200)] 
Add changes file