Skip to content
Snippets Groups Projects
  1. Oct 31, 2019
    • teor's avatar
      config: Move server transport config into the relay module · 11f283f5
      teor authored
      This commit:
      * creates feature/relay/transport_config.[ch],
      * moves server transport config checks into them,
      * exposes some code from src/app/config.c
        (we'll refactor it later in 29211), and
      * adds thin wrappers to make the moved code compile.
      
      No functional changes: the moved code is still enabled,
      even if the relay module is disabled. (Some of the checks
      are re-ordered, so the order of some warnings may change.)
      
      Part of 32213.
      11f283f5
    • teor's avatar
      config: Move relay config checks into the relay module · 093a127c
      teor authored
      This commit:
      * moves relay config checks into relay_config.[ch],
      * exposes some code from src/app/config.c
        (we'll refactor it later in 29211), and
      * adds thin wrappers to make the moved code compile.
      
      No functional changes: the moved code is still enabled,
      even if the relay module is disabled. (Some of the checks
      are re-ordered, so the order of some warnings may change.)
      
      Part of 32213.
      093a127c
    • teor's avatar
      config: Move relay port parsing into the relay module · 0722b4fd
      teor authored
      This commit:
      * creates feature/relay/relay_config.[ch],
      * moves relay port parsing into them,
      * exposes some code from src/app/config.c
        (we'll refactor it later in 29211), and
      * adds thin wrappers to make the moved code compile.
      
      No functional changes: the moved code is still enabled,
      even if the relay module is disabled.
      
      Part of 32213.
      0722b4fd
    • teor's avatar
      dirauth: Remove some outdated config comments · f70633d7
      teor authored
      Part of 32213.
      f70633d7
    • teor's avatar
      dirauth: Refactor some config checks · 3881ac2c
      teor authored
      Minor cleanup and simplification.
      
      Part of 32213.
      3881ac2c
    • teor's avatar
      dirauth: Disable dirauth config when the module is disabled · da49c4d7
      teor authored
      Part of 32213.
      da49c4d7
    • teor's avatar
      config: Move dirauth config into the dirauth module · 5950566f
      teor authored
      This commit:
      * creates feature/dirauth/dirauth_config.[ch],
      * moves the dirauth config code into them,
      * copies some macros from src/app/config.c
        (we'll refactor them later in 29211), and
      * adds thin wrappers to make the moved code compile.
      
      No functional changes: the moved code is still enabled,
      even if the dirauth module is disabled.
      
      Part of 32213.
      5950566f
  2. Oct 28, 2019
  3. Oct 26, 2019
  4. Oct 25, 2019
    • Nick Mathewson's avatar
      Make foo_validate() functions call config_validate(). · dc6d7f07
      Nick Mathewson authored
      The former foo_validate() functions are now toplevel
      legacy_validate_fn callbacks.  The new foo_validate() functions now
      call them.
      
      This change lets us remove the old shared_random disk state
      validation callback entirely.
      dc6d7f07
    • Nick Mathewson's avatar
      Rename validate_fn{,_t} to start with "legacy_". · 4a248baf
      Nick Mathewson authored
      The current API of this callback mixes responsibilities, including:
        * validation
        * transition checking
        * processing (modifying) the configuration object.
      
      These will have to be disentangled piece by piece, so for now, we'll
      have "legacy" validate functions as well.
      
      This is an automated commit, generated by this command:
      
      ./scripts/maint/rename_c_identifier.py \
              validate_fn_t legacy_validate_fn_t \
              validate_fn legacy_validate_fn
      4a248baf
    • Nick Mathewson's avatar
      Use named-member syntax for initializing config_format_t objects · 27dbf20b
      Nick Mathewson authored
      I'm about to mess with their lists of callbacks, and I don't want to
      proliferate lists where we say "NULL, NULL, NULL, ..."
      27dbf20b
  5. Oct 24, 2019
  6. Oct 23, 2019
    • David Goulet's avatar
      hs-v3: Remove the circuit_established intro flag · b6c24eb4
      David Goulet authored
      
      Only use the HS circuit map to know if an introduction circuit is established
      or not. No need for a flag to keep state of something we already have in the
      circuit map. Furthermore, the circuit map gets cleaned up properly so it will
      always have the "latest truth".
      
      This commit also removes a unit test that was testing specifically that flag
      but now we rely solely on the HS circuit map which is also tested few lines
      below the removed test.
      
      Fixes #32094
      
      Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
      b6c24eb4
  7. Oct 22, 2019
  8. Oct 21, 2019
  9. Oct 20, 2019
  10. Oct 17, 2019
Loading