Skip to content
Snippets Groups Projects
  1. May 27, 2021
  2. May 26, 2021
    • Nick Mathewson's avatar
      Prefer mmap()ed consensus files over cached_dir_t entries. · d12b1661
      Nick Mathewson authored
      Cached_dir_t is a somewhat "legacy" kind of storage when used for
      consensus documents, and it appears that there are cases when
      changing our settings causes us to stop updating those entries.
      
      This can cause trouble, as @arma found out in #40375, where he
      changed his settings around, and consensus diff application got
      messed up: consensus diffs were being _requested_ based on the
      latest consensus, but were being (incorrectly) applied to a
      consensus that was no longer the latest one.
      
      This patch is a minimal fix for backporting purposes: it has Tor do
      the same search when applying consensus diffs as we use to request
      them.  This should be sufficient for correct behavior.
      
      There's a similar case in GETINFO handling; I've fixed that too.
      
      Fixes #40375; bugfix on 0.3.1.1-alpha.
      d12b1661
  3. May 25, 2021
  4. May 17, 2021
  5. May 12, 2021
  6. May 10, 2021
  7. May 07, 2021
  8. May 05, 2021
  9. May 04, 2021
    • David Goulet's avatar
      hs: Fix ADD_ONION with client authorization · cf6e72b7
      David Goulet authored
      
      Turns out that passing client authorization keys to ADD_ONION for v3 was
      not working because we were not setting the "is_client_auth_enabled"
      flag to true once the clients were configured. This lead to the
      descriptor being encoded without the clients.
      
      This patch removes that flag and instead adds an inline function that
      can be used to check if a given service has client authorization
      enabled.
      
      This will be much less error prone of needing to keep in sync the client
      list and a flag instead.
      
      Fixes #40378
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      cf6e72b7
  10. Apr 23, 2021
  11. Apr 21, 2021
Loading