Nick Mathewson
0fc5fdc430
Merge remote-tracking branch 'tor-github/pr/659'
2019-02-19 11:55:53 -05:00
Nick Mathewson
97e1539f7f
Merge remote-tracking branch 'tor-github/pr/706' into maint-0.4.0
2019-02-19 11:53:02 -05:00
Nick Mathewson
c3fca4e4b3
Merge branch 'maint-0.4.0'
2019-02-19 11:51:24 -05:00
Nick Mathewson
4df31adef7
Merge remote-tracking branch 'tor-github/pr/704' into maint-0.4.0
2019-02-19 11:51:19 -05:00
Nick Mathewson
f70929347f
Merge branch 'maint-0.4.0'
2019-02-19 11:49:24 -05:00
Nick Mathewson
4bc55ed5ee
Merge branch 'bug29145_029' into maint-0.4.0
2019-02-19 11:49:20 -05:00
Kris Katterjohn
4417ac880a
Fix a compiler warning on OpenBSD
...
malloc_options needs to be declared extern (and declaring it extern
means we need to initialize it separately)
Fixes bug 29145; bugfix on 0.2.9.3-alpha
Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
2019-02-19 11:38:32 -05:00
Nick Mathewson
17e29bda5d
Merge branch 'maint-0.4.0'
2019-02-19 11:34:25 -05:00
Nick Mathewson
b5f3a3d6a7
Merge remote-tracking branch 'tor-github/pr/707' into maint-0.4.0
2019-02-19 11:34:21 -05:00
Nick Mathewson
af36af1a9b
Merge remote-tracking branch 'tor-github/pr/683'
2019-02-19 11:32:33 -05:00
Nick Mathewson
1239e411a7
Merge remote-tracking branch 'tor-github/pr/694'
2019-02-19 11:31:22 -05:00
Nick Mathewson
0db0b4769c
Merge remote-tracking branch 'tor-github/pr/678'
2019-02-19 11:30:27 -05:00
Nick Mathewson
8a5c66cbb0
Merge branch 'maint-0.4.0'
2019-02-19 11:27:21 -05:00
Nick Mathewson
26873bc4ed
Merge branch 'bug28698_035' into maint-0.4.0
2019-02-19 11:27:18 -05:00
José M. Guisado
78220aae1e
Add circuit time check before logging about relaxing circuit time
...
Signed-off-by: José M. Guisado <guigom@riseup.net>
2019-02-19 11:24:51 -05:00
Nick Mathewson
485803dffe
Merge branch 'maint-0.4.0'
2019-02-19 11:21:54 -05:00
Nick Mathewson
5c87add923
Merge remote-tracking branch 'tor-github/pr/701' into maint-0.4.0
2019-02-19 11:21:51 -05:00
teor
6c652eae0a
fixup! test_dir: Refactor common code out of the dir_format unit tests
2019-02-20 00:40:18 +10:00
Nick Mathewson
9a158a45b1
Bump to 0.4.1.0-alpha-dev
2019-02-19 09:29:43 -05:00
teor
51f59f213e
router: Add some missing #endif comments
2019-02-19 21:54:30 +10:00
teor
0c0f215822
routerkeys: Log failures at info-level in make_tap_onion_key_crosscert()
2019-02-19 21:54:13 +10:00
teor
39ab6c9f73
test_dir: Test descriptor variants
...
Including:
* relays and bridges,
* no stats, basic stats, and all stats
Part of 29017 and 29018.
2019-02-19 21:54:13 +10:00
teor
38fc52a50e
test_dir: Refactor common code out of the dir_format unit tests
...
Also:
* delete some obsolete code that was #if 0
* improve cleanup on failure
* make the dir_format tests more consistent with each other
* construct the descriptors using smartlist chunks
This refactor is incomplete, because removing the remaining duplicate
code would be time-consuming.
Part of 29017 and 29018.
2019-02-19 21:54:13 +10:00
teor
8e5df40018
test_dir: Test rsa + ed25519 extrainfo creation and parsing
...
Also fix a missing mock in rsa-only parsing.
2019-02-19 21:44:41 +10:00
teor
7a2c8daded
test_dir: Split test_dir_formats into separate rsa and rsa_ed25519 tests
2019-02-19 21:44:40 +10:00
teor
53b49d1a35
test_dir: Unit tests for RSA-only router and extrainfo descriptor creation
...
Tests 29017 and 29018.
2019-02-19 21:44:40 +10:00
teor
7c9450fb07
test_router: Add comment to explain mocking
...
Add comment in
test_router_dump_router_to_string_no_bridge_distribution_method to explain
the effect of a mocked function.
2019-02-19 21:43:12 +10:00
teor
a9f852a0f6
router: Document the additional config and state used to dump descriptors
...
Also, explicitly state when routerinfos and extra-infos are signed.
And tidy up some other comments.
Preparation for testing 29017 and 20918.
2019-02-19 21:43:07 +10:00
teor
a1f8558628
router: Move extrainfo signing into its own function
...
This refactoring improves the structure of router_build_fresh_descriptor().
Preparation for testing 29017 and 20918.
2019-02-19 21:41:43 +10:00
teor
9cab988696
router: eliminate router_update_info_send_unencrypted()
...
Remove router_update_info_send_unencrypted(), and move its code into the
relevant functions.
Then, re-use an options pointer.
Preparation for testing 29017 and 20918.
2019-02-19 21:41:43 +10:00
teor
af0a43be2c
router: eliminate tiny router_build_fresh_descriptor() static functions
...
Remove some tiny static functions called by router_build_fresh_descriptor(),
and move their code into more relevant functions.
Then, give router_update_{router,extra}info_descriptor_body identical layouts.
Preparation for testing 29017 and 20918.
2019-02-19 21:41:43 +10:00
teor
a65c101973
router: check for NULL in router_build_fresh_descriptor() static functions
...
Make sure that these static functions aren't passed NULL.
If they are, log a BUG() warning, and return an error.
Preparation for testing 29017 and 20918.
2019-02-19 21:41:43 +10:00
teor
f19b64dce9
router: refactor router_build_fresh_descriptor() static function interfaces
...
Tidy the arguments and return values of these functions, and clean up their
memory management.
Preparation for testing 29017 and 20918.
2019-02-19 21:41:36 +10:00
teor
6c5a506cdb
router: split router_build_fresh_descriptor() into static functions
...
Split the body of router_build_fresh_descriptor() into static functions,
by inserting function prologues and epilogues between existing sections.
Write a new body for router_build_fresh_descriptor() that calls the new
static functions.
Initial refactor with no changes to the body of the old
router_build_fresh_descriptor(), except for the split.
Preparation for testing 29017 and 20918.
2019-02-19 19:05:43 +10:00
teor
a798bd40fb
stats: Stop reporting statistics when ExtraInfoStatistics is 0
...
When ExtraInfoStatistics is 0, stop including bandwidth usage statistics,
GeoIPFile hashes, ServerTransportPlugin lines, and bridge statistics
by country in extra-info documents.
Fixes bug 29018; bugfix on 0.2.4.1-alpha (and earlier versions).
2019-02-19 19:01:44 +10:00
teor
361738c964
Merge branch 'bug29017-033' into bug29017-master-merge
2019-02-19 18:59:16 +10:00
Roger Dingledine
94f7e53d04
fix a bootstrapping string typo
...
introduced in 85542ee5
next step is to fix it in torspec too
2019-02-17 16:56:13 -05:00
Roger Dingledine
5dcd44cbe2
fix some of the typos in Maintaining.md
2019-02-17 16:55:55 -05:00
Neel Chauhan
384c5c6188
Make test-slow compile with libevent
2019-02-16 16:03:17 -05:00
rl1987
6fdd34acd6
Remove check-tor script
2019-02-15 19:18:24 +02:00
George Kadianakis
3093d8afbe
Fix tests to use the new design.
...
- All histogram tests were using start_usec/range_usec. We now manually specify
the edges.
- Also add a test for histogram_get_bin_upper_bound().
2019-02-15 17:43:41 +02:00
George Kadianakis
80abe4170d
Update all the histogram functions to use the new design.
2019-02-15 17:43:23 +02:00
George Kadianakis
98af25e013
Remove start_usec/range_usec and make equivalent fields for distributions.
2019-02-15 17:43:01 +02:00
George Kadianakis
f07c6ae57c
Add histogram fields in header file that allow specifying edges.
2019-02-15 17:42:17 +02:00
Matt Traudt
b054a6c6b9
kist: When readding chans, check correct chan's sched_heap_idx
...
Closes #29508
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-02-14 16:19:31 -05:00
David Goulet
6c173d00f5
Merge branch 'tor-github/pr/702'
2019-02-14 11:43:10 -05:00
George Kadianakis
00b073b1bc
Merge branch 'maint-0.3.5'
2019-02-14 18:01:07 +02:00
George Kadianakis
d83c299eba
Merge branch 'tor-github/pr/689' into maint-0.3.5
2019-02-14 18:00:05 +02:00
George Kadianakis
b804d5bc49
Merge branch 'maint-0.3.5'
2019-02-14 17:40:59 +02:00
George Kadianakis
9bfe4ed6dd
Merge branch 'tor-github/pr/536' into maint-0.3.5
2019-02-14 17:39:34 +02:00