aboutsummaryrefslogtreecommitdiff
path: root/src/app/main
AgeCommit message (Collapse)Author
2020-02-24Merge ocirc and orconn events into or subsystem.Nick Mathewson
Pubsub events are not supposed to have their own subsystems; they're supposed to be part of a parent subsystem.
2020-02-24Move winprocess_sys into a new low-level hardening moduleNick Mathewson
This code was in our process module, but it doesn't belong there: process is for launching and monitoring subprocesses, not for hardening the current process. This change lets us have our subsystem init order more closely match our dependency order.
2020-02-18Make sure callers can handle NULL ext-or auth cookie filenameNick Mathewson
2020-02-13Re-order thread initialization to follow logging, and remove a comment.Nick Mathewson
lib/log no longer uses lib/thread; lib/log only uses lib/lock, which is at a lower level.
2020-02-13Re-order most subsystems to correspond to dependency order.Nick Mathewson
2020-01-17Initialize publish/subscribe code when running as an NT service.Nick Mathewson
Fixes bug 32778; bugfix on 0.4.1.1-alpha.
2020-01-17Revert "Restore feature where nt-services detect non-"run_tor" modes."Nick Mathewson
This reverts commit 5c240db0bf7751d74ba438a1ca4ef0d051a53df7.
2020-01-16Merge remote-tracking branch 'tor-github/pr/1663'Nick Mathewson
2020-01-15Merge remote-tracking branch 'tor-github/pr/1657'Nick Mathewson
2020-01-15Tell static analyzer that having ntservice functions not exist is okNick Mathewson
When we made these functions exist unconditionally (as macros on non-windows platforms), we started to get a dead-code warning on Coverity. We now use a macro to tell coverity not to worry about this particular dead-code instance.
2020-01-14Merge branch 'ticket32883'Nick Mathewson
2020-01-13Split core/include.am into per-subdirectory include.am filesNick Mathewson
Closes ticket 32137.
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2020-01-06Make ntmain.h functions stubs when NT_SERVICE not enabled.Nick Mathewson
This lets us simplify main.c a little, and avoid a practracker exception. Followup from #32883.
2020-01-06Restore feature where nt-services detect non-"run_tor" modes.Nick Mathewson
Followup for #32883.
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.