]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
7 years agoUpdate rand dependency from 0.5.0-pre.0 to 0.5.0-pre.1.
Isis Lovecruft [Fri, 4 May 2018 19:16:42 +0000 (19:16 +0000)] 
Update rand dependency from 0.5.0-pre.0 to 0.5.0-pre.1.

7 years agoI should have tested before I pushed.
Nick Mathewson [Fri, 4 May 2018 00:16:53 +0000 (20:16 -0400)] 
I should have tested before I pushed.

7 years agoMerge remote-tracking branch 'github/ticket25995'
Nick Mathewson [Thu, 3 May 2018 20:52:09 +0000 (16:52 -0400)] 
Merge remote-tracking branch 'github/ticket25995'

7 years agoMerge remote-tracking branch 'dgoulet/ticket25914_034_01'
Nick Mathewson [Thu, 3 May 2018 20:48:03 +0000 (16:48 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket25914_034_01'

7 years agoAdd src/rust/rand to include.am
Nick Mathewson [Thu, 3 May 2018 20:16:09 +0000 (16:16 -0400)] 
Add src/rust/rand to include.am

7 years agoMove some includes around to try to fix windows builds
Nick Mathewson [Thu, 3 May 2018 20:14:38 +0000 (16:14 -0400)] 
Move some includes around to try to fix windows builds

7 years agoUpdate rust dependencies to latest version.
Nick Mathewson [Thu, 3 May 2018 17:55:55 +0000 (13:55 -0400)] 
Update rust dependencies to latest version.

7 years agoMerge remote-tracking branch 'isis/bug24660_r1'
Nick Mathewson [Thu, 3 May 2018 17:50:18 +0000 (13:50 -0400)] 
Merge remote-tracking branch 'isis/bug24660_r1'

7 years agoMerge remote-tracking branch 'dgoulet/ticket25991_034_01'
Nick Mathewson [Thu, 3 May 2018 17:41:34 +0000 (13:41 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket25991_034_01'

7 years agoMerge remote-tracking branch 'dgoulet/ticket25990_034_01'
Nick Mathewson [Thu, 3 May 2018 17:40:10 +0000 (13:40 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket25990_034_01'

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Thu, 3 May 2018 17:38:54 +0000 (13:38 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Thu, 3 May 2018 17:38:54 +0000 (13:38 -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, 3 May 2018 17:38:54 +0000 (13:38 -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, 3 May 2018 17:38:54 +0000 (13:38 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoMerge remote-tracking branch 'catalyst-github/bug25936-033' into maint-0.3.3
Nick Mathewson [Thu, 3 May 2018 17:38:51 +0000 (13:38 -0400)] 
Merge remote-tracking branch 'catalyst-github/bug25936-033' into maint-0.3.3

7 years agoMerge remote-tracking branch 'catalyst-github/bug25936-031' into maint-0.3.1
Nick Mathewson [Thu, 3 May 2018 17:38:46 +0000 (13:38 -0400)] 
Merge remote-tracking branch 'catalyst-github/bug25936-031' into maint-0.3.1

7 years agoMerge remote-tracking branch 'catalyst-github/bug25936-029' into maint-0.2.9
Nick Mathewson [Thu, 3 May 2018 17:38:37 +0000 (13:38 -0400)] 
Merge remote-tracking branch 'catalyst-github/bug25936-029' into maint-0.2.9

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Thu, 3 May 2018 17:37:37 +0000 (13:37 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoMerge remote-tracking branch 'teor/bug25998' into maint-0.3.3
Nick Mathewson [Thu, 3 May 2018 17:37:33 +0000 (13:37 -0400)] 
Merge remote-tracking branch 'teor/bug25998' into maint-0.3.3

7 years agoMerge remote-tracking branch 'github/ticket25952'
Nick Mathewson [Thu, 3 May 2018 15:59:53 +0000 (11:59 -0400)] 
Merge remote-tracking branch 'github/ticket25952'

7 years agoMerge remote-tracking branch 'github/ticket25951'
Nick Mathewson [Thu, 3 May 2018 15:59:31 +0000 (11:59 -0400)] 
Merge remote-tracking branch 'github/ticket25951'

7 years agoMerge remote-tracking branch 'github/ticket25949'
Nick Mathewson [Thu, 3 May 2018 15:57:09 +0000 (11:57 -0400)] 
Merge remote-tracking branch 'github/ticket25949'

7 years agodoc: Add missing HACKING/ files to EXTRA_DIST
David Goulet [Wed, 2 May 2018 18:28:40 +0000 (14:28 -0400)] 
doc: Add missing HACKING/ files to EXTRA_DIST

Apart from adding the newly created Module.md, this commit also adds all the
missing files we have in HACKING/ to the EXTRA_DIST.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agodoc: Add Module.md explaining Tor modules
David Goulet [Wed, 2 May 2018 18:24:46 +0000 (14:24 -0400)] 
doc: Add Module.md explaining Tor modules

Initial document that contains guidelines to write a new module in Tor.

Closes #25991

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agohs-v3: Remove extra white-space and clarify comment
David Goulet [Thu, 3 May 2018 13:34:50 +0000 (09:34 -0400)] 
hs-v3: Remove extra white-space and clarify comment

From Neel's latest patch on optimizing the hs_circ_service_get_intro_circ()
digest calculation, remove an extra white-space and clarify a comment of the
legacy key digest to inform when to use it.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge remote-tracking branch 'asn/bug23107'
David Goulet [Thu, 3 May 2018 13:33:42 +0000 (09:33 -0400)] 
Merge remote-tracking branch 'asn/bug23107'

7 years agorust: Expose crypto_rand() as an impl of rand_core::RngCore.
Isis Lovecruft [Wed, 2 May 2018 22:12:38 +0000 (22:12 +0000)] 
rust: Expose crypto_rand() as an impl of rand_core::RngCore.

7 years agoMerge branch 'ticket25997'
Nick Mathewson [Wed, 2 May 2018 20:03:57 +0000 (16:03 -0400)] 
Merge branch 'ticket25997'

7 years agodirauth: Move authdir_mode_v3() to module
David Goulet [Wed, 2 May 2018 17:42:24 +0000 (13:42 -0400)] 
dirauth: Move authdir_mode_v3() to module

This function must return false if the module is not compiled in. In order to
do that, we move the authdir_mode_v3() function out of router.c and into the
dirauth module new header file named mode.h.

It is always returning false if we don't have the module.

Closes #25990

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMake hs_get_responsible_hsdirs() deterministic.
Nick Mathewson [Wed, 2 May 2018 14:16:23 +0000 (10:16 -0400)] 
Make hs_get_responsible_hsdirs() deterministic.

This test was using the current time to pick the time period number,
and a randomly generated hs key.  Therefore, it sometimes picked an
index that would wrap around the example dht, and sometimes would
not.

The fix here is just to fix the time period and the public key.

Fixes bug 25997; bugfix on 0.3.2.1-alpha.

7 years agodirvote: Fix typo in comment
David Goulet [Wed, 2 May 2018 13:06:40 +0000 (09:06 -0400)] 
dirvote: Fix typo in comment

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge branch 'maint-0.3.1' into maint-0.3.2
Nick Mathewson [Wed, 2 May 2018 12:46:28 +0000 (08:46 -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 [Wed, 2 May 2018 12:46:28 +0000 (08:46 -0400)] 
Merge branch 'maint-0.2.9' into maint-0.3.1

7 years agoMerge branch 'maint-0.3.2' into maint-0.3.3
Nick Mathewson [Wed, 2 May 2018 12:46:28 +0000 (08:46 -0400)] 
Merge branch 'maint-0.3.2' into maint-0.3.3

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

7 years agoMerge branch 'ticket25996'
Nick Mathewson [Wed, 2 May 2018 12:45:35 +0000 (08:45 -0400)] 
Merge branch 'ticket25996'

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 agoBug 26000: Fix missing ";"
Georg Koppen [Wed, 2 May 2018 06:20:26 +0000 (06:20 +0000)] 
Bug 26000: Fix missing ";"

7 years agosquash! Optimize legacy intro point digest calculation.
George Kadianakis [Wed, 2 May 2018 11:09:15 +0000 (14:09 +0300)] 
squash! Optimize legacy intro point digest calculation.

7 years agoOptimize legacy intro point digest calculation.
Neel Chauhan [Fri, 27 Apr 2018 21:45:16 +0000 (17:45 -0400)] 
Optimize legacy intro point digest calculation.

7 years agoman page: FetchUselessDescriptors and DirCache exclude extra infos
teor [Wed, 2 May 2018 01:29:48 +0000 (11:29 +1000)] 
man page: FetchUselessDescriptors and DirCache exclude extra infos

7 years agoman page: UseMicrodescriptors auto and 1 are the same now
teor [Wed, 2 May 2018 00:46:10 +0000 (10:46 +1000)] 
man page: UseMicrodescriptors auto and 1 are the same now

7 years agoman page: FetchUselessDescriptors stops tor going idle
teor [Wed, 2 May 2018 00:46:00 +0000 (10:46 +1000)] 
man page: FetchUselessDescriptors stops tor going idle

Also explain how FetchUselessDescriptors and UseMicrodescriptors are
different.

Closes 25998.

7 years agocoverage: Repeat the test for avoiding failed intro points
Nick Mathewson [Tue, 1 May 2018 23:58:39 +0000 (19:58 -0400)] 
coverage: Repeat the test for avoiding failed intro points

This test, in test_client_pick_intro(), will have different coverage
depending on whether it selects a good intro point the first time or
whether it has to try a few times.  Since it produces the shorter
coverage with P=1/4, repeat this test 64 times so that it only
provides reduced coverage with P=1/2^128.  The performance cost is
negligible.

Closes ticket 25996.  This test was introduced in 0.3.2.1-alpha.

7 years agoUse a deterministic PRNG in test_circuit_timeout()
Nick Mathewson [Tue, 1 May 2018 23:34:21 +0000 (19:34 -0400)] 
Use a deterministic PRNG in test_circuit_timeout()

I'd prefer not to do this for randomized tests, but as things stand
with this test, it produces nondeterministic test coverage.

Closes ticket 25995; bugfix on 0.2.2.2-alpha when this test was
introduced.

7 years agoStop using approx_time() in circuitmux_ewma.
Nick Mathewson [Tue, 1 May 2018 22:28:01 +0000 (18:28 -0400)] 
Stop using approx_time() in circuitmux_ewma.

It doesn't match with the tick-count code any longer.

Bug not in any released Tor.

7 years agoMerge remote-tracking branch 'github/eliminate_gettimeofday_cached'
Nick Mathewson [Tue, 1 May 2018 17:27:02 +0000 (13:27 -0400)] 
Merge remote-tracking branch 'github/eliminate_gettimeofday_cached'

7 years agoMove unreachable port warnings to a periodic event.
Nick Mathewson [Tue, 1 May 2018 17:14:18 +0000 (13:14 -0400)] 
Move unreachable port warnings to a periodic event.

Arguably, the conditions under which these events happen should be a
bit different, but the rules are complex enough here that I've tried
to have this commit be pure refactoring.

Closes ticket 25952.

Finally, before this code goes away, take a moment to look at the
amazing way that we used to try to have an event happen
every N seconds:

      get_uptime() / N != (get_uptime()+seconds_elapsed) / N

Truly, it is a thing of wonder.  I'm glad we didn't start using this
pattern everywhere else.

7 years agoBuild Tor without dirauth module in Travis.
Alexander Færøy [Fri, 27 Apr 2018 17:06:04 +0000 (19:06 +0200)] 
Build Tor without dirauth module in Travis.

See: https://bugs.torproject.org/25953

7 years agoAdd changes file for #25610
David Goulet [Tue, 1 May 2018 15:38:56 +0000 (11:38 -0400)] 
Add changes file for #25610

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agodirvote: Make tokens a const in dirvote_parse_sr_commits()
David Goulet [Tue, 1 May 2018 15:35:26 +0000 (11:35 -0400)] 
dirvote: Make tokens a const in dirvote_parse_sr_commits()

Part of #25988

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMake find_opt_by_keyword() take a const smartlist
David Goulet [Tue, 1 May 2018 15:33:40 +0000 (11:33 -0400)] 
Make find_opt_by_keyword() take a const smartlist

Part of #25988

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agosr: Rename shared_random_common.{c|h} to shared_random_client.{c|h}
David Goulet [Tue, 1 May 2018 15:31:33 +0000 (11:31 -0400)] 
sr: Rename shared_random_common.{c|h} to shared_random_client.{c|h}

No code behavior change.

Pars of #25988

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agovote: Move dirvote_recalculate_timing() to voting_schedule.c
David Goulet [Tue, 1 May 2018 15:25:25 +0000 (11:25 -0400)] 
vote: Move dirvote_recalculate_timing() to voting_schedule.c

By doing so, it is renamed to voting_schedule_recalculate_timing(). This
required a lot of changes to include voting_schedule.h everywhere that this
function was used.

This effectively now makes voting_schedule.{c|h} not include dirauth/dirvote.h
for that symbol and thus no dependency on the dirauth module anymore.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agovote: Namespace functions in voting_schedule.c
David Goulet [Tue, 1 May 2018 15:18:44 +0000 (11:18 -0400)] 
vote: Namespace functions in voting_schedule.c

Rename them from dirvote_* to voting_schedule_*.

No code behavior change.

Part of #25988

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoRename dirvote_common.{c|h} to voting_schedule.{c|h}
David Goulet [Tue, 1 May 2018 15:10:58 +0000 (11:10 -0400)] 
Rename dirvote_common.{c|h} to voting_schedule.{c|h}

No code behavior change.

Part of #25988

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agodirvote: Make dirvote_get_preferred_voting_intervals() static
David Goulet [Tue, 1 May 2018 15:04:13 +0000 (11:04 -0400)] 
dirvote: Make dirvote_get_preferred_voting_intervals() static

This function doesn't need to be public from the dirvote common file (which
will get renamed in future commit) so move it to dirauth/dirvote.c and make it
static.

Part of #25988

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agons: Move dirvote_get_voter_sig_by_alg() to networkstatus.c
David Goulet [Tue, 1 May 2018 14:59:10 +0000 (10:59 -0400)] 
ns: Move dirvote_get_voter_sig_by_alg() to networkstatus.c

It makes more sense to be in networkstatus.c so move it there and rename it
with the "networkstatus_" prefix.

Part of #25988

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge branch 'dirvote_act_refactor_v2_squashed'
Nick Mathewson [Tue, 1 May 2018 14:57:04 +0000 (10:57 -0400)] 
Merge branch 'dirvote_act_refactor_v2_squashed'

7 years agoRefactor to use safe_timer_diff.
Nick Mathewson [Tue, 1 May 2018 14:56:11 +0000 (10:56 -0400)] 
Refactor to use safe_timer_diff.

7 years agoReschedule voting callback when any cfg option affecting it changes.
Nick Mathewson [Mon, 30 Apr 2018 14:16:40 +0000 (10:16 -0400)] 
Reschedule voting callback when any cfg option affecting it changes.

7 years agoEnsure that voting is rescheduled whenever the schedule changes.
Nick Mathewson [Fri, 27 Apr 2018 13:55:05 +0000 (09:55 -0400)] 
Ensure that voting is rescheduled whenever the schedule changes.

7 years agoMove responsibility for voting into a separate periodic callback.
Nick Mathewson [Fri, 27 Apr 2018 13:50:07 +0000 (09:50 -0400)] 
Move responsibility for voting into a separate periodic callback.

Closes ticket25937.

7 years agoUpdate dirvote_act() to return the time of its next action.
Nick Mathewson [Thu, 26 Apr 2018 21:42:43 +0000 (17:42 -0400)] 
Update dirvote_act() to return the time of its next action.

This is remarkably simple, given the macros in the last commit.

7 years agoStart refactoring dirvote_act() towards self-scheduling
Nick Mathewson [Thu, 26 Apr 2018 21:37:09 +0000 (17:37 -0400)] 
Start refactoring dirvote_act() towards self-scheduling

This change should have no behavioral effect: it just uses macros to
describe the current control flow.

7 years agoFix an assertion failure introduced by #25948
Nick Mathewson [Tue, 1 May 2018 14:47:44 +0000 (10:47 -0400)] 
Fix an assertion failure introduced by #25948

Apparently, we can decide our state is dirty before we create the
event to tell the mainloop that we should save it.  That's not a
problem, except for the assertion failure.

7 years agoMerge remote-tracking branch 'ffmancera-1/bug20522'
Nick Mathewson [Tue, 1 May 2018 14:43:40 +0000 (10:43 -0400)] 
Merge remote-tracking branch 'ffmancera-1/bug20522'

7 years agoRemove responsibility for flushing log cbs from mainloop
Nick Mathewson [Tue, 1 May 2018 14:38:46 +0000 (10:38 -0400)] 
Remove responsibility for flushing log cbs from mainloop

This is now handled as-needed as the control module is flushing its
own callbacks.  Closes ticket 25951.

7 years agoMerge remote-tracking branch 'dgoulet/ticket25610_034_01-squashed'
Nick Mathewson [Tue, 1 May 2018 14:29:05 +0000 (10:29 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket25610_034_01-squashed'

7 years agoGive queued_events_flush_all() responsibility for flushing log cbs
Nick Mathewson [Tue, 1 May 2018 14:26:04 +0000 (10:26 -0400)] 
Give queued_events_flush_all() responsibility for flushing log cbs

This requires that when a log cb happens, the event for flushing
queued events is scheduled, so we also add the necessary machinery
to have that happen.

Note that this doesn't actually help with logs from outside the main
thread, but those were already suppressed: see #25987 for a ticket
tracking that issue.

7 years agoAdd a mechanism for the logging system to report queued callbacks
Nick Mathewson [Tue, 1 May 2018 14:05:22 +0000 (10:05 -0400)] 
Add a mechanism for the logging system to report queued callbacks

Sometimes the logging system will queue a log message for later.
When it does this, the callback will either get flushed at the next
safe time, or from the second-elapsed callback.

But we're trying to eliminate the second-elapsed callback, so let's
make a way for the log system to tell its users about this.

7 years agovote: Return error when adding vote/signature if no dirauth module
David Goulet [Tue, 1 May 2018 14:15:28 +0000 (10:15 -0400)] 
vote: Return error when adding vote/signature if no dirauth module

Commit 0f3b765b3c8ba6f4f105440861e87ecaf4ea4323 added
tor_assert_nonfatal_unreached() to dirvote_add_vote() and
dirvote_add_signatures() when the dirauth module is disabled.

However, they need to return a value. Furthermore, the dirvote_add_vote()
needs to set the msg_out and status_out so it can be sent back. Else,
uninitialized values would be used.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMove back dirvote_authority_cert_dup to dirvote.c
David Goulet [Tue, 1 May 2018 12:58:57 +0000 (08:58 -0400)] 
Move back dirvote_authority_cert_dup to dirvote.c

Originally, it was made public outside of the dirauth module but it is no
longer needed. In doing so, we put it back in dirvote.c and reverted its name
to the original one:

dirvote_authority_cert_dup() --> authority_cert_dup()

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agobuild: Always compile module support for tests
David Goulet [Fri, 27 Apr 2018 15:33:22 +0000 (11:33 -0400)] 
build: Always compile module support for tests

The --disable-module-* configure option removes code from the final binary but
we still build the unit tests with the disable module(s) so we can actually
test that code path all the time and not forget about it.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agodirvote: Move the vote creation code into dirvote.c
David Goulet [Wed, 25 Apr 2018 15:20:59 +0000 (11:20 -0400)] 
dirvote: Move the vote creation code into dirvote.c

This code is only for dirauth so this commit moves it into the module in
dirvote.c.

No code behavior change.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agodirvote: Handling adding vote and signature if module is disabled
David Goulet [Wed, 25 Apr 2018 15:12:56 +0000 (11:12 -0400)] 
dirvote: Handling adding vote and signature if module is disabled

Both functions are used for directory request but they can only be used if the
running tor instance is a directory authority.

For this reason, make those symbols visible but hard assert() if they are
called when the module is disabled. This would mean we failed to safeguard the
entry point into the module.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agodirvote: Move the handling of GET /tor/status-vote to dirauth module
David Goulet [Wed, 25 Apr 2018 15:04:47 +0000 (11:04 -0400)] 
dirvote: Move the handling of GET /tor/status-vote to dirauth module

In order to further isolate the dirauth code into its module, this moves the
handling of the directory request GET /tor/status-vote/* into the module.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agodirvote: Free vote commits in the dirauth module
David Goulet [Wed, 25 Apr 2018 14:49:32 +0000 (10:49 -0400)] 
dirvote: Free vote commits in the dirauth module

In order to make sr_commit_free() only used by the dirauth module, this
commits moves the commits free from a vote object into the dirvote.c file
which is now only for the module.

The function does nothing if the module is disabled.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agoMerge remote-tracking branch 'neel/b23094'
Nick Mathewson [Tue, 1 May 2018 12:56:23 +0000 (08:56 -0400)] 
Merge remote-tracking branch 'neel/b23094'

7 years agoMerge branch 'bug24734_squashed'
Nick Mathewson [Tue, 1 May 2018 12:51:32 +0000 (08:51 -0400)] 
Merge branch 'bug24734_squashed'

7 years agoRemove the return value from the fascist_firewall_choose_address_* family of functions
Neel Chauhan [Fri, 27 Apr 2018 19:14:59 +0000 (19:14 +0000)] 
Remove the return value from the fascist_firewall_choose_address_* family of functions

7 years agoInitialize ap in the fascist_firewall_choose_address_* family of functions to 0
Neel Chauhan [Tue, 10 Apr 2018 01:12:33 +0000 (21:12 -0400)] 
Initialize ap in the fascist_firewall_choose_address_* family of functions to 0

7 years agoAdd a cast to make clang happy.
Nick Mathewson [Mon, 30 Apr 2018 21:14:40 +0000 (17:14 -0400)] 
Add a cast to make clang happy.

7 years agoMerge branch 'ticket25948_squashed'
Nick Mathewson [Mon, 30 Apr 2018 20:46:59 +0000 (16:46 -0400)] 
Merge branch 'ticket25948_squashed'

7 years agoMove responsibility for or_state_save() to a scheduled callback
Nick Mathewson [Fri, 27 Apr 2018 14:30:30 +0000 (10:30 -0400)] 
Move responsibility for or_state_save() to a scheduled callback

Closes ticket 25948.

7 years agoMerge branch 'ticket24790'
Nick Mathewson [Mon, 30 Apr 2018 20:44:30 +0000 (16:44 -0400)] 
Merge branch 'ticket24790'

7 years agoMake unit tests pass with new dirserver role.
Nick Mathewson [Mon, 30 Apr 2018 14:36:00 +0000 (10:36 -0400)] 
Make unit tests pass with new dirserver role.

7 years agoMerge remote-tracking branch 'dgoulet/ticket25900_034_01'
Nick Mathewson [Mon, 30 Apr 2018 14:27:22 +0000 (10:27 -0400)] 
Merge remote-tracking branch 'dgoulet/ticket25900_034_01'

7 years agoDescribe schedules as TimeInterval, not TimeIntervalCommaList.
Nick Mathewson [Mon, 30 Apr 2018 13:47:35 +0000 (09:47 -0400)] 
Describe schedules as TimeInterval, not TimeIntervalCommaList.

7 years agoMerge remote-tracking branch 'github/ticket23354'
Nick Mathewson [Mon, 30 Apr 2018 13:45:28 +0000 (09:45 -0400)] 
Merge remote-tracking branch 'github/ticket23354'

7 years agoMerge remote-tracking branch 'github/ticket19429_034'
Nick Mathewson [Mon, 30 Apr 2018 13:41:33 +0000 (09:41 -0400)] 
Merge remote-tracking branch 'github/ticket19429_034'

7 years agoMake hsdir_index in node_t a hsdir_index_t rather than a pointer.
Neel Chauhan [Sat, 28 Apr 2018 23:56:12 +0000 (19:56 -0400)] 
Make hsdir_index in node_t a hsdir_index_t rather than a pointer.

7 years agoMove stdbool include to torint.h
Nick Mathewson [Fri, 27 Apr 2018 19:08:27 +0000 (15:08 -0400)] 
Move stdbool include to torint.h

It's friday, and this seems like a good idea, and they're egging me
on in IRC.

7 years agoMerge branch 'maint-0.3.3'
Nick Mathewson [Fri, 27 Apr 2018 17:26:17 +0000 (13:26 -0400)] 
Merge branch 'maint-0.3.3'

7 years agoStop initialising rust submodules, travis does this for us
teor [Fri, 15 Dec 2017 01:55:02 +0000 (12:55 +1100)] 
Stop initialising rust submodules, travis does this for us

Fixes #24630.

7 years agoOnly define X509_get_not{BeforeAfter} if they are not defined
Nick Mathewson [Fri, 27 Apr 2018 16:55:52 +0000 (12:55 -0400)] 
Only define X509_get_not{BeforeAfter} if they are not defined

(The originally submitted version of a15b2c57e1f901c531 broke
with OpenSSL 1.1.0.)

7 years agoMerge branch 'bug25843_v2_squashed'
Nick Mathewson [Fri, 27 Apr 2018 16:45:07 +0000 (12:45 -0400)] 
Merge branch 'bug25843_v2_squashed'

7 years agoIntroduce torrc option NumPrimaryGuards
George Kadianakis [Wed, 25 Apr 2018 12:10:24 +0000 (15:10 +0300)] 
Introduce torrc option NumPrimaryGuards

7 years agodirvote: Move SR commit parsing into dirauth module
David Goulet [Wed, 25 Apr 2018 14:42:56 +0000 (10:42 -0400)] 
dirvote: Move SR commit parsing into dirauth module

When parsing a vote in routerparse.c, only dirauth extract the commits from
the vote so move all this code into dirvote.c so we can make it specific to
the dirauth module.

If the dirauth module is disabled, the commit parsing does nothing.

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 years agons: Move ns_detached_signatures_free() to networkstatus.c
David Goulet [Wed, 25 Apr 2018 14:09:50 +0000 (10:09 -0400)] 
ns: Move ns_detached_signatures_free() to networkstatus.c

From dirvote.c to networkstatus.c where it makes more sense both in terms of
namespace and subsystem responsability.

This removes one less dependency on the dirauth module.

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