1. 08 Dec, 2017 1 commit
  2. 15 Sep, 2017 2 commits
  3. 05 Sep, 2017 1 commit
  4. 15 May, 2017 3 commits
  5. 04 May, 2017 1 commit
  6. 01 May, 2017 1 commit
  7. 25 Apr, 2017 2 commits
  8. 17 Apr, 2017 1 commit
  9. 28 Mar, 2017 1 commit
    • Nick Mathewson's avatar
      Refactor the directory spool implementation · 8aa69a1b
      Nick Mathewson authored
      The old implementation had duplicated code in a bunch of places, and
      it interspersed spool-management with resource management.  The new
      implementation should make it easier to add new resource types and
      maintain the spooling code.
      
      Closing ticket 21651.
      8aa69a1b
  10. 15 Mar, 2017 1 commit
  11. 09 Nov, 2016 1 commit
  12. 04 Nov, 2016 1 commit
  13. 07 Sep, 2016 2 commits
  14. 30 Jun, 2016 1 commit
  15. 11 Jun, 2016 3 commits
    • Nick Mathewson's avatar
      Add -Wmissing-variable-declarations, with attendant fixes · 53a3b39d
      Nick Mathewson authored
      This is a big-ish patch, but it's very straightforward.  Under this
      clang warning, we're not actually allowed to have a global variable
      without a previous extern declaration for it.  The cases where we
      violated this rule fall into three roughly equal groups:
        * Stuff that should have been static.
        * Stuff that was global but where the extern was local to some
          other C file.
        * Stuff that was only global when built for the unit tests, that
          needed a conditional extern in the headers.
      
      The first two were IMO genuine problems; the last is a wart of how
      we build tests.
      53a3b39d
    • Nick Mathewson's avatar
      Use autoconf, not gcc version, to decide which warnings we have · 9bbd6502
      Nick Mathewson authored
      This gives more accurate results under Clang, which can only help us
      detect more warnings in more places.
      
      Fixes bug 19216; bugfix on 0.2.0.1-alpha
      9bbd6502
    • Nick Mathewson's avatar
      Enable -Woverlength-strings for GCC>=4.6 on MOST of the code. · 4caed242
      Nick Mathewson authored
      IMO it's fine for us to make exceptions to this rule in the unit
      tests, but not in the code at large.
      4caed242
  16. 30 May, 2016 2 commits
  17. 27 May, 2016 1 commit
    • Roger Dingledine's avatar
      Disable GET /tor/bytes.txt and GETINFO dir-usage · 11d52a44
      Roger Dingledine authored
      Remove support for "GET /tor/bytes.txt" DirPort request, and
      "GETINFO dir-usage" controller request, which were only available
      via a compile-time option in Tor anyway.
      
      Feature was added in 0.2.2.1-alpha. Resolves ticket 19035.
      11d52a44
  18. 11 May, 2016 1 commit
  19. 22 Mar, 2016 1 commit
  20. 11 Mar, 2016 3 commits
    • Roger Dingledine's avatar
      simplify rend_cache_store_status_t back to a boolean · edeba3d4
      Roger Dingledine authored
      it used to be a tri-state, but now it's just a bi-state, so we can
      take out all the machinery like the enum.
      edeba3d4
    • Roger Dingledine's avatar
      rip out hid_serv_acting_as_directory() · 53902963
      Roger Dingledine authored
      When we made HidServDirectoryV2 always 1, we removed the situation
      where a relay could choose not to be an HSDir. Now simplify the
      rest of the code to reflect this decision.
      
      (We have to remove two apparently unrelated free() calls in the unit
      tests, since they used to free stuff that we created as a side effect
      of calling router_get_my_routerinfo(), and now we no longer call that.)
      53902963
    • Roger Dingledine's avatar
      rip out hid_serv_responsible_for_desc_id() · e167910f
      Roger Dingledine authored
      This simplifies relay behavior, because the relay offers the hsdir
      functionality independent of whether the directory authorities have
      decided this relay is suitable for clients to use yet.
      
      Implements ticket 18332.
      e167910f
  21. 27 Feb, 2016 1 commit
  22. 22 Feb, 2016 1 commit
  23. 10 Feb, 2016 1 commit
    • Nick Mathewson's avatar
      Rename crypto_digest_all, and digests_t. · 8a4bba06
      Nick Mathewson authored
      They are no longer "all" digests, but only the "common" digests.
      
      Part of 17795.
      
      This is an automated patch I made with a couple of perl one-liners:
      
        perl -i -pe 's/crypto_digest_all/crypto_common_digests/g;' src/*/*.[ch]
        perl -i -pe 's/\bdigests_t\b/common_digests_t/g;' src/*/*.[ch]
      8a4bba06
  24. 14 Dec, 2015 1 commit
    • teor (Tim Wilson-Brown)'s avatar
      Authorities on IPv6: minor fixes and unit tests · 1c2366ea
      teor (Tim Wilson-Brown) authored
      Update the code for IPv6 authorities and fallbacks for function
      argument changes.
      
      Update unit tests affected by the function argument changes in
      the patch.
      
      Add unit tests for authority and fallback:
       * adding via a function
       * line parsing
       * adding default authorities
      (Adding default fallbacks is unit tested in #15775.)
      1c2366ea
  25. 09 Dec, 2015 1 commit
    • cypherpunks's avatar
      Fix buffer over-reads in the directory tests · 3d0d2a51
      cypherpunks authored and Nick Mathewson's avatar Nick Mathewson committed
      The tests pass empty digest strings to the dir_server_new function which
      copies it into a directory server structure. The copy operation expects
      the digest strings to be DIGEST_LEN characters long.
      
      Because the length of the empty digest strings are lower than
      DIGEST_LEN, the copy operation reads outside the digest strings which
      leads to buffer over-reads.
      
      The issue is resolved by using character arrays with a size of
      DIGEST_LEN.
      
      Patch on 4ff08bb5.
      3d0d2a51
  26. 21 Oct, 2015 3 commits
  27. 02 Oct, 2015 2 commits