1. 27 Sep, 2018 1 commit
    • Nick Mathewson's avatar
      Move the predicted ports code out of rephist.c · 241c1505
      Nick Mathewson authored
      It differs from the rest of the rephist code in that it's actually
      necessary for Tor to operate, so it should probably go somewhere
      else.  I'm not sure where yet, so I'll leave it in the same
      directory, but give it its own file.
      241c1505
  2. 25 Sep, 2018 3 commits
  3. 21 Sep, 2018 1 commit
    • Nick Mathewson's avatar
      Split main.c into main.c and mainloop.c · c7ce6b98
      Nick Mathewson authored
      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.
      c7ce6b98
  4. 20 Sep, 2018 1 commit
    • Nick Mathewson's avatar
      Split most of dirserv.c into several new modules · b54a5e70
      Nick Mathewson authored
      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.
      b54a5e70
  5. 19 Sep, 2018 1 commit
  6. 15 Sep, 2018 1 commit
  7. 13 Sep, 2018 1 commit
  8. 12 Sep, 2018 1 commit
  9. 08 Sep, 2018 1 commit
  10. 07 Sep, 2018 1 commit
  11. 03 Sep, 2018 1 commit
  12. 28 Aug, 2018 1 commit
  13. 23 Aug, 2018 2 commits
  14. 21 Aug, 2018 1 commit
    • Nick Mathewson's avatar
      When enabling NSS, disable OpenSSL. · 6a88d8f6
      Nick Mathewson authored
      We used to link both libraries at once, but now that I'm working on
      TLS, there's nothing left to keep OpenSSL around for when NSS is
      enabled.
      
      Note that this patch causes a couple of places that still assumed
      OpenSSL to be disabled when NSS is enabled
         - tor-gencert
         - pbkdf2
      6a88d8f6
  15. 08 Aug, 2018 2 commits
  16. 01 Aug, 2018 1 commit
  17. 21 Jul, 2018 1 commit
  18. 16 Jul, 2018 1 commit
    • juga's avatar
      Add the Bandwidth List file headers to votes · e5dd46be
      juga authored
      * add bwlist_headers argument to dirserv_read_measured_bandwidth
        in order to store all the headers found when parsing the file
      * add bwlist_headers to networkstatus_t in order to store the
        the headers found by the previous function
      * include the bandwidth headers as string in vote documents
      * add test to check that dirserv_read_measured_bandwidth generates
        the bwlist_headers
      e5dd46be
  19. 11 Jul, 2018 1 commit
  20. 10 Jul, 2018 2 commits
  21. 07 Jul, 2018 1 commit
  22. 05 Jul, 2018 4 commits
    • Nick Mathewson's avatar
      Fix every include path changed in the previous commit (automated) · ef486e3c
      Nick Mathewson authored
      I am very glad to have written this script.
      ef486e3c
    • Nick Mathewson's avatar
      Move literally everything out of src/or · 63b4ea22
      Nick Mathewson authored
      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.
      63b4ea22
    • Nick Mathewson's avatar
      2d69c32b
    • Nick Mathewson's avatar
      Remove util.h · 45938298
      Nick Mathewson authored
      Inline its contents (which were all includes) into or.h, and some of
      its contents into other places that didn't include or.h at all.
      45938298
  23. 03 Jul, 2018 2 commits
  24. 01 Jul, 2018 3 commits
  25. 29 Jun, 2018 3 commits
  26. 28 Jun, 2018 2 commits