summaryrefslogtreecommitdiff
path: root/src/feature/dirauth
AgeCommit message (Collapse)Author
2019-06-05Merge remote-tracking branch 'tor-github/pr/988' into maint-0.4.0Nick Mathewson
2019-06-05Merge remote-tracking branch 'tor-github/pr/1020' into maint-0.4.0Nick Mathewson
2019-05-14Add a --list-modules commandNick Mathewson
Closes ticket 30452.
2019-04-29Merge branch 'bug30316_035' into bug30316_040Nick Mathewson
Fixes conflicts and also moves bandwidth-file-digest.
2019-04-29Move bandwidth-file-headers line to appear in the correct vote sectionNick Mathewson
Fixes bug 30316; bugfix on 0.3.5.1-alpha.
2019-04-04bwauth: Actually include the bandwidth-file-digest in authority votesteor
Fixes bug 29959; bugfix on 0.4.0.2-alpha.
2019-03-26Merge branch 'ticket29806_035_squashed_merged' into ↵teor
ticket29806_040_squashed_merged
2019-03-21Merge branch 'ticket29806_034_squashed' into ticket29806_035_squashed_mergedteor
Copy and paste the vote=0 code from the old src/or/dirserv.c to the new src/feature/dirauth/bwauth.c.
2019-03-20Merge branch 'maint-0.3.4' into maint-0.3.5teor
2019-03-12Merge remote-tracking branch 'tor-github/pr/776' into maint-0.4.0Nick Mathewson
2019-02-13dirvote: Add the bandwidth file digest in the votejuga0
2019-02-13test: Add test to get the digest of a bw filejuga0
2019-02-13bwauth: Add function to get the digest of a bw filejuga0
2019-01-16Bump copyright date to 2019Nick Mathewson
2019-01-16Bump copyright date to 2019.Nick Mathewson
2018-12-05Merge remote-tracking branch 'public/prop298'Nick Mathewson
2018-12-05Merge branch 'prop293_squashed'Nick Mathewson
2018-12-03Make input argument const in set_routerstatus_from_routerinfo.Nick Mathewson
2018-12-03Keep list of dirauth flags in sync between dirvote.c and fuzz_vrs.cNick Mathewson
Suggested by Teor on PR
2018-12-01Merge branch 'maint-0.3.5'Nick Mathewson
2018-11-30sr: Switch from tor_assert() to BUG()Neel Chauhan
Closes #19566 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-11-25Vote on the StaleDesc flag from prop293Nick Mathewson
The StaleDesc flag tells relays that they need to upload a new descriptor soon, or they will drop out of the consensus.
2018-11-24Add a consensus method in which md families get canonicalized.Nick Mathewson
Implements prop298. Closes ticket 28266.
2018-11-09Merge branch 'subsystems'Nick Mathewson
2018-11-06Merge remote-tracking branch 'tor-github/pr/464'Nick Mathewson
2018-11-05Move the code that knows our tor version into a lowest-level libNick Mathewson
2018-10-31Merge branch 'networkstatus_mmap' into networkstatus_mmap_mergeNick Mathewson
2018-10-23dircache: make dirauths reject non UTF-8 descriptors and extrainfocypherpunks
Ticket #27367.
2018-10-12Merge remote-tracking branch 'tor-github/pr/380'Nick Mathewson
2018-10-01Remove versions.h include from routerparse.hNick Mathewson
2018-10-01extract networkstatus parsing to its own file.Nick Mathewson
2018-10-01Pull detached-signatures code into dirauth.Nick Mathewson
2018-10-01Split microdescriptor parser into its own file.Nick Mathewson
2018-10-01Split the authority-cert and signature/hash code from routerparseNick Mathewson
2018-10-01Move routerparse and parsecommon to their own module.Nick Mathewson
2018-09-27Fix a memory leak in --dump-configNick Mathewson
When freeing a configuration object from confparse.c in dump_config(), we need to call the appropriate higher-level free function (like or_options_free()) and not just config_free(). This only happens with options (since they're the one where options_validate allocates extra stuff) and only when running --dump-config with something other than minimal (since OPTIONS_DUMP_MINIMAL doesn't hit this code). Fixes bug 27893; bugfix on 0.3.2.1-alpha.
2018-09-25Revise things that had included router.h beforeNick Mathewson
Make them only include the headers that they needed, and sort their headers while we're at it.
2018-09-25Move all authdir_mode_*() functions into authmode.hNick Mathewson
2018-09-25Rename dirauth/mode.h to dirauth/authmode.hNick Mathewson
This is preparation for having a routermode.h as well
2018-09-21Split directory.c code into several modulesNick Mathewson
Parts of this C file naturally belong in dircache, dirclient, and dircommon: so, move them there.
2018-09-21Split main.c into main.c and mainloop.cNick Mathewson
The main.c code is responsible for initialization and shutdown; the mainloop.c code is responsible for running the main loop of Tor. Splitting the "generic event loop" part of mainloop.c from the event-loop-specific part is not done as part of this patch.
2018-09-20Split most of dirserv.c into several new modulesNick Mathewson
In dirauth: * bwauth.c reads and uses bandwidth files * guardfraction.c reads and uses the guardfraction file * reachability.c tests relay reachability * recommend_pkg.c handles the recommended-packages lines. * recv_descs.c handles fingerprint files and processing incoming routerinfos that relays upload to us * voteflag.c computes flag thresholds and sets those thresholds on routerstatuses when computing votes In control: * fmt_serverstatus.c generates the ancient "v1 server status" format that controllers expect. In nodelist: * routerstatus_fmt.c formats routerstatus entries for a consensus, a vote, or for the controller.
2018-09-19Split routerlist.c into 4 separate modulesNick Mathewson
There are now separate modules for: * the list of router descriptors * the list of authorities and fallbacks * managing authority certificates * selecting random nodes
2018-09-11Replace "read consensus from disk" with "map consensus from disk".Nick Mathewson
Implements 27244, and should save a bunch of RAM on clients.
2018-09-11Revise networkstatus parsing code to use lengthsNick Mathewson
This way the networkstatus can be parsed without being NUL-terminated, so we can implement 27244 and mmap our consensus objects.
2018-08-29Merge branch 'ticket27246_035_01_squashed'Nick Mathewson
2018-08-29router: Keep RSA onion public key in ASN.1 formatDavid Goulet
The OpenSSL "RSA" object is currently 408 bytes compares to the ASN.1 encoding which is 140 for a 1024 RSA key. We save 268 bytes per descriptor (routerinfo_t) *and* microdescriptor (microdesc_t). Scaling this to 6000 relays, and considering client usually only have microdescriptors, we save 1.608 MB of RAM which is considerable for mobile client. This commit makes it that we keep the RSA onion public key (used for TAP handshake) in ASN.1 format instead of an OpenSSL RSA object. Changes is done in both routerinfo_t and microdesc_t. Closes #27246 Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-08-24Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-30Merge remote-tracking branch 'juga/ticket3723_03_squashed_rebased'Nick Mathewson
2018-07-18Add some missing includes and struct declarations.Nick Mathewson