1. 11 Aug, 2020 1 commit
  2. 05 May, 2020 1 commit
  3. 31 Mar, 2020 1 commit
    • teor's avatar
      Move LOG_PROTOCOL_WARN to app/config.h · f863954f
      teor authored
      LOG_PROTOCOL_WARN was in core/or.h, but the function it depends on is in
      app/config.h. Put them in the same header, to reduce dependencies.
      
      Part of 33633.
      f863954f
  4. 20 Mar, 2020 1 commit
  5. 08 Jan, 2020 1 commit
  6. 20 Nov, 2019 2 commits
  7. 19 Nov, 2019 1 commit
  8. 05 Nov, 2019 1 commit
    • teor's avatar
      config: Rename new global functions with a prefix · cb8ebc0b
      teor authored
      This is an automated commit, generated by this command:
      
      ./scripts/maint/rename_c_identifier.py \
              get_dirportfrontpage relay_get_dirportfrontpage \
              parse_port_config port_parse_config \
              count_real_listeners port_count_real_listeners \
              parse_transport_line pt_parse_transport_line \
              ensure_bandwidth_cap config_ensure_bandwidth_cap \
              get_effective_bwrate relay_get_effective_bwrate \
              get_effective_bwburst relay_get_effective_bwburst \
              warn_nonlocal_ext_orports port_warn_nonlocal_ext_orports \
              parse_ports_relay port_parse_ports_relay \
              update_port_set_relay port_update_port_set_relay \
              get_transport_bindaddr_from_config pt_get_bindaddr_from_config \
              get_options_for_server_transport pt_get_options_for_server_transport
      
      It was generated with --no-verify, because it has some long lines.
      
      Part of 32213.
      cb8ebc0b
  9. 31 Oct, 2019 6 commits
    • teor's avatar
      config: Delete get_list_of_ports_to_forward() · d6654580
      teor authored
      Tor has not supported automatic port forwarding for some time.
      d6654580
    • teor's avatar
      config: Move relay config actions into the relay module · fc5da4ad
      teor authored
      This commit:
      * moves relay config actions into relay_config,
      * moves get_dirportfrontpage() into relay_config,
      * 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.
      fc5da4ad
    • teor's avatar
      config: Move accounting/bandwidth config into the relay module · d5ca56e2
      teor authored
      This commit:
      * moves accounting and bandwidth checks into relay_config,
      * moves testing options checks into relay_config,
      * moves some other minor checks into relay_config,
      * 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.
      d5ca56e2
    • 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
  10. 25 Oct, 2019 2 commits
  11. 22 Oct, 2019 3 commits
  12. 17 Oct, 2019 5 commits
  13. 24 Jul, 2019 2 commits
    • Nick Mathewson's avatar
      Make config_var and config_fmt const. · f8b193a7
      Nick Mathewson authored
      Now that we have a reasonable implementation for overriding the
      default options for TestingTorNetwork, we don't need to modify
      config_var_t structs any more.  And therefore, we can have constant
      format options, like reasonable people.
      f8b193a7
    • Nick Mathewson's avatar
      Add a config_mgr_t type to wrap config_format_t · e8dc513b
      Nick Mathewson authored
      Remember that our goal in the present refactoring is to allow each
      subsystem to declare its own configuration structure and
      variables.  To do this, each module will get its own
      config_format_t, and so we'll want a different structure that wraps
      several config_format_t objects.  This is a "config_mgr_t".
      e8dc513b
  14. 23 Jan, 2019 1 commit
  15. 16 Jan, 2019 2 commits
  16. 05 Nov, 2018 1 commit
  17. 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.
      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
  18. 03 Jul, 2018 1 commit
  19. 01 Jul, 2018 3 commits
  20. 22 Jun, 2018 1 commit
  21. 21 Jun, 2018 1 commit
  22. 20 Jun, 2018 1 commit