summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
AgeCommit message (Collapse)Author
2018-07-05Move literally everything out of src/orNick Mathewson
This commit won't build yet -- it just puts everything in a slightly more logical place. The reasoning here is that "src/core" will hold the stuff that every (or nearly every) tor instance will need in order to do onion routing. Other features (including some necessary ones) will live in "src/feature". The "src/app" directory will hold the stuff needed to have Tor be an application you can actually run. This commit DOES NOT refactor the former contents of src/or into a logical set of acyclic libraries, or change any code at all. That will have to come in the future. We will continue to move things around and split them in the future, but I hope this lays a reasonable groundwork for doing so.
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-28Fix paths for buffers.h; automated.Nick Mathewson
2018-06-26Merge branch 'log_dependencies'Nick Mathewson
2018-06-24we've never been good at using "directory" well as a nounRoger Dingledine
2018-06-22Remove bloom filters, order statistics, and bitarrays from container.hNick 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 cached_dir_t into a new header.Nick Mathewson
2018-06-15Extract routerinfo_t into its own header.Nick Mathewson
I was expecting this to be much worse.
2018-06-15Extract microdesc_t into its own header.Nick Mathewson
2018-06-15Extract extrainfo_t into its own headerNick Mathewson
2018-06-15Extract desc_store_t and routerlist_t into their own headers.Nick Mathewson
2018-06-15Split vote_{microdesc_hash,routerstatus}_t into their own headersNick Mathewson
2018-06-15Extract node_t into its own header.Nick Mathewson
2018-06-15Extract tor_version_t into its own header.Nick Mathewson
2018-06-15Split dir_connection_t into its own headerNick Mathewson
2018-05-09Comment-only fix: annotate we_are_hibernating() usageNick Mathewson
Everywhere we use we_are_hibernating(), remind the reader what it means. (Also, add an XXXX to note a DisableNetwork usage to change later.)
2018-05-08Merge branch 'bug26004_029_squashed'Nick Mathewson
2018-05-08Avoid unsigned integer underflow on empty input.Nick Mathewson
2018-05-08Allow bandwidth-file lines to have node_id in the last positionjuga0
Closes ticket 26004.
2018-05-02Merge branch 'maint-0.3.3'Nick Mathewson
2018-05-02Merge branch 'maint-0.3.2' into maint-0.3.3Nick Mathewson
2018-05-02Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-05-02Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-05-02Stop logging stack contents when reading a zero-length bandwidth fileteor
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.
2018-05-01Rename dirvote_common.{c|h} to voting_schedule.{c|h}David Goulet
No code behavior change. Part of #25988 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-05-01Merge remote-tracking branch 'ffmancera-1/bug20522'Nick Mathewson
2018-05-01dirvote: Move the vote creation code into dirvote.cDavid Goulet
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>
2018-04-27dirvote: Rename authority_cert_dup()David Goulet
Renamed to follow the file namespace. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-27dirvote: Extract shared functions to common fileDavid Goulet
No code behavior change. Signed-off-by: David Goulet <dgoulet@torproject.org>
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-05Enable DISABLE_DISABLING_ED25519.Fernando Fernandez Mancera
We are going to stop recommending 0.2.5 so there is no reason to keep the undef statement anymore. Fixes #20522. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
2018-04-02Merge branch 'maint-0.3.3'Nick Mathewson
2018-04-02dir auths no longer vote Guard if they're not voting V2DirRoger Dingledine
Directory authorities no longer vote in favor of the Guard flag for relays that don't advertise directory support. Starting in Tor 0.3.0.1-alpha, Tor clients have been avoiding using such relays in the Guard position, leading to increasingly broken load balancing for the 5%-or-so of Guards that don't advertise directory support. Fixes bug 22310; bugfix on 0.3.0.6.
2018-03-06Refactor: suppress duplicated functions from router.c and encapsulate ↵Caio Valente
NODE_DESC_BUF_LEN constant. Also encapsulates format_node_description(). Closes ticket 25432.
2018-03-04Fix a crash bug when testing reachabilityNick Mathewson
Fixes bug 25415; bugfix on 0.3.3.2-alpha.
2018-02-15Merge remote-tracking branch 'valentecaio/t-25081'Nick Mathewson
2018-02-13Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-02-13Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-02-13dirserv: Improve returned message when relay is rejectedDavid Goulet
Explicitly inform the operator of the rejected relay to set a valid email address in the ContactInfo field and contact bad-relays@ mailing list. Fixes #25170 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-02-08dirserv: Improve returned message when relay is rejectedDavid Goulet
Explicitly inform the operator of the rejected relay to set a valid email address in the ContactInfo field and contact bad-relays@ mailing list. Fixes #25170 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-02-07Fix spelling mistakes corresponding to ticket #23650Deepesh Pathak
2018-01-31refactor: using get_uptime() (and reset_uptime()) consistently.Caio Valente
Using get_uptime() and reset_uptime() instead of accessing stats_n_seconds_working directly. stats_n_seconds_working is not extern anymore. Ticket #25081
2017-12-08Merge branch 'macro_free_v2_squashed'Nick Mathewson
2017-12-08Change the free macro convention in the rest of src/or/*.hNick Mathewson
2017-12-06Merge remote-tracking branch 'teor/bug24488'Nick Mathewson