]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agoMerge remote-tracking branch 'isis-github/bug26109'
Nick Mathewson [Wed, 16 May 2018 13:13:27 +0000 (09:13 -0400)] 
Merge remote-tracking branch 'isis-github/bug26109'

7 years agoreflow the blurb.
Nick Mathewson [Wed, 16 May 2018 13:06:43 +0000 (09:06 -0400)] 
reflow the blurb.

7 years agomove a changelog entry and try writing a blurb
Nick Mathewson [Wed, 16 May 2018 13:05:47 +0000 (09:05 -0400)] 
move a changelog entry and try writing a blurb

7 years agofix some changelog typos that Catalyst found.
Nick Mathewson [Tue, 15 May 2018 23:40:46 +0000 (19:40 -0400)] 
fix some changelog typos that Catalyst found.

7 years agovarious changelog edits
Nick Mathewson [Tue, 15 May 2018 19:06:43 +0000 (15:06 -0400)] 
various changelog edits

7 years agorust: Export digests subcrate from our crypto crate.
Isis Lovecruft [Tue, 15 May 2018 02:04:40 +0000 (02:04 +0000)] 
rust: Export digests subcrate from our crypto crate.

7 years agorun format-changelog
Nick Mathewson [Tue, 15 May 2018 16:34:12 +0000 (12:34 -0400)] 
run format-changelog

