]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
4 years agoMerge remote-tracking branch 'tor-gitlab/mr/426'
Nick Mathewson [Tue, 7 Sep 2021 11:51:07 +0000 (07:51 -0400)] 
Merge remote-tracking branch 'tor-gitlab/mr/426'

4 years agoMerge branch 'tor-gitlab/mr/424'
David Goulet [Tue, 31 Aug 2021 15:08:18 +0000 (11:08 -0400)] 
Merge branch 'tor-gitlab/mr/424'

4 years agoImprove fname_is_c func in pratracker/includes.py
skaluzka [Sun, 29 Aug 2021 20:10:44 +0000 (22:10 +0200)] 
Improve fname_is_c func in pratracker/includes.py

Use tuples for bname.startswith and fname.endswith in "fname_is_c"
function.

4 years agoAdd spaces between the "and" when logging the "Your server has not managed to confirm...
Neel Chauhan [Thu, 26 Aug 2021 20:38:48 +0000 (13:38 -0700)] 
Add spaces between the "and" when logging the "Your server has not managed to confirm reachability for its" on dual-stack relays

4 years agoAdd reference implementation for ntor v3.
Nick Mathewson [Thu, 26 Aug 2021 16:07:09 +0000 (12:07 -0400)] 
Add reference implementation for ntor v3.

4 years agoInitial backend for an ntor-v3 implementation.
Nick Mathewson [Wed, 25 Aug 2021 14:40:33 +0000 (10:40 -0400)] 
Initial backend for an ntor-v3 implementation.

This code is based directly on the specification, without looking at
the reference implementation or the implementation in Arti.
Nonetheless, it is now passing with the test vectors generated by
the reference implementation.

4 years agoRemove changes files that have already been in changelogs for 0.4.6
Nick Mathewson [Thu, 26 Aug 2021 15:20:53 +0000 (11:20 -0400)] 
Remove changes files that have already been in changelogs for 0.4.6

4 years agoCorrect syntax & formatting in test_pratracker.sh
skaluzka [Sun, 22 Aug 2021 18:36:36 +0000 (20:36 +0200)] 
Correct syntax & formatting in test_pratracker.sh

Use 4 spaces for indentations.
Use the same syntax for all functions.
No real code changes (except removal of unnecessary ";" from
"exit 1" command).

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/420'
Nick Mathewson [Wed, 18 Aug 2021 12:43:31 +0000 (08:43 -0400)] 
Merge remote-tracking branch 'tor-gitlab/mr/420'

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/419'
Nick Mathewson [Wed, 18 Aug 2021 12:39:50 +0000 (08:39 -0400)] 
Merge remote-tracking branch 'tor-gitlab/mr/419'

4 years agodir: Do not flag non-running failing HSDir
David Goulet [Tue, 17 Aug 2021 16:43:58 +0000 (12:43 -0400)] 
dir: Do not flag non-running failing HSDir

When a directory request fails, we flag the relay as non Running so we
don't use it anymore.

This can be problematic with onion services because there are cases
where a tor instance could have a lot of services, ephemeral ones, and
keeps failing to upload descriptors, let say due to a bad network, and
thus flag a lot of nodes as non Running which then in turn can not be
used for circuit building.

This commit makes it that we never flag nodes as non Running on a onion
service directory request (upload or fetch) failure as to keep the
hashring intact and not affect other parts of tor.

Fortunately, the onion service hashring is _not_ selected by looking at
the Running flag but since we do a 3-hop circuit to the HSDir, other
services on the same instance can influence each other by removing nodes
from the consensus for path selection.

This was made apparent with a small network that ran out of nodes to
used due to rapid succession of onion services uploading and failing.
See #40434 for details.

