aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
AgeCommit message (Collapse)Author
2018-07-01Minimize headers that include crypto_formats and x25519 stuffNick Mathewson
2018-07-01Remove needless includes from or.hNick Mathewson
or.h should really include only the minimum of stuff from or/*, common/*, and lib/*.
2018-06-29Extract get_uname to lib/osinfo.Nick Mathewson
2018-06-28Fix up the modules that include memarea.h (automated)Nick Mathewson
2018-06-25Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-24Add some casts to get test_dir.c compiling on windows.Nick Mathewson
Fixed bug 26479. Bug introduced by 0a6f4627a4292e4; bug not in any released version.
2018-06-21Rectify include paths (automated)Nick Mathewson
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20eol@eof in test-dir.cNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-06-15Extract routerinfo_t into its own header.Nick Mathewson
I was expecting this to be much worse.
2018-06-15Extract extrainfo_t into its own headerNick Mathewson
2018-06-15Extract authority_cert_t into its own headerNick Mathewson
2018-06-15Extract desc_store_t and routerlist_t into their own headers.Nick Mathewson
2018-06-15Extract ns_detached_signatures_st into its own header.Nick Mathewson
2018-06-15Extract networkstatus_t and ..sr_info_t into their own headersNick Mathewson
2018-06-15Extract networkstatus_vote_info_t into its own header.Nick Mathewson
2018-06-15Move document_signature_t into its own header.Nick Mathewson
2018-06-15Split vote_{microdesc_hash,routerstatus}_t into their own headersNick Mathewson
2018-06-15Move fp_pair_t declaration to fp_pair.h.Nick Mathewson
2018-06-15Extract tor_version_t into its own header.Nick Mathewson
2018-06-14Make server_port_cfg_t and port_cfg_t into separate headers.Nick Mathewson
2018-05-10Merge branch 'maint-0.3.3'Nick Mathewson
2018-05-10Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-05-10Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-05-10Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-05-09Test read bandwidth measurements with empty filejuga0
2018-05-08Merge branch 'bug26004_029_squashed'Nick Mathewson
2018-05-08Allow bandwidth-file lines to have node_id in the last positionjuga0
Closes ticket 26004.
2018-05-03Merge remote-tracking branch 'isis/bug24660_r1'Nick Mathewson
2018-05-01vote: Move dirvote_recalculate_timing() to voting_schedule.cDavid Goulet
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>
2018-05-01Merge remote-tracking branch 'dgoulet/ticket25610_034_01-squashed'Nick Mathewson
2018-04-30Merge remote-tracking branch 'github/ticket23354'Nick Mathewson
2018-04-27mod: Move dirauth specific files to its own moduleDavid Goulet
This is a pretty big commit but it only moves these files to src/or/dirauth: dircollate.c dirvote.c shared_random.c shared_random_state.c dircollate.h dirvote.h shared_random.h shared_random_state.h Then many files are modified to change the include line for those header files that have moved into a new directory. Without using --disable-module-dirauth, everything builds fine. When using the flag to disable the module, tor doesn't build due to linking errors. This will be addressed in the next commit(s). No code behavior change. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-22Remove MIN_METHOD_FOR_{SHARED_RANDOM,EXCLUDING_INVALID_NODES}Nick Mathewson
Also remove client detection for pre-EXCLUDING_INVALID_NODES consensuses, and a test for that detection.
2018-04-22Remove MIN_METHOD_FOR and MIN_METHOD_FOR_A_LINESNick Mathewson
Also, in networkstatus.c, remove client code for recognizing pre- MIN_METHOD_FOR_A_LINES consensuses, and corresponding unit tests in test_dir.c.
2018-04-22Disable consensus methods before 25.Nick Mathewson
Consensus method 25 is the oldest one supported by any stable version of 0.2.9, which is our current most-recent LTS. Thus, by proposal 290, they should be removed. This commit does not actually remove the code to implement these methods: it only makes it so authorities will no longer support them. I'll remove the backend code for them in later commits.
2018-04-22Rename find_dl_schedule to find_dl_min_delay.Nick Mathewson
(We no longer need two separate functions here.)
2018-04-22Change the type of "download schedule" from smartlist to int.Nick Mathewson
This is done as follows: * Only one function (find_dl_schedule()) actually returned a smartlist. Now it returns an int. * The CSV_INTERVAL type has been altered to ignore everything after the first comma, and to store the value before the first comma in an int.
2018-04-06crypto: Refactor (P)RNG functionality into new crypto_rand module.Isis Lovecruft
* ADD new /src/common/crypto_rand.[ch] module. * ADD new /src/common/crypto_util.[ch] module (contains the memwipe() function, since all crypto_* modules need this). * FIXES part of #24658: https://bugs.torproject.org/24658
2018-03-03Merge branch 'ticket23814' into maint-0.3.3Nick Mathewson
2018-02-07Fix spelling mistakes corresponding to ticket #23650Deepesh Pathak
2018-01-25Remove all the old max_delay logic.Nick Mathewson
We had tests for it, but it was always INT_MAX.
2018-01-25Remove the old ("deterministic") download schedule.Nick Mathewson
We haven't meant to use it since we introduced the random exponential schedule. Closes ticket 23814.
2018-01-03In networkstatus_consensus_has_ipv6 test, use approx_time()Nick Mathewson
This may (or may not) fix up some reliability issues we've been seeing with this test on windows.
2017-12-12Merge branch 'maint-0.3.2'Nick Mathewson
2017-12-12Make sure bridges are definitely running before delaying directory fetchesteor
Retry directory downloads when we get our first bridge descriptor during bootstrap or while reconnecting to the network. Keep retrying every time we get a bridge descriptor, until we have a reachable bridge. Stop delaying bridge descriptor fetches when we have cached bridge descriptors. Instead, only delay bridge descriptor fetches when we have at least one reachable bridge. Fixes bug 24367; bugfix on 0.2.0.3-alpha.
2017-12-11Run the download_status_increment test in a forked process.Nick Mathewson
It messes with global state somehow in a way that makes several of the entryconn tests fail now.
2017-12-11fixup! Add networkstatus_consensus_has_ipv6() and unit teststeor
This is what happens when you don't run: make check-spaces make check-changes