7 years agouse sortChanges to begin an 0.3.4.1-alpha changelog
Nick Mathewson [Tue, 15 May 2018 16:31:16 +0000 (12:31 -0400)] 
use sortChanges to begin an 0.3.4.1-alpha changelog

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Tue, 15 May 2018 13:32:45 +0000 (09:32 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Tue, 15 May 2018 13:32:44 +0000 (09:32 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Tue, 15 May 2018 13:32:44 +0000 (09:32 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Tue, 15 May 2018 13:32:44 +0000 (09:32 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoUpdate geoip and geoip6 to the May 1 2018 database.
Karsten Loesing [Tue, 15 May 2018 13:16:47 +0000 (15:16 +0200)] 
Update geoip and geoip6 to the May 1 2018 database.

7 years agoMerge branch 'bug25903_v5_squashed'
Nick Mathewson [Mon, 14 May 2018 18:25:07 +0000 (14:25 -0400)] 
Merge branch 'bug25903_v5_squashed'

7 years agoBug 25903: Tests
Mike Perry [Wed, 9 May 2018 04:00:59 +0000 (04:00 +0000)] 
Bug 25903: Tests

7 years agoUse router_get_my_routerinfo_with_err to implement the old version
Nick Mathewson [Mon, 14 May 2018 18:12:36 +0000 (14:12 -0400)] 
Use router_get_my_routerinfo_with_err to implement the old version

Having one function implemented in terms of the other should keep
them from diverging.

follow-up on #25852

7 years agoMerge remote-tracking branch 'rl1987/bug25852_take2'
Nick Mathewson [Mon, 14 May 2018 18:05:50 +0000 (14:05 -0400)] 
Merge remote-tracking branch 'rl1987/bug25852_take2'

7 years agoMerge remote-tracking branch 'catalyst-github/bug25756'
Nick Mathewson [Fri, 11 May 2018 22:15:43 +0000 (18:15 -0400)] 
Merge remote-tracking branch 'catalyst-github/bug25756'

7 years agoimprove a URL
Nick Mathewson [Fri, 11 May 2018 22:00:30 +0000 (18:00 -0400)] 
improve a URL

7 years agoMerge branch 'contributing'
Nick Mathewson [Fri, 11 May 2018 21:59:09 +0000 (17:59 -0400)] 
Merge branch 'contributing'

7 years agoMerge remote-tracking branch 'public/bug25994'
Nick Mathewson [Fri, 11 May 2018 21:57:59 +0000 (17:57 -0400)] 
Merge remote-tracking branch 'public/bug25994'

7 years agoget rid of whitespace before #ifdef's
Roger Dingledine [Fri, 11 May 2018 20:27:55 +0000 (16:27 -0400)] 
get rid of whitespace before #ifdef's

i don't know if whitespace is ok to have before preprocessing
directives on all platforms, but anyway we almost never have it,
so now things are more uniform.

7 years agoAdd a CONTRIBUTING file
Nick Mathewson [Fri, 11 May 2018 17:19:37 +0000 (13:19 -0400)] 
Add a CONTRIBUTING file

This file contains pointers to other important top-level resources,
and some info about acceptable licenses.  Also, add that info to
CodingStandards.md

7 years agocontrol: Mask the event(s) before using ANY_EVENT_IS_INTERESTING()
David Goulet [Fri, 11 May 2018 12:58:11 +0000 (08:58 -0400)] 
control: Mask the event(s) before using ANY_EVENT_IS_INTERESTING()

Before this commit, the control events were never triggered. It was introduced
with commit 0c19ce7bdece5906e035e71d3fb682632c8bb9cb.

Fixes #26082

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge remote-tracking branch 'asn-github/bug26078'
Nick Mathewson [Fri, 11 May 2018 12:20:49 +0000 (08:20 -0400)] 
Merge remote-tracking branch 'asn-github/bug26078'

7 years agoProperly ignore retval of event_del().
George Kadianakis [Fri, 11 May 2018 12:17:52 +0000 (15:17 +0300)] 
Properly ignore retval of event_del().

Fixes #26078: CID 1435546.

7 years agochanges file for 25943 and 25944
Nick Mathewson [Fri, 11 May 2018 12:16:02 +0000 (08:16 -0400)] 
changes file for 25943 and 25944

7 years agoMerge remote-tracking branch 'saper-github/x509_cert_free_crash'
Nick Mathewson [Fri, 11 May 2018 12:09:26 +0000 (08:09 -0400)] 
Merge remote-tracking branch 'saper-github/x509_cert_free_crash'

7 years agotesting: X509 certificate structure needs to be initialized
Marcin Cieślak [Fri, 11 May 2018 00:16:52 +0000 (00:16 +0000)] 
testing: X509 certificate structure needs to be initialized

We alloc/free X.509 structures in three ways:

1) X509 structure allocated with X509_new() and X509_free()

2) Fake X509 structure allocated with fake_x509_malloc() and fake_x509_free()
   May contain valid pointers inside.

3) Empty X509 structure shell allocated with tor_malloc_zero() and
   freed with tor_free()

7 years agoMerge remote-tracking branch 'public/bug25981'
Nick Mathewson [Thu, 10 May 2018 23:31:11 +0000 (19:31 -0400)] 
Merge remote-tracking branch 'public/bug25981'

7 years agoTweak error handling for #25852
rl1987 [Thu, 10 May 2018 13:45:57 +0000 (16:45 +0300)] 
Tweak error handling for #25852

7 years agoAvoid confusion with errno from libc
rl1987 [Thu, 10 May 2018 13:33:08 +0000 (16:33 +0300)] 
Avoid confusion with errno from libc

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 10 May 2018 13:22:32 +0000 (09:22 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Thu, 10 May 2018 13:22:32 +0000 (09:22 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Thu, 10 May 2018 13:22:32 +0000 (09:22 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge remote-tracking branch 'dgoulet/bug26069_031_01' into maint-0.3.1
Nick Mathewson [Thu, 10 May 2018 13:22:14 +0000 (09:22 -0400)] 
Merge remote-tracking branch 'dgoulet/bug26069_031_01' into maint-0.3.1

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 10 May 2018 13:19:28 +0000 (09:19 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Thu, 10 May 2018 13:19:28 +0000 (09:19 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Thu, 10 May 2018 13:19:28 +0000 (09:19 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Thu, 10 May 2018 13:19:28 +0000 (09:19 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoMerge remote-tracking branch 'juga/ticket26007_029_02' into maint-0.2.9
Nick Mathewson [Thu, 10 May 2018 13:19:09 +0000 (09:19 -0400)] 
Merge remote-tracking branch 'juga/ticket26007_029_02' into maint-0.2.9

7 years agohs-v3: Add an extra white-space when parsing descriptor
David Goulet [Thu, 10 May 2018 13:16:50 +0000 (09:16 -0400)] 
hs-v3: Add an extra white-space when parsing descriptor

The specification describes the signature token to be right after a newline
(\n) then the token "signature" and then a white-space followed by the encoded
signature.

This commit makes sure that when we parse the signature from the descriptor,
we are always looking for that extra white-space at the end of the token.

It will allow us also to support future fields that might start with
"signature".

Fixes #26069

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge branch 'ticket26063_squashed'
Nick Mathewson [Thu, 10 May 2018 13:13:28 +0000 (09:13 -0400)] 
Merge branch 'ticket26063_squashed'

7 years agoMake _with_err return routerinfo, like old function does
rl1987 [Thu, 10 May 2018 13:13:16 +0000 (16:13 +0300)] 
Make _with_err return routerinfo, like old function does

7 years agoMerge branch 'ticket26064'
Nick Mathewson [Thu, 10 May 2018 13:05:15 +0000 (09:05 -0400)] 
Merge branch 'ticket26064'

7 years agoEnable/disable per-second callback as needed.
Nick Mathewson [Wed, 9 May 2018 16:47:59 +0000 (12:47 -0400)] 
Enable/disable per-second callback as needed.

There are three cases where this can happen: changes in our
controller events, changes in our DisableNetwork setting, and
changes in our hibernation state.

Closes ticket 26063.

7 years agoAdd a new function to enable/disable the per-second timer as needed
Nick Mathewson [Wed, 9 May 2018 16:40:45 +0000 (12:40 -0400)] 
Add a new function to enable/disable the per-second timer as needed

We're about to use this to turn off the per-second timer when the
network is disabled and there aren't any per-second controller
events enabled.

7 years agoRemove a workaround for ancient libevent versions.
Nick Mathewson [Wed, 9 May 2018 16:38:50 +0000 (12:38 -0400)] 
Remove a workaround for ancient libevent versions.

Libevent has accepted a const timeval argument to event_add() for a
very long time now.

7 years agoAdd functions to enable/disable periodic_event_t objects.
Nick Mathewson [Wed, 9 May 2018 16:37:47 +0000 (12:37 -0400)] 
Add functions to enable/disable periodic_event_t objects.

7 years agoMerge remote-tracking branch 'dgoulet/ticket26062_034_01'
Nick Mathewson [Thu, 10 May 2018 12:04:03 +0000 (08:04 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket26062_034_01'

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Thu, 10 May 2018 12:03:43 +0000 (08:03 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 10 May 2018 12:03:04 +0000 (08:03 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Thu, 10 May 2018 12:02:10 +0000 (08:02 -0400)] 
Merge branch 'maint-0.3.1' into maint-0.3.2

7 years agoMerge branch 'maint-0.2.9' into maint-0.3.1
Nick Mathewson [Thu, 10 May 2018 12:00:35 +0000 (08:00 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoBug 25903: Changes file.
Mike Perry [Mon, 23 Apr 2018 20:18:10 +0000 (20:18 +0000)] 
Bug 25903: Changes file.

7 years agoBug 25903: Report new CIRC_BW fields to control port.
Mike Perry [Mon, 23 Apr 2018 20:14:48 +0000 (20:14 +0000)] 
Bug 25903: Report new CIRC_BW fields to control port.

7 years agoBug 25903: Perform accounting for new CIRC_BW fields.
Mike Perry [Mon, 23 Apr 2018 20:06:34 +0000 (20:06 +0000)] 
Bug 25903: Perform accounting for new CIRC_BW fields.

Two new values in each direction. DELIVERED counts valid end-to-end circuit
data that is accepted by our end and OVERHEAD counts the slack unused data in
each of the relay command cells for those accepted cells.

Control port changes are in the next commit.

7 years agoMerge branch 'ticket26016'
Nick Mathewson [Wed, 9 May 2018 18:04:30 +0000 (14:04 -0400)] 
Merge branch 'ticket26016'

7 years agoMerge branch 'ticket26009'
Nick Mathewson [Wed, 9 May 2018 18:01:08 +0000 (14:01 -0400)] 
Merge branch 'ticket26009'

7 years agospelling fix
Nick Mathewson [Wed, 9 May 2018 16:00:39 +0000 (12:00 -0400)] 
spelling fix

7 years agoFix some clang warnings
Nick Mathewson [Thu, 3 May 2018 16:31:35 +0000 (12:31 -0400)] 
Fix some clang warnings

7 years agoMark the 1-per-sec update_current_time() call as redundant.
Nick Mathewson [Thu, 3 May 2018 16:23:55 +0000 (12:23 -0400)] 
Mark the 1-per-sec update_current_time() call as redundant.

We still do this time update here, since we do it from all
callbacks, but it is no longer a reason to keep the once-per-second
callback enabled.

Closes ticket 26009.

7 years agoDistinguish true clock jumps from idleness
Nick Mathewson [Thu, 3 May 2018 15:51:32 +0000 (11:51 -0400)] 
Distinguish true clock jumps from idleness

Since we're going to be disabling the second-elapsed callback, we're
going to sometimes have long periods when no events file, and so the
current second is not updated.  Handle that by having a better means
to detect "clock jumps" as opposed to "being idle for a while".
Tolerate far more of the latter.

Part of #26009.

7 years agoGive responsibility for waking up from DORMANT to a mainloop event
Nick Mathewson [Wed, 9 May 2018 17:41:04 +0000 (13:41 -0400)] 
Give responsibility for waking up from DORMANT to a mainloop event

Closes ticket 26064.

7 years agoHaving a ControlPort open doesn't mean we are a client
David Goulet [Wed, 9 May 2018 16:40:06 +0000 (12:40 -0400)] 
Having a ControlPort open doesn't mean we are a client

The any_client_port_set() returns true if the ControlPort is set which is
wrong because we can have that port open but still not behave as a tor client
(like many relays for instance).

Fixes #26062

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoHaving a ControlPort open doesn't mean we are a client
David Goulet [Wed, 25 Apr 2018 17:43:37 +0000 (13:43 -0400)] 
Having a ControlPort open doesn't mean we are a client

The options_any_client_port_set() returns true if the ControlPort is set which
is wrong because we can have that port open but still not behave as a tor
client (like many relays for instance).

Fixes #26062

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoconfig: Move any_client_port_set() to config.c
David Goulet [Wed, 25 Apr 2018 17:41:04 +0000 (13:41 -0400)] 
config: Move any_client_port_set() to config.c

This functions is now used outside of networkstatus.c and makes more sense to
be in config.c.

It is also renamed to options_any_client_port_set() for the config.c
namespace.

No code behavior change.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoUse net_is_completely_disabled() in connection.c
Nick Mathewson [Wed, 9 May 2018 16:26:50 +0000 (12:26 -0400)] 
Use net_is_completely_disabled() in connection.c

This fixes the XXXX case that we had before, and also enforces the
rule that we won't open connections when we're in hard hibernation.

7 years agoAdd a new net_is_completely_disabled() function
Nick Mathewson [Wed, 9 May 2018 16:21:08 +0000 (12:21 -0400)] 
Add a new net_is_completely_disabled() function

7 years agoComment-only fix: annotate we_are_hibernating() usage
Nick Mathewson [Wed, 9 May 2018 16:18:04 +0000 (12:18 -0400)] 
Comment-only fix: annotate we_are_hibernating() usage

Everywhere we use we_are_hibernating(), remind the reader what it
means.

(Also, add an XXXX to note a DisableNetwork usage to change later.)

7 years agoAdd we_are_fully_hibernating() to distinguish hibernation states
Nick Mathewson [Wed, 9 May 2018 16:11:14 +0000 (12:11 -0400)] 
Add we_are_fully_hibernating() to distinguish hibernation states

We want to tell "shut down" from "shutting down".

7 years agoGive control.c responsibility for its own once-a-second events
Nick Mathewson [Mon, 7 May 2018 21:41:54 +0000 (17:41 -0400)] 
Give control.c responsibility for its own once-a-second events

Now it has a function that can tell the rest of Tor whether any
once-a-second controller item should fire, and a function to fire
all the once-a-second events.

7 years agoAdd a macro to simplify control_update_global_event_mask().
Nick Mathewson [Mon, 7 May 2018 20:35:52 +0000 (16:35 -0400)] 
Add a macro to simplify control_update_global_event_mask().

7 years agoTest read bandwidth measurements with empty file
juga0 [Tue, 8 May 2018 16:23:37 +0000 (16:23 +0000)] 
Test read bandwidth measurements with empty file

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 9 May 2018 15:53:18 +0000 (11:53 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Wed, 9 May 2018 15:53:18 +0000 (11:53 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge remote-tracking branch 'asn-github/bug25761_032' into maint-0.3.2
Nick Mathewson [Wed, 9 May 2018 15:53:15 +0000 (11:53 -0400)] 
Merge remote-tracking branch 'asn-github/bug25761_032' into maint-0.3.2

7 years agoStop logging stack contents when reading a zero-length bandwidth file
teor [Wed, 2 May 2018 12:33:21 +0000 (22:33 +1000)] 
Stop logging stack contents when reading a zero-length bandwidth file

When directory authorities read a zero-byte bandwidth file, they log
a warning with the contents of an uninitialised buffer. Log a warning
about the empty file instead.

Fixes bug 26007; bugfix on 0.2.2.1-alpha.

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Wed, 9 May 2018 12:25:52 +0000 (08:25 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge branch 'libressl_201805_033' into maint-0.3.3
Nick Mathewson [Wed, 9 May 2018 12:25:32 +0000 (08:25 -0400)] 
Merge branch 'libressl_201805_033' into maint-0.3.3

7 years agoMerge remote-tracking branch 'public/bug26005_034'
Nick Mathewson [Wed, 9 May 2018 12:23:27 +0000 (08:23 -0400)] 
Merge remote-tracking branch 'public/bug26005_034'

7 years agoDetect when v3 services get disabled after HUP.
George Kadianakis [Tue, 8 May 2018 15:14:02 +0000 (18:14 +0300)] 
Detect when v3 services get disabled after HUP.

Remove v3 optimization which made Tor not detect disabling services.

This optimization is not so needed because we only call that function after HUP
anyway.

Fixes bug #25761.

7 years agoDetect when v2 services get disabled after HUP.
George Kadianakis [Tue, 8 May 2018 15:07:08 +0000 (18:07 +0300)] 
Detect when v2 services get disabled after HUP.

During service configuration, rend_service_prune_list_impl_() sets
rend_service_staging_list to NULL, which blocked pruning after a HUP.

This patch initializes rend_service_staging_list when needed, so that HUP can
detect disabled onion services.

Fixes bug #25761.

7 years agoFix compilation of test_addr.c
Nick Mathewson [Wed, 9 May 2018 00:20:54 +0000 (20:20 -0400)] 
Fix compilation of test_addr.c

This needs to include crypto_rand.h (which it didn't before it was
merged).

7 years agoMerge branch 'ticket25993_squashed'
Nick Mathewson [Wed, 9 May 2018 00:09:42 +0000 (20:09 -0400)] 
Merge branch 'ticket25993_squashed'

7 years agoMore unit tests for addressmap_get_virtual_address().
Nick Mathewson [Tue, 1 May 2018 19:28:42 +0000 (15:28 -0400)] 
More unit tests for addressmap_get_virtual_address().

Previously the coverage on this function was mostly accidental,
coming as it did from test_entryconn.c.  These new tests use mocking
to ensure that we actually hit the different failure and retry cases
of addressmap_get_virtual_address(), and make our test coverage a
bit more deterministic.

Closes ticket 25993.

7 years agoMerge remote-tracking branch 'hello71/bug23883'
Nick Mathewson [Wed, 9 May 2018 00:05:35 +0000 (20:05 -0400)] 
Merge remote-tracking branch 'hello71/bug23883'

7 years agoImprove tolerance for dirauths with skewed clocks
Taylor Yu [Fri, 4 May 2018 22:16:06 +0000 (17:16 -0500)] 
Improve tolerance for dirauths with skewed clocks

Previously, an authority with a clock more than 60 seconds ahead could
cause a client with a correct clock to warn that the client's clock
was behind.  Now the clocks of a majority of directory authorities
have to be ahead of the client before this warning will occur.

Relax the early-consensus check so that a client's clock must be 60
seconds behind the earliest time that a given sufficiently-signed
consensus could possibly be available.

Add a new unit test that calls warn_early_consensus() directly.

Fixes bug 25756; bugfix on 0.2.2.25-alpha.

7 years agoDeindent warn_early_consensus()
Taylor Yu [Fri, 4 May 2018 03:11:44 +0000 (22:11 -0500)] 
Deindent warn_early_consensus()

Remove one level of indentation by returning early from the function.

7 years agoFactor out warn_early_consensus()
Taylor Yu [Tue, 1 May 2018 23:13:37 +0000 (18:13 -0500)] 
Factor out warn_early_consensus()

Factor out the early consensus warning code from
networkstatus_set_current_consensus() into a new function
warn_early_consensus().

7 years agoTest early-consensus clock skew warnings
Taylor Yu [Fri, 4 May 2018 02:53:24 +0000 (21:53 -0500)] 
Test early-consensus clock skew warnings

7 years agoAdd expect_no_log_msg_containing()
Taylor Yu [Fri, 4 May 2018 02:49:19 +0000 (21:49 -0500)] 
Add expect_no_log_msg_containing()

7 years agoMake clock_skew_warning() mockable
Taylor Yu [Fri, 4 May 2018 01:57:07 +0000 (20:57 -0500)] 
Make clock_skew_warning() mockable

7 years agotests: Add "now" param to construct_consensus()
Taylor Yu [Thu, 3 May 2018 20:24:31 +0000 (15:24 -0500)] 
tests: Add "now" param to construct_consensus()

construct_consensus() in test_routerlist.c created votes using a
timestamp from time().  Tests that called construct_consensus() might
have nondeterministic results if they rely on time() not changing too
much on two successive calls.

Neither existing of the two existing tests that calls
construct_consensus is likely to have a failure due to this problem.

7 years agoUpdate rust submodule.
Nick Mathewson [Tue, 8 May 2018 22:51:31 +0000 (18:51 -0400)] 
Update rust submodule.

7 years agorust: Add crypto crate and implement Rust wrappers for SHA2 code.
Isis Lovecruft [Sat, 21 Apr 2018 01:01:04 +0000 (01:01 +0000)] 
rust: Add crypto crate and implement Rust wrappers for SHA2 code.

 * FIXES #24659: https://bugs.torproject.org/24659

7 years agoMerge branch 'bug26004_029_squashed'
Nick Mathewson [Tue, 8 May 2018 18:26:05 +0000 (14:26 -0400)] 
Merge branch 'bug26004_029_squashed'

7 years agoAdd a changes file for ticket 26004.
Nick Mathewson [Mon, 7 May 2018 17:57:14 +0000 (13:57 -0400)] 
Add a changes file for ticket 26004.

7 years agoAvoid unsigned integer underflow on empty input.
Nick Mathewson [Mon, 7 May 2018 17:56:39 +0000 (13:56 -0400)] 
Avoid unsigned integer underflow on empty input.

7 years agoAllow bandwidth-file lines to have node_id in the last position
juga0 [Thu, 3 May 2018 08:29:57 +0000 (08:29 +0000)] 
Allow bandwidth-file lines to have node_id in the last position

Closes ticket 26004.