1. 27 Sep, 2018 1 commit
    • Nick Mathewson's avatar
      Fix a memory leak in --dump-config · 8812f562
      Nick Mathewson authored
      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
  2. 05 Jul, 2018 2 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.
    • 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.
  3. 01 Jul, 2018 2 commits
  4. 21 Jun, 2018 1 commit
  5. 20 Jun, 2018 2 commits
  6. 01 May, 2018 4 commits
  7. 27 Apr, 2018 2 commits
    • David Goulet's avatar
      sr: Extract shared SR functions · bdcf3a38
      David Goulet authored
      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's avatarDavid Goulet <dgoulet@torproject.org>
    • David Goulet's avatar
      mod: Move dirauth specific files to its own module · 2115a54b
      David Goulet authored
      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's avatarDavid Goulet <dgoulet@torproject.org>
  8. 06 Apr, 2018 1 commit
  9. 07 Feb, 2018 1 commit
  10. 08 Dec, 2017 2 commits
  11. 27 Oct, 2017 1 commit
  12. 26 Sep, 2017 1 commit
    • Nick Mathewson's avatar
      Add test to make sure all confparse variables are well-typed · eb54a856
      Nick Mathewson authored
      New approach, suggested by Taylor: During testing builds, we
      initialize a union member of an appropriate pointer type with the
      address of the member field we're trying to test, so we can make
      sure that the compiler doesn't warn.
      My earlier approach invoked undefined behavior.
  13. 15 Sep, 2017 1 commit
  14. 19 Aug, 2017 1 commit
  15. 09 Aug, 2017 3 commits
  16. 03 Aug, 2017 1 commit
  17. 15 Mar, 2017 1 commit
  18. 19 Aug, 2016 1 commit
  19. 16 Aug, 2016 1 commit
  20. 03 Aug, 2016 2 commits
  21. 04 Jul, 2016 2 commits
  22. 01 Jul, 2016 7 commits