summaryrefslogtreecommitdiff
path: root/src/app/main
AgeCommit message (Collapse)Author
2019-12-20Code Style: Delete headers that are included twiceteor
These changes were created using the "make autostyle" from 32522, and then split into commits.
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-12-04practracker: Add missing .may_include filesteor
All of these files contain "*.h", except for: * src/app/config/.may_include * src/test/.may_include which also contain "*.inc". This change prevents includes of "*.c" files, and other unusually named files. Part of 32609.
2019-11-18Merge remote-tracking branch 'tor-github/pr/1517'teor
2019-11-15Doxygen: rename all .dox files to end with .mdNick Mathewson
Using a standard ending here will let other tools that expect markdown understand our output here. This commit was automatically generated with: for fn in $(find src -name '*.dox'); do \ git mv "$fn" "${fn%.dox}.md"; \ done
2019-11-15Doxygen: remove /** and **/ from all .dox filesNick Mathewson
This is an automatically generated commit, made with: find src -name '*.dox' | \ xargs perl -i -ne 'print unless (m#^\s*/?\*\*/?\s*$#);'
2019-11-14Run "make autostyle"teor
2019-11-14relay: Disable relay_sys when the relay module is disabledteor
Closes ticket 32245.
2019-11-07ntmain: make service_fns struct anonymous.Nick Mathewson
2019-11-07subsysmgr: use IDX_NONE is an exception value, not -1.Nick Mathewson
2019-11-07Use new configuration architecture for crypto optionsNick Mathewson
This is a comparatively simple change.
2019-11-07Add testing-only functions to get the subsystem config/state indicesNick Mathewson
2019-11-07Add subsys functions for receiving/flushing states and options.Nick Mathewson
These functions are in the subsystem, not in the config_format_t, since they are about how the format is _used_, not about _what it is_.
2019-11-07Give subsystems optional config formats and state formats.Nick Mathewson
The formats, when provided, are now added to the global config_mgr_t objects.
2019-11-07Make a new structure for tracking subsystem status.Nick Mathewson
We used to have only one boolean per subsystem, but we're about to have a little more information.
2019-11-05Merge branch 'doxygen_libs'Nick Mathewson
2019-11-05Merge remote-tracking branch 'tor-github/pr/1477'teor
2019-11-04Document directories in "app"Nick Mathewson
2019-11-04Doxygen: Avoid ambiguity in @dir directivesNick Mathewson
This commit was automatically generated with: find src -name '*.dox' |xargs perl -i -pe 's{\@dir ([^/])}{\@dir /$1};'
2019-11-04Add stub directory-level documentation for most source directoriesNick Mathewson
This includes app, core, feature, lib, and tools, but excludes ext, test, and trunnel. This was generated by the following shell script: cd src for dname in $(find lib core feature app tools -type d |grep -v \\.deps$); do keyword="$(echo "$dname" |sed -e "s/\//_/" )" target="${dname}/${keyword}.dox" echo "$target" cat <<EOF >"$target" /** @dir ${dname} @brief ${dname} **/ EOF git add "$target" done
2019-10-31config: Move relay config actions into the relay moduleteor
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.
2019-10-26doxygen: add @file declarations for src/appNick Mathewson
If a file doesn't use the file command (either \file or @file), Doxygen won't try to process it.
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-17Replace add_temp_log() with add_default_log().Nick Mathewson
We used to have this function so that we could mark our initial log-to-stdout as specifically temporary so that we would delete it once regular logs were configured. But it's no longer necessary to mark these logs as temporary, since we now use a mark-and-sweep process to ensure that _all_ not-configured logs are closed when we change our configuration. Instead, this function will be the basis of a refactoring in how we handle default logs.
2019-10-17Use an enum for quiet_level.Nick Mathewson
2019-10-17Rename CMD_OTHER to CMD_IMMEDIATENick Mathewson
2019-10-17Move responsibility for setting the "quiet level" into a table.Nick Mathewson
Previously this was done with a big list of options in main.c which implied "hush" or "quiet". One of these options ("--digests") no longer existed, but we still checked for it. Now we use the table of command-line-only arguments to set this value.
2019-10-17Make the command-line parser understand "commands".Nick Mathewson
Previously these were implemented with a search in options_init_from_torrc(), but that led to each option being declared more than needed: once to say that it was a valid option, and once to say what it meant.
2019-10-17Add a return type for the parsed commandline.Nick Mathewson
Previously it was stored in two outvars, but this is more elegant. I'm going to be expanding this struct in later commits.
2019-09-10main: add some newlines to the subsystem list, for readabilityteor
2019-09-10main: remove level number comments from the subsystem list (master)teor
Part of 31615.
2019-09-10Merge branch 'bug31615_041' into bug31615_masterteor
Merged modified lines from bug31615_041, and unmodified lines from master.
2019-09-10main: remove level number comments from the subsystem list (0.4.1)teor
Part of 31615.
2019-09-10Merge branch 'bug31615_040' into bug31615_041teor
Merged modified lines from bug31615_040, and unmodified lines from maint-0.4.1.
2019-09-10main: remove level number comments from the subsystem list (0.4.0)teor
These levels get out of date really easily: we'll implement a level dump command in tor in 31614. They also cause conflicts and inconsistencies when merging forward level changes. Part of 31615.
2019-08-06hs-v3: Add consensus parameters for DoS defensesDavid Goulet
Part of #15516 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-06-17Merge remote-tracking branch 'tor-github/pr/1100'Nick Mathewson
2019-06-14Merge branch 'bug30806'George Kadianakis
2019-06-14Make evloop into a subsystem.Nick Mathewson
Note that the event base object is _not_ created from the initialize function, since it is configuration-dependent. This will wait until configuration is integrated into subsystems. Closes ticket 30806.
2019-06-11Merge branch 'tor-github/pr/1040'David Goulet
2019-06-11Rework origin circuit tracking to use pubsubTaylor Yu
Part of ticket 29976.
2019-06-11Rework orconn tracking to use pubsubTaylor Yu
Part of ticket 29976.
2019-06-11Free a string buffer in nt_service_install()Xiaoyin Liu
The string buffer "command" is not freed if the specified account name doesn't exist. This patch fixes this bug.
2019-06-05Merge remote-tracking branch 'tor-github/pr/1020' into maint-0.4.0Nick Mathewson
2019-06-05Run "make autostyle."Nick Mathewson
2019-05-29Shutdown libevent _after_ the subsystems.Nick Mathewson
This is necessary since shutting down libevent frees some pointer that the subsystems want to free themselves. A longer term solution will be to turn the evloop module into a subsystem itself, but for now it is best to do the minimal fix. Fixes bug 30629; bugfix on 0.4.1.1-alpha.
2019-05-16Introduce circpad free_all() function.George Kadianakis
2019-05-15Merge branch 'tor-github/pr/1002'George Kadianakis
2019-05-14Merge branch 'ticket30452_035_v3' into ticket30452_041_v3Nick Mathewson
2019-05-14Make --list-modules imply --hushNick Mathewson