summaryrefslogtreecommitdiff
path: root/src/or/config.c
AgeCommit message (Collapse)Author
2017-12-08Update free functions into macros: src/or/ part 1Nick Mathewson
This covers addressmap.h (no change needed) through confparse.h
2017-11-17Make all the free() functions from container.h clear their targetsNick Mathewson
2017-11-14Remove remove_file_if_very_old() -- nothing calls it.Nick Mathewson
2017-11-09Merge branch 'maint-0.3.2'Nick Mathewson
2017-11-09Re-remove AllowDotExit deprecation.Nick Mathewson
This was accidentally reintroduced in 5a46074e55. It should be harmless, though: the option is obsolete, so calling it deprecated is redundant.
2017-11-05Merge branch 'maint-0.3.2'Nick Mathewson
2017-11-04ClientDNSRejectInternalAddresses in non-default networksSebastian Hahn
Once again allow the flag to be set, unless the default network is used. Thanks to nickm for a suggestion for the workaround to a test failure.
2017-11-04Undo deprecation of ClientDNSRejectInternalAddressesSebastian Hahn
2017-11-04Revert "Make ClientDNSRejectInternalAddresses testing-only."Sebastian Hahn
This reverts commit 27fa4a98d23972213122fa99499efa4baebe49e3.
2017-11-01easy typos while reviewing commitsRoger Dingledine
2017-11-01Merge remote-tracking branch 'public/owning_control_fd'Nick Mathewson
2017-11-01Merge branch 'tor_api_squashed'Nick Mathewson
2017-10-31Merge branch 'fix-torrcd-sandbox-22605v2'Nick Mathewson
2017-10-31Add code for letting user select Reduced Exit PolicyNeel Chauhan
2017-10-31Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2017-10-31Merge branch 'maint-0.3.2'Nick Mathewson
2017-10-31Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-10-31Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-10-31Merge remote-tracking branch 'public/bug23693_029' into maint-0.2.9Nick Mathewson
2017-10-27Merge remote-tracking branch 'public/exit_carefully'Nick Mathewson
2017-10-24Merge branch 'maint-0.3.2'Nick Mathewson
2017-10-24Merge branch 'feature18329_029_squashed' into maint-0.3.2Nick Mathewson
2017-10-24test: Add unittest for descriptors with BridgeDistribution option.Isis Lovecruft
2017-10-24doc: Improve documentation for check_bridge_distribution_setting().Isis Lovecruft
2017-10-24Always set bridge-distribution-request on bridges' descriptors.Nick Mathewson
Also, warn the user if the BridgeDistribution option is unrecognized, and reject the value if it is invalid.
2017-10-24Add new BridgeDistribution config optionRoger Dingledine
Bridge relays can use it to add a "bridge-distribution-request" line to their bridge descriptor, which tells BridgeDB how they'd like their bridge address to be given out. Implements tickets 18329.
2017-10-24Merge branch 'maint-0.3.2'Nick Mathewson
2017-10-23Have LOG_PROTOCOL_WARN call its own functionNick Mathewson
Also, make the function that implements LOG_PROTOCOL_WARN use a cached value of the desired loglevel, rather than calling get_options().
2017-10-23Merge branch 'maint-0.2.8' into maint-0.2.9Nick Mathewson
2017-10-23Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-10-23Merge branch 'maint-0.3.2'Nick Mathewson
2017-10-23Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2017-10-23Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-10-23Merge branch 'maint-0.2.5' into maint-0.2.8Nick Mathewson
2017-10-23dirauth: Add bastet to the default authoritiesDavid Goulet
Fixes #23910 Based on a patch by dgoulet; backported to 0.2.5
2017-10-23Merge branch 'maint-0.3.2'Nick Mathewson
2017-10-23Merge branch 'maint-0.2.8' into maint-0.2.9Nick Mathewson
2017-10-23Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-10-23Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2017-10-23Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-10-23Merge branch 'maint-0.2.5' into maint-0.2.8Nick Mathewson
2017-10-20Mark "previously validated foo could not be set" blocks as unreachable.Nick Mathewson
2017-10-20Exit more carefully when options_act() fails.Nick Mathewson
Also, annotate options_act() with places where we should be pre-validating values.
2017-10-20Return instead of exiting in options_init_from_torrc()Nick Mathewson
2017-10-19Comment-only change: annotate exit() calls.Nick Mathewson
Sometimes when we call exit(), it's because the process is completely hopeless: openssl has a broken AES-CTR implementation, or the clock is in the 1960s, or something like that. But sometimes, we should return cleanly from tor_main() instead, so that embedders can keep embedding us and start another Tor process. I've gone through all the exit() and _exit() calls to annotate them with "exit ok" or "XXXX bad exit" -- the next step will be to fix the bad exit()s. First step towards 23848.
2017-10-18Move tor_git_revision into a new module.Nick Mathewson
At first, we put the tor_git_revision constant in tor_main.c, so that we wouldn't have to recompile config.o every time the git revision changed. But putting it there had unintended side effect of forcing every program that wanted to link libor.a (including test, test-slow, the fuzzers, the benchmarks, etc) to declare their own tor_git_revision instance. That's not very nice, especially since we want to start supporting others who want to link against Tor (see 23846). So, create a new git_revision.c file that only contains this constant, and remove the duplicated boilerplate from everywhere else. Part of implementing ticket 23845.
2017-10-18Add __OwningControllerFD to allow controllers without controlportsNick Mathewson
This feature should help programs that want to launch and manage a Tor process, as well as programs that want to launch and manage a Tor instance in a separate thread. Right now, they have to open a controlport, and then connect to it, with attendant authentication issues. This feature allows them to just start with an authenticated connection. Bug 23900.
2017-10-17Update Longclaw's IP address; fixes 23592.Nick Mathewson
2017-10-02Make changes in server_mode() affect workers; fix a crash.Nick Mathewson
Without this fix, changes from client to bridge don't trigger transition_affects_workers(), so we would never have actually initialized the cpuworkers. Fixes bug 23693. Bugfix on 3bcdb26267502e0 0.2.6.3-alpha, which fixed bug 14901 in the general case, but not on the case where public_server_mode() did not change.
2017-09-26Add test to make sure all confparse variables are well-typedNick Mathewson
New approach, suggested by Taylor: During testing builds, we initialize a union member of an appropriate pointer type with the address of the member field we're trying to test, so we can make sure that the compiler doesn't warn. My earlier approach invoked undefined behavior.