summaryrefslogtreecommitdiff
path: root/src/or/routerparse.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-03Merge remote-tracking branch 'github/ticket26626'Nick Mathewson
2018-07-03Return U64_PRINTF_ARG and U64_FORMATNick Mathewson
The standard is printf("%"PRIu64, x);
2018-07-03Replace U64_LITERAL with the standard UINT64_CNick Mathewson
2018-07-01Remove system headers from or.hNick Mathewson
2018-07-01Extract addr_policy_t into a new header.Nick Mathewson
2018-07-01Minimize headers that include crypto_formats and x25519 stuffNick Mathewson
2018-06-28Fix up the modules that include memarea.h (automated)Nick Mathewson
2018-06-27Fix up include paths for sandbox.h (automated)Nick Mathewson
2018-06-22Remove bloom filters, order statistics, and bitarrays from container.hNick Mathewson
2018-06-21Rectify include paths (automated)Nick Mathewson
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-06-15Move extend_info_t into its own 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 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-15Split rend_authorized_client_t and encoded_.._t into their own headersNick Mathewson
2018-06-15Extract rend_intro_point_t into its own header.Nick Mathewson
2018-06-15Extract rend_service_descriptor_t into its own header.Nick Mathewson
2018-06-15Extract tor_version_t into its own header.Nick Mathewson
2018-05-03Merge remote-tracking branch 'isis/bug24660_r1'Nick Mathewson
2018-05-01sr: Rename shared_random_common.{c|h} to shared_random_client.{c|h}David Goulet
No code behavior change. Pars of #25988 Signed-off-by: David Goulet <dgoulet@torproject.org>
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-01ns: Move dirvote_get_voter_sig_by_alg() to networkstatus.cDavid Goulet
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>
2018-04-27dirvote: Move SR commit parsing into dirauth moduleDavid Goulet
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>
2018-04-27dirvote: Rename voter_get_sig_by_algorithm()David Goulet
In order to follow the public namespace of dirvote. 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-27sr: Extract shared SR functionsDavid Goulet
Move most of the shared random functions that are needed outside of the dirauth module. At this commit, because dirvote.c hasn't been refactor, it doesn't compile because some SR functions need a dirvote function. Furthermore, 5 functions haven't been touched yet because they are dirauth only but are in used in other C files than the dirauth module ones. No code behavior change. Only moving code around. 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-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-06refactor: Alphabetise some includes in /src/or/*.Isis Lovecruft
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-01-31Fix a failing unit test.Nick Mathewson
When we stopped looking at the "protocols" variable directly, we broke the hs_service/build_update_descriptors test, since it didn't actually update any of the flags. The fix here is to call summarize_protover_flags() from that test, and to expose summarize_protover_flags() as "STATIC" from routerparse.c.
2018-01-31Look at the correct protocol for supports_v3_rendezvous_pointNick Mathewson
Fixes bug 25105; bugfix on 0.3.2.1-alpha.
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-24Also cache the protover summary in the routerinfo_t, if we're using thatNick Mathewson
2018-01-24Extract code to summarize protocol versions into new functionNick Mathewson
This will let us put this summary into routerinfo_t too. No behavior change.
2018-01-24Extract protover summary flags into a new structureNick Mathewson
This will let us use them on routerinfo_t as well as on routerstatus_t, and save some time on relays. No behavioral changes here.
2017-11-09Merge branch 'ticket20895'Nick Mathewson
2017-11-01easy typos while reviewing commitsRoger Dingledine
2017-09-15Merge branch 'scan-build-032'Nick Mathewson