1. 16 Apr, 2021 1 commit
    • Nick Mathewson's avatar
      Stop calling evdns_set_random_bytes_fn() · f20f5a4e
      Nick Mathewson authored
      This function has been a no-op since Libevent 2.0.4-alpha, when
      libevent got an arc4random() implementation.  Libevent has finally
      removed it, which will break our compilation unless we stop calling
      it.  (This is currently breaking compilation in OSS-fuzz.)
      
      Closes #40371.
      f20f5a4e
  2. 06 May, 2020 2 commits
    • Nick Mathewson's avatar
      Use __attribute__((fallthrough)) rather than magic GCC comments. · cc397449
      Nick Mathewson authored
      GCC added an implicit-fallthrough warning a while back, where it
      would complain if you had a nontrivial "case:" block that didn't end
      with break, return, or something like that.  Clang recently added
      the same thing.
      
      GCC, however, would let you annotate a fall-through as intended by
      any of various magic "/* fall through */" comments.  Clang, however,
      only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
      accepts that too.
      
      A previous commit in this branch defined a FALLTHROUGH macro to do
      the right thing if GNUC is defined; here we replace all of our "fall
      through" comments with uses of that macro.
      
      This is an automated commit, made with the following perl one-liner:
      
        #!/usr/bin/perl -i -p
        s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;
      cc397449
    • Nick Mathewson's avatar
  3. 17 May, 2019 1 commit
  4. 16 Jan, 2019 1 commit
  5. 17 Dec, 2018 1 commit
  6. 25 Sep, 2018 2 commits
  7. 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
  8. 17 Jul, 2018 1 commit
  9. 16 Jul, 2018 1 commit
  10. 05 Jul, 2018 3 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
  11. 01 Jul, 2018 2 commits
  12. 27 Jun, 2018 1 commit
  13. 21 Jun, 2018 1 commit
  14. 20 Jun, 2018 2 commits
  15. 15 Jun, 2018 2 commits
  16. 06 Apr, 2018 1 commit
  17. 04 Apr, 2018 1 commit
  18. 07 Feb, 2018 1 commit
  19. 08 Dec, 2017 1 commit
  20. 16 Nov, 2017 1 commit
    • Nick Mathewson's avatar
      Downgrade evdns warnings about weird replies. · 2a98fcb8
      Nick Mathewson authored
      evdns is allowed to give us unrecognized object types; it is allowed
      to give us non-IPv4 answer types, and it is (even) allowed to give
      us empty answers without an error.
      
      Closes ticket 24097.
      2a98fcb8
  21. 09 Nov, 2017 1 commit
    • Nick Mathewson's avatar
      Audit all of the "is the network turned off" checks. · 0c6eabf0
      Nick Mathewson authored
      DisableNetwork is a subset of net_is_disabled(), which is (now) a
      subset of should_delay_dir_fetches().
      
      Some of these changes are redundant with others higher or lower in
      the call stack.  The ones that I think are behavior-relevant are
      listed in the changes file.  I've also added comments in a few
      places where the behavior is subtle.
      
      Fixes bug 12062; bugfix on various versions.
      0c6eabf0
  22. 05 Nov, 2017 1 commit
  23. 15 Sep, 2017 1 commit
  24. 11 Sep, 2017 1 commit
  25. 03 Aug, 2017 1 commit
  26. 01 Jul, 2017 1 commit
  27. 23 Jun, 2017 1 commit
  28. 30 May, 2017 1 commit
  29. 26 May, 2017 1 commit
  30. 15 May, 2017 1 commit
  31. 15 Mar, 2017 1 commit
  32. 18 Jan, 2017 2 commits