summaryrefslogtreecommitdiff
path: root/src/app
AgeCommit message (Collapse)Author
2018-11-09Annotate subsystem list with their levels.Nick Mathewson
2018-11-09Merge branch 'subsystems'Nick Mathewson
2018-11-09Log before performing a subsystem operationNick Mathewson
2018-11-09Add list of levels in subsystem_list.cNick Mathewson
2018-11-07Merge branch 'ticket27225_squashed'Nick Mathewson
2018-11-07Memoize summarize_protover_flags()Nick Mathewson
Our tests showed that this function is responsible for a huge number of our malloc/free() calls. It's a prime candidate for being memoized. Closes ticket 27225.
2018-11-06Merge remote-tracking branch 'tor-github/pr/484' into maint-0.3.5Nick Mathewson
2018-11-05Make tortls use the subsystems interfaceNick Mathewson
This one only needs a shutdown right now.
2018-11-05Turn "compress" into a subsystem.Nick Mathewson
2018-11-05Move monotonic time setup into a subsystemNick Mathewson
2018-11-05Move prefork, postfork, and thread-exit hooks into subsysNick Mathewson
So far, crypto is the only module that uses them, but others are likely to do so in the future.
2018-11-05Add crypto module as a subsystem.Nick Mathewson
2018-11-05Move networking startup/cleanup logic into a subsystem.Nick Mathewson
2018-11-05Turn the wallclock module into a subsystem.Nick Mathewson
(This may be slightly gratuitous.)
2018-11-05Turn the logging code into a subsystemNick Mathewson
2018-11-05Add a subsystem for our threading supportNick Mathewson
2018-11-05Make the windows process parameter initialization a subsystemNick Mathewson
Also, move it from "main" into lib/process
2018-11-05Make initialization for the "err" library into a subsystem.Nick Mathewson
2018-11-05Move the code that knows our tor version into a lowest-level libNick Mathewson
2018-11-05Code to manage the list of subsystems.Nick Mathewson
2018-10-12Merge remote-tracking branch 'tor-github/pr/380'Nick Mathewson
2018-10-01Merge remote-tracking branch 'public/bug27893'Nick Mathewson
2018-10-01Remove dump_distinct_digest_count()Nick Mathewson
It was disabled-by-default for ages, and it no longer compiles. I think it's safe to call it obsolete.
2018-10-01Move routerparse and parsecommon to their own module.Nick Mathewson
2018-09-27Fix a memory leak in --dump-configNick Mathewson
When freeing a configuration object from confparse.c in dump_config(), we need to call the appropriate higher-level free function (like or_options_free()) and not just config_free(). This only happens with options (since they're the one where options_validate allocates extra stuff) and only when running --dump-config with something other than minimal (since OPTIONS_DUMP_MINIMAL doesn't hit this code). Fixes bug 27893; bugfix on 0.3.2.1-alpha.
2018-09-27Extract the non-stats part of geoip into a new src/lib/geoip.Nick Mathewson
2018-09-27Remove excess dependencies from geoip.cNick Mathewson
2018-09-27Split geoip from geoip-related stats.Nick Mathewson
This commit just moves the code to two separate files. The geoip code still has a few needless dependencies on core/* and features/*.
2018-09-27Move the predicted ports code out of rephist.cNick Mathewson
It differs from the rest of the rephist code in that it's actually necessary for Tor to operate, so it should probably go somewhere else. I'm not sure where yet, so I'll leave it in the same directory, but give it its own file.
2018-09-25Revise things that had included router.h beforeNick Mathewson
Make them only include the headers that they needed, and sort their headers while we're at it.
2018-09-25Extract all the "am I a server" functions from router.cNick Mathewson
2018-09-25Rename dirauth/mode.h to dirauth/authmode.hNick Mathewson
This is preparation for having a routermode.h as well
2018-09-24Merge branch 'bug26913_033'Nick Mathewson
2018-09-22Initialize mainloop events earlier, since other stuff may run them.Nick Mathewson
Fixes a stem test failure; bugfix on c7ce6b9821be22e734b79e0. Bug not in any released Tor.
2018-09-21Move systemd_watchdog_timer free into mainloop.cNick Mathewson
2018-09-21Missing include in ntmain.cNick Mathewson
2018-09-21Merge remote-tracking branch 'ahf-github/asn/bugs4700_2'Nick Mathewson
2018-09-21Split main.c into main.c and mainloop.cNick Mathewson
The main.c code is responsible for initialization and shutdown; the mainloop.c code is responsible for running the main loop of Tor. Splitting the "generic event loop" part of mainloop.c from the event-loop-specific part is not done as part of this patch.
2018-09-20Split most of dirserv.c into several new modulesNick Mathewson
In dirauth: * bwauth.c reads and uses bandwidth files * guardfraction.c reads and uses the guardfraction file * reachability.c tests relay reachability * recommend_pkg.c handles the recommended-packages lines. * recv_descs.c handles fingerprint files and processing incoming routerinfos that relays upload to us * voteflag.c computes flag thresholds and sets those thresholds on routerstatuses when computing votes In control: * fmt_serverstatus.c generates the ancient "v1 server status" format that controllers expect. In nodelist: * routerstatus_fmt.c formats routerstatus entries for a consensus, a vote, or for the controller.
2018-09-19Split routerlist.c into 4 separate modulesNick Mathewson
There are now separate modules for: * the list of router descriptors * the list of authorities and fallbacks * managing authority certificates * selecting random nodes
2018-09-15Introduce per-service HiddenServiceExportCircuitID torrc option.George Kadianakis
Moves code to a function, better viewed with --color-moved.
2018-09-14Merge branch 'maint-0.3.4'Nick Mathewson
2018-09-13Run crypto_prefork() before start_daemon().Nick Mathewson
Without this, RunAsDaemon breaks NSS. Fixes bug 27664; bug not in any released Tor.
2018-09-12Merge branch 'pr278_squashed'Nick Mathewson
2018-09-12Always close old listeners in retry_all_listenersrl1987
2018-09-12Merge remote-tracking branch 'tor-github/pr/318'Nick Mathewson
2018-09-08make ipv6-only config complaint clearerRoger Dingledine
(a relay operator hit this on #tor-relays and couldn't make sense of it. i couldn't either until i went to go read the code.)
2018-09-07Merge remote-tracking branch 'dgoulet/ticket20700_035_03'Nick Mathewson
2018-09-07hs-v3: Load client authorization secret key from fileSuphanat Chunhapanya
The new ClientOnionAuthDir option is introduced which is where tor looks to find the HS v3 client authorization files containing the client private key material. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-09-04Merge branch 'nss_squashed' into nss_mergeNick Mathewson