aboutsummaryrefslogtreecommitdiff
path: root/src/core/include.am
AgeCommit message (Collapse)Author
2020-01-16Merge branch 'ticket32487_squashed' into ticket32487_squashed_and_mergedNick Mathewson
Resolved conflicts in src/core/include.am
2020-01-16Move dirclient-related functions out of dirserv, and reenable themNick Mathewson
I had incorrectly identified these functions as dircache-only, when in fact they apply to everyone who acts a directory client.
2020-01-16Disable feature/dircache files when dircache module is disabled.Nick Mathewson
To make Tor still work, we define a minimal dircache_stub.c file that defines the entry points to the module that can actually be seen by the compiler when we're building with dircache and relay disabled.
2020-01-13Split core/include.am into per-subdirectory include.am filesNick Mathewson
Closes ticket 32137.
2020-01-08core/include.am: spelling fixNick Mathewson
2020-01-06Merge branch 'haxxpop/tcp_proxy_squashed' into tcp_proxy_squshed_and_mergedNick Mathewson
2020-01-06circuit: Implement haproxySuphanat Chunhapanya
2019-12-19Add config object for dirauth; move one option there.Nick Mathewson
I've chosen the "AuthDirMaxServersPerAddr" option here for simplicity, since it is used literally nowhere else besides the dirauth module. Once we have all the infrastructure in place for this, we can move more options into this structure.
2019-12-19Add "stub" files for disabled modules.Nick Mathewson
These modules are only built when the selected modules are disabled. The provide stub implementations of the subsystem blocks. Later, other stub implementations could move here. Having real subsystem blocks here will let us handle disabled configuration options better.
2019-11-18control-port: Implement ONION_CLIENT_AUTH_ADD.George Kadianakis
2019-11-14relay: Disable relay_sys when the relay module is disabledteor
Closes ticket 32245.
2019-11-14relay: Disable relay_periodic when the relay module is disabledteor
Closes ticket 32244.
2019-11-07Move netstatus (mainloop) state fields into mainloop's state.Nick Mathewson
2019-11-04relay: Disable relay config when the module is disabledteor
This commit: * disables the ORPort, DirPort, DirCache, and BridgeRelay options, * sets ClientOnly 1, * disables relay_config.c and relay/transport_config.c, * disables test_rebind.sh, and * modifies the expected results for test_parseconf.sh, when the relay module is disabled. Part of 32213.
2019-10-31config: Move server transport config into the relay moduleteor
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.
2019-10-31config: Move relay port parsing into the relay moduleteor
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.
2019-10-31dirauth: Disable dirauth config when the module is disabledteor
Part of 32213.
2019-10-31config: Move dirauth config into the dirauth moduleteor
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.
2019-10-22Merge branch 'from_setconf_removal_squashed'Nick Mathewson
2019-10-20relay: Implement HAVE_MODULE_RELAY for routermode.cteor
Part of 32123.
2019-10-20feature: Move proxy_mode() into new filesteor
proxy_mode() was in routermode.[ch], but it's actually a client mode. Move it into client/proxymode.[ch]. Part of 32123.
2019-10-18core: tabify a line in include.amteor
2019-10-17Move code to add default log into quiet_level.cNick Mathewson
I'm about to unify the code for handling this between main.c and config.c.
2019-10-17Merge branch 'cmdline_refactor'Nick Mathewson
2019-10-17Use an enum for quiet_level.Nick Mathewson
2019-10-16Rename authcert_members.i to .h, and have it define a macro.Nick Mathewson
Including a file in the middle of a declaration seems to confuse Doxygen, and Coccinelle doesn't much like it either.l
2019-10-08Extract the enumeration that tells Tor what command it is running.Nick Mathewson
2019-09-11Update include.am files to refer to new location of confparse.[ch]Nick Mathewson
Tests should now pass again.
2019-08-22Merge branch 'ticket30935' into ticket30935_mergedNick Mathewson
2019-08-06hs: Limit the amount of relayed INTRODUCE2David Goulet
This commit add the hs_dos.{c|h} file that has the purpose of having the anti-DoS code for onion services. At this commit, it only has one which is a function that decides if an INTRODUCE2 can be sent on the given introduction service circuit (S<->IP) using a simple token bucket. The rate per second is 25 and allowed burst to 200. Basic defenses on #15516. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-07-24Refactor handling of TestingTorNetworkNick Mathewson
Previously, when TestingTorNetwork was set, we would manually adjust the initvalue members of a bunch of other config_var_t, and then re-run the early parts or parsing the options. Now we treat the initvalue fields as immutable, but instead assign to them in options_init(), as early as possible. Rather than re-running the early parts of options, we just re-call the options_init_from_string() function. This patch de-kludges some of our code pretty handily. I think it could later handle authorities and fallbacks, but for now I think we should leave those alone.
2019-05-26trivial whitespace fixesRoger Dingledine
2019-05-16Add client-side onion service circuit hiding machines.George Kadianakis
2019-05-15fix typos, whitespace, commentsRoger Dingledine
2019-05-15Merge branch 'tor-github/pr/1002'George Kadianakis
2019-05-06Move "relay" and "router" periodic callbacks out of mainloop.cNick Mathewson
(Some of these callbacks are specific to the OR module, so now it's time to have an or_sys and or_periodic.)
2019-05-06Create a relay subsystem and move the shutdown functions thereNick Mathewson
2019-05-03Hiding crypt_path_t: Move assert functions in crypt_path.c.George Kadianakis
This commit only moves code, and makes one function public.
2019-05-03Merge branch 'tor-github/pr/984'David Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-05-02Merge branch 'tor-github/pr/986'George Kadianakis
2019-05-02Merge branch 'tor-github/pr/999'George Kadianakis
2019-05-02Add comments to include.am files to note where new sources goNick Mathewson
This mechanism isn't perfect, and sometimes it will guess wrong, but it will help our automation.
2019-05-02Make keypin.c dirauth-onlyNick Mathewson
2019-05-02Make the bwauth.c module dirauth-only.Nick Mathewson
2019-05-02Move voteflags.[ch] to become dirauth only.Nick Mathewson
For various reasons, this was a nontrivial movement. There are several places in the code where we do something like "update the flags on this routerstatus or node if we're an authority", and at least one where we pretended to be an authority when we weren't.
2019-04-30Make the reachability.c module dirauth-only.Nick Mathewson
2019-04-30Make the guardfraction.c module dirauth-only.Nick Mathewson
2019-04-30Make the process_descs.c module dirauth-only.Nick Mathewson
2019-04-30Make the dsigs_parse.c module dirauth-only.Nick Mathewson
2019-04-30Make the recommend_pkg file dirauth-only.Nick Mathewson