Fixes #40434

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoForward merge the latest ChangeLog/ReleaseNotes
David Goulet [Mon, 16 Aug 2021 20:43:14 +0000 (16:43 -0400)] 
Forward merge the latest ChangeLog/ReleaseNotes

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.4.6'
David Goulet [Mon, 16 Aug 2021 20:34:49 +0000 (16:34 -0400)] 
Merge branch 'maint-0.4.6'

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Mon, 16 Aug 2021 20:34:39 +0000 (16:34 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agoBump version to -dev
David Goulet [Mon, 16 Aug 2021 20:34:33 +0000 (16:34 -0400)] 
Bump version to -dev

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Mon, 16 Aug 2021 20:34:19 +0000 (16:34 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

4 years agoBump version to -dev
David Goulet [Mon, 16 Aug 2021 20:34:10 +0000 (16:34 -0400)] 
Bump version to -dev

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoBump version to -dev
David Goulet [Mon, 16 Aug 2021 20:33:58 +0000 (16:33 -0400)] 
Bump version to -dev

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Mon, 16 Aug 2021 15:28:22 +0000 (15:28 +0000)] 
Merge branch 'maint-0.4.6' into main

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Mon, 16 Aug 2021 15:28:22 +0000 (15:28 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agoAlways teardown capture of logs in CAPTURE().
Alexander Færøy [Mon, 16 Aug 2021 15:27:38 +0000 (15:27 +0000)] 
Always teardown capture of logs in CAPTURE().

This will hopefully solve an issue where our gmtime related tests are
failing on 32-bit builds.

4 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Mon, 16 Aug 2021 13:58:32 +0000 (13:58 +0000)] 
Merge branch 'maint-0.4.6' into main

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Mon, 16 Aug 2021 13:58:32 +0000 (13:58 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Alexander Færøy [Mon, 16 Aug 2021 13:58:32 +0000 (13:58 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

4 years agoUse debian:buster instead of debian:stable for now.
Alexander Færøy [Mon, 16 Aug 2021 13:57:56 +0000 (13:57 +0000)] 
Use debian:buster instead of debian:stable for now.

4 years agoMerge branch 'maint-0.4.6'
Nick Mathewson [Mon, 16 Aug 2021 13:51:27 +0000 (09:51 -0400)] 
Merge branch 'maint-0.4.6'

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Nick Mathewson [Mon, 16 Aug 2021 13:51:27 +0000 (09:51 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agoDisable message checking for some 32-bit tests about timegm failure.
Nick Mathewson [Mon, 16 Aug 2021 13:46:56 +0000 (09:46 -0400)] 
Disable message checking for some 32-bit tests about timegm failure.

Since we merged 40383, we don't expect these to give the same
warning on every platform.

4 years agoMerge branch 'maint-0.4.6'
Nick Mathewson [Mon, 16 Aug 2021 12:21:15 +0000 (08:21 -0400)] 
Merge branch 'maint-0.4.6'

"ours" to avoid version bump.

4 years agoMake the version 0.4.6.7, not 0.4.6.7-dev.
Nick Mathewson [Mon, 16 Aug 2021 12:21:04 +0000 (08:21 -0400)] 
Make the version 0.4.6.7, not 0.4.6.7-dev.

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Nick Mathewson [Mon, 16 Aug 2021 12:19:17 +0000 (08:19 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

"ours" to avoid version bump

4 years agoMake the version 0.4.5.10, not 0.4.5.10-dev.
Nick Mathewson [Mon, 16 Aug 2021 12:18:57 +0000 (08:18 -0400)] 
Make the version 0.4.5.10, not 0.4.5.10-dev.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Nick Mathewson [Mon, 16 Aug 2021 12:18:09 +0000 (08:18 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

"ours" to avoid version bump

4 years agoMake the version 0.3.6.16, not 0.3.6.16-dev.
Nick Mathewson [Mon, 16 Aug 2021 12:17:59 +0000 (08:17 -0400)] 
Make the version 0.3.6.16, not 0.3.6.16-dev.

4 years agoUpdate combine_libs script
skaluzka [Sat, 14 Aug 2021 19:45:44 +0000 (21:45 +0200)] 
Update combine_libs script

Remove commented code from production.
Align indentations to 4 spaces.

4 years agoMerge branch 'maint-0.4.6'
David Goulet [Fri, 13 Aug 2021 13:46:48 +0000 (09:46 -0400)] 
Merge branch 'maint-0.4.6'

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Fri, 13 Aug 2021 13:46:31 +0000 (09:46 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Fri, 13 Aug 2021 13:44:53 +0000 (09:44 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

4 years agoUpdate version to 0.3.5.16
David Goulet [Fri, 13 Aug 2021 13:43:44 +0000 (09:43 -0400)] 
Update version to 0.3.5.16

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoUpdate version to 0.4.5.10
David Goulet [Fri, 13 Aug 2021 13:42:52 +0000 (09:42 -0400)] 
Update version to 0.4.5.10

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoUpdate version to 0.4.6.7
David Goulet [Fri, 13 Aug 2021 13:42:26 +0000 (09:42 -0400)] 
Update version to 0.4.6.7

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.4.6'
David Goulet [Thu, 12 Aug 2021 16:13:26 +0000 (12:13 -0400)] 
Merge branch 'maint-0.4.6'

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
David Goulet [Thu, 12 Aug 2021 16:13:26 +0000 (12:13 -0400)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
David Goulet [Thu, 12 Aug 2021 16:13:25 +0000 (12:13 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

4 years agoUpdate GeoIP files to match IPFire location DB as per 2021/08/12.
Alexander Færøy [Thu, 12 Aug 2021 15:36:52 +0000 (15:36 +0000)] 
Update GeoIP files to match IPFire location DB as per 2021/08/12.

4 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Wed, 11 Aug 2021 13:15:59 +0000 (13:15 +0000)] 
Merge branch 'maint-0.4.6' into main

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Wed, 11 Aug 2021 13:15:59 +0000 (13:15 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Alexander Færøy [Wed, 11 Aug 2021 13:15:58 +0000 (13:15 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/417' into maint-0.3.5
Alexander Færøy [Wed, 11 Aug 2021 13:15:35 +0000 (13:15 +0000)] 
Merge remote-tracking branch 'tor-gitlab/mr/417' into maint-0.3.5

4 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Wed, 11 Aug 2021 13:14:26 +0000 (13:14 +0000)] 
Merge branch 'maint-0.4.6' into main

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Wed, 11 Aug 2021 13:14:26 +0000 (13:14 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Alexander Færøy [Wed, 11 Aug 2021 13:14:26 +0000 (13:14 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

4 years agoDisable ed25519-donna's batch verification.
George Kadianakis [Fri, 30 Jul 2021 13:35:48 +0000 (16:35 +0300)] 
Disable ed25519-donna's batch verification.

Fixes bug 40078.

As reported by hdevalence our batch verification logic can cause an assert
crash.

The assert happens because when the batch verification of ed25519-donna fails,
the code in `ed25519_checksig_batch()` falls back to doing a single
verification for each signature.

The crash occurs because batch verification failed, but then all signatures
individually verified just fine.

That's because batch verification and single verification use a different
equation which means that there are sigs that can pass single verification
but fail batch verification.

Fixing this would require modding ed25519-donna which is not in scope for
this ticket, and will be soon deprecated in favor of arti and
ed25519-dalek, so my branch instead removes batch verification.

4 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Wed, 11 Aug 2021 13:07:46 +0000 (13:07 +0000)] 
Merge branch 'maint-0.4.6' into main

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Wed, 11 Aug 2021 13:07:46 +0000 (13:07 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agofallbackdir: Regenerate list
David Goulet [Wed, 11 Aug 2021 13:04:40 +0000 (09:04 -0400)] 
fallbackdir: Regenerate list

New list for all stable releases.

Closes #40447

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.3.5' into maint-0.4.5
Alexander Færøy [Wed, 11 Aug 2021 13:06:12 +0000 (13:06 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.5

4 years agorelay: Reduce streaming compression ratio from HIGH to LOW
David Goulet [Thu, 18 Feb 2021 17:49:33 +0000 (12:49 -0500)] 
relay: Reduce streaming compression ratio from HIGH to LOW

Fixes #40301

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.4.6' into main
Alexander Færøy [Wed, 11 Aug 2021 12:48:04 +0000 (12:48 +0000)] 
Merge branch 'maint-0.4.6' into main

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
Alexander Færøy [Wed, 11 Aug 2021 12:48:04 +0000 (12:48 +0000)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agorelay: Reduce streaming compression ratio from HIGH to LOW
David Goulet [Thu, 18 Feb 2021 17:49:33 +0000 (12:49 -0500)] 
relay: Reduce streaming compression ratio from HIGH to LOW

Fixes #40301

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMake inbuf and outbuf len check params const
Mike Perry [Tue, 20 Jul 2021 18:30:23 +0000 (18:30 +0000)] 
Make inbuf and outbuf len check params const

4 years agoMAKEFILE: include new CC algs in makefile
Mike Perry [Fri, 11 Jun 2021 23:52:06 +0000 (23:52 +0000)] 
MAKEFILE: include new CC algs in makefile

4 years agoTOR_NOLA: Implement a pure BDP tracking CC alg
Mike Perry [Fri, 11 Jun 2021 23:50:37 +0000 (23:50 +0000)] 
TOR_NOLA: Implement a pure BDP tracking CC alg

How come no one ever named a congestion control algorithm after New Orleans?

4 years agoTOR_VEGAS: Implement Prop#324 TOR_VEGAS.
Mike Perry [Fri, 11 Jun 2021 23:50:09 +0000 (23:50 +0000)] 
TOR_VEGAS: Implement Prop#324 TOR_VEGAS.

4 years agoTOR_WESTWOOD: Implement Prop#324 TOR_WESTWOOD
Mike Perry [Sun, 13 Jun 2021 02:20:00 +0000 (02:20 +0000)] 
TOR_WESTWOOD: Implement Prop#324 TOR_WESTWOOD

4 years agoProp#324: Free congestion control object on circ and cpath
Mike Perry [Sat, 3 Jul 2021 06:03:52 +0000 (06:03 +0000)] 
Prop#324: Free congestion control object on circ and cpath

4 years agoProp#324: Hook up CC window checks for relay cell packaging
Mike Perry [Fri, 11 Jun 2021 23:53:59 +0000 (23:53 +0000)] 
Prop#324: Hook up CC window checks for relay cell packaging

4 years agoProp#324: Hook up CC algs to main sendme callpoints
Mike Perry [Fri, 9 Jul 2021 22:10:21 +0000 (22:10 +0000)] 
Prop#324: Hook up CC algs to main sendme callpoints

4 years agoProp#324: Add congestion control state to structs
Mike Perry [Thu, 10 Jun 2021 23:10:15 +0000 (23:10 +0000)] 
Prop#324: Add congestion control state to structs

4 years agoProp#324: Common RTT, BDP, and blocked channel signal support
Mike Perry [Thu, 10 Jun 2021 23:08:24 +0000 (23:08 +0000)] 
Prop#324: Common RTT, BDP, and blocked channel signal support

4 years agoMerge branch 'vanguards-lite-dev-rebased'
George Kadianakis [Wed, 28 Jul 2021 09:00:37 +0000 (12:00 +0300)] 
Merge branch 'vanguards-lite-dev-rebased'

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/412'
Nick Mathewson [Fri, 23 Jul 2021 19:06:06 +0000 (15:06 -0400)] 
Merge remote-tracking branch 'tor-gitlab/mr/412'

4 years agoCorrect another ReleasingTor.md issue
Nick Mathewson [Fri, 23 Jul 2021 18:50:23 +0000 (14:50 -0400)] 
Correct another ReleasingTor.md issue

4 years agoUpdate ReleasingTor.md to reflect current practice
Nick Mathewson [Fri, 23 Jul 2021 18:47:49 +0000 (14:47 -0400)] 
Update ReleasingTor.md to reflect current practice

4 years agocircpad: Be smarter on when to send back STOP cells.
George Kadianakis [Thu, 22 Jul 2021 12:02:13 +0000 (15:02 +0300)] 
circpad: Be smarter on when to send back STOP cells.

4 years agoUpdate changes file with the new proposal number #333.
George Kadianakis [Wed, 21 Jul 2021 09:43:52 +0000 (12:43 +0300)] 
Update changes file with the new proposal number #333.

4 years agoIncrease frequency of vg-lite callback to 15 minutes
George Kadianakis [Tue, 20 Jul 2021 10:03:32 +0000 (13:03 +0300)] 
Increase frequency of vg-lite callback to 15 minutes

4 years agoRemove some needless includes
Nick Mathewson [Mon, 12 Jul 2021 19:53:56 +0000 (15:53 -0400)] 
Remove some needless includes

4 years agoRemove fuzz_hexdigest.c: It is already covered by other fuzzers
Nick Mathewson [Mon, 12 Jul 2021 19:42:32 +0000 (15:42 -0400)] 
Remove fuzz_hexdigest.c: It is already covered by other fuzzers

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/407'
Nick Mathewson [Mon, 12 Jul 2021 19:41:12 +0000 (15:41 -0400)] 
Merge remote-tracking branch 'tor-gitlab/mr/407'

4 years agotest_hs_ob: initialize pointers to NULL
Nick Mathewson [Mon, 12 Jul 2021 18:59:29 +0000 (14:59 -0400)] 
test_hs_ob: initialize pointers to NULL

This is an attempt to fix CID 1486280, where coverity warns us that,
if the tests failed, we might free() an uninitialized pointer.

4 years agotest_hs_control: initialize pointers to NULL
Nick Mathewson [Mon, 12 Jul 2021 18:59:29 +0000 (14:59 -0400)] 
test_hs_control: initialize pointers to NULL

This is an attempt to fix CID 1486276, where coverity warns us that,
if the tests failed, we might free() an uninitialized pointer.

4 years agoAdd stricter limits to the number of L2 nodes
George Kadianakis [Mon, 12 Jul 2021 09:10:43 +0000 (12:10 +0300)] 
Add stricter limits to the number of L2 nodes

4 years agoAdd a switch to toggle the feature on/off
George Kadianakis [Mon, 12 Jul 2021 08:45:31 +0000 (11:45 +0300)] 
Add a switch to toggle the feature on/off

4 years agoService intro circuits are now 4-hop to avoid linkability by intro
George Kadianakis [Mon, 12 Jul 2021 08:23:00 +0000 (11:23 +0300)] 
Service intro circuits are now 4-hop to avoid linkability by intro

Now the circuits look like this:

 client rend:   C -> G -> L2 -> Rend
 client intro:  C -> G -> L2 -> M -> Intro
 client hsdir:  C -> G -> L2 -> M -> HSDir
 service rend:  C -> G -> L2 -> M -> Rend
 service intro: C -> G -> L2 -> M -> Intro
 service hsdir: C -> G -> L2 -> M -> HSDir

4 years agoAdd layer2_guard_free()
George Kadianakis [Fri, 9 Jul 2021 13:54:24 +0000 (16:54 +0300)] 
Add layer2_guard_free()

4 years agoDon't double-pick L2 nodes
George Kadianakis [Fri, 9 Jul 2021 13:48:26 +0000 (16:48 +0300)] 
Don't double-pick L2 nodes

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/410'
Nick Mathewson [Thu, 8 Jul 2021 18:17:54 +0000 (14:17 -0400)] 
Merge remote-tracking branch 'tor-gitlab/mr/410'

4 years agoMerge branch 'maint-0.4.6'
George Kadianakis [Wed, 7 Jul 2021 10:04:39 +0000 (13:04 +0300)] 
Merge branch 'maint-0.4.6'

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/406' into maint-0.4.6
George Kadianakis [Wed, 7 Jul 2021 10:04:24 +0000 (13:04 +0300)] 
Merge remote-tracking branch 'tor-gitlab/mr/406' into maint-0.4.6

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/406'
George Kadianakis [Wed, 7 Jul 2021 10:02:11 +0000 (13:02 +0300)] 
Merge remote-tracking branch 'tor-gitlab/mr/406'

4 years agoUpdate torrc to encourage use of BridgeDistribution
Cecylia Bocovich [Tue, 6 Jul 2021 17:09:24 +0000 (13:09 -0400)] 
Update torrc to encourage use of BridgeDistribution

Bridge operators should generally publish their descriptors except for
rare cases, and instead use the BridgeDistribution none setting to
prevent their bridge from being distributed by BridgeDB.

4 years agoMerge branch 'maint-0.4.6'
George Kadianakis [Tue, 6 Jul 2021 10:52:16 +0000 (13:52 +0300)] 
Merge branch 'maint-0.4.6'

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
George Kadianakis [Tue, 6 Jul 2021 10:52:15 +0000 (13:52 +0300)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/409' into maint-0.4.5
George Kadianakis [Tue, 6 Jul 2021 10:51:58 +0000 (13:51 +0300)] 
Merge remote-tracking branch 'tor-gitlab/mr/409' into maint-0.4.5

4 years agoMerge branch 'maint-0.4.6'
George Kadianakis [Tue, 6 Jul 2021 10:42:53 +0000 (13:42 +0300)] 
Merge branch 'maint-0.4.6'

4 years agoMerge branch 'maint-0.4.5' into maint-0.4.6
George Kadianakis [Tue, 6 Jul 2021 10:42:53 +0000 (13:42 +0300)] 
Merge branch 'maint-0.4.5' into maint-0.4.6

4 years agoMerge branch 'mr/395' into maint-0.4.5
George Kadianakis [Tue, 6 Jul 2021 10:42:29 +0000 (13:42 +0300)] 
Merge branch 'mr/395' into maint-0.4.5

4 years agoUse native timegm when available.
Nick Mathewson [Tue, 1 Jun 2021 20:18:23 +0000 (16:18 -0400)] 
Use native timegm when available.

Continue having a tor_gmtime_impl() unit test so that we can detect
any problems in our replacement function; add a new test function to
make sure that gmtime<->timegm are a round-trip on now-ish times.

This is a fix for bug #40383, wherein we ran into trouble because
tor_timegm() does not believe that time_t should include a count of
leap seconds, but FreeBSD's gmtime believes that it should.  This
disagreement meant that for a certain amount of time each day,
instead of calculating the most recent midnight, our voting-schedule
functions would calculate the second-most-recent midnight, and lead
to an assertion failure.

I am calling this a bugfix on 0.2.0.3-alpha when we first started
calculating our voting schedule in this way.