summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-10-21Stop overriding MaxClientCircuitsPending in tests.Nick Mathewson
Now that MaxClientCircuitsPending is set to the default value in the testing helper functions, the individual tests don't all need to make sure it is set to something valid.
2019-10-21test_options.c: remove weird usage of MaxClientCircuitsPendingNick Mathewson
Several of our tests assumed that MaxClientCircuitsPending would be set to 0 by default, causing the default options not to be parseable. These tests had nothing to do with MaxClientCircuitsPending.
2019-10-21Stop overriding KeepalivePeriod in tests.Nick Mathewson
Now that KeepalivePeriod is set to the default value in the testing helper functions, the individual tests don't all need to make sure it is set to something valid.
2019-10-21test_options.c: remove weird usage of KeepalivePeriod.Nick Mathewson
Several of our tests assumed that KeepalivePeriod would be set to 0 by default, causing the default options not to be parseable. These tests had nothing to do with KeepalivePeriod.
2019-10-21Remove a lot of cruft from TEST_OPTIONS_DEFAULT_VALUES.Nick Mathewson
This macro used to have a big list of "default" values that we needed to set in the test_options tests in order to have reasonable behavior. But now that we initialize options objects to the default settings in these tests, we no longer need such a long list of things to replace.
2019-10-21test_options: use testing options with (almost) real defaults.Nick Mathewson
Previously, we just used options set to all 0s, but this causes some pretty severe workarounds throughout the code, as our options fail to validate, or count as "default" for the wrong reasons. Note that in some places, we stop getting spurious warnings or failures which the tests previously demanded. In these cases, I've changed the test behavior. Fixes 32175.
2019-10-21routermode.h: turn a comment into a doxygen comment.Nick Mathewson
2019-10-21Merge remote-tracking branch 'tor-github/pr/1430'Nick Mathewson
2019-10-21Merge remote-tracking branch 'tor-github/pr/1434'teor
2019-10-21test/getinfo: Remove unnecessary test codeteor
Fix for 31684.
2019-10-21control/getinfo: Use standard error handlingteor
Use BUG() for coding errors, and `< 0` for error checks. Fix to 31684.
2019-10-21Fix changes file and string typosteor
Part of 31684.
2019-10-21control: Add GETINFO support for dumping microdesc consensusAmreshVenugopal
- Allows control port to read microdesc consensus using: GETINFO dir/status-vote/microdesc/consensus add: Helper function `getinfo_helper_current_consensus` test: check if GETINFO commands return expected consensus data. Resolves 31684.
2019-10-21Merge branch 'maint-0.4.2'teor
2019-10-21Merge remote-tracking branch 'tor-github/pr/1168'teor
2019-10-21Merge remote-tracking branch 'tor-github/pr/1422' into maint-0.4.2teor
2019-10-21Merge branch 'maint-0.4.2'teor
2019-10-21Merge remote-tracking branch 'tor-github/pr/1432' into maint-0.4.2teor
2019-10-21Merge remote-tracking branch 'tor-github/pr/1354' into maint-0.4.2teor
2019-10-20Merge branch 'maint-0.4.2'teor
2019-10-20hibernate: Fix repeated "bytes" in commentteor
2019-10-20dirauth: Add a macro comment to have_module_dirauth()teor
2019-10-20changes: file for 32123teor
Create an optional relay module, which can be disabled using the --disable-module-relay configure option. When it is set, also disable the dirauth module. Add a minimal implemention, which disables the relay and dircache modes in tor. Closes ticket 32123.
2019-10-20doc/HACKING: Update Module.md for the relay moduleteor
Also fix some typos, and delete some obsolete instructions. Part of 32123.
2019-10-20Travis: Add a --disable-module-relay jobteor
Part of 32123.
2019-10-20test/parseconf: Add basic dirauth and bridgeauth teststeor
Part of 32123.
2019-10-20test/parseconf: Expect different outputs when relay mode is disabledteor
Part of 32123.
2019-10-20test/rebind: Make control formatting and log parsing more robustteor
* actually sleep when tor has not logged anything * log at debug level when waiting for tor to log something * backslash-replace bad UTF-8 characters in logs * format control messages as ASCII: tor does not accept UTF-8 control commands Fixes bug 31837; bugfix on 0.3.5.1-alpha.
2019-10-20err: Use the correct type for cb_bufteor
Fixes bug 32060; bug not in any released version of tor. Resolves CID 1454761.
2019-10-20Merge branch 'maint-0.4.2'Roger Dingledine
2019-10-20fix easy typosRoger Dingledine
2019-10-20test: Skip test scripts that require the relay moduleteor
When tor is built without the relay module. Part of 32123.
2019-10-20relay: Silence compiler warnings when relay mode is disabledteor
Part of 32123.
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-20configure: Make --disable-module-relay imply --disable-module-dirauthteor
Part of 32123.
2019-10-20configure: Add a relay module, with --disable-module-relayteor
The Makefile and C defines don't actually do anything yet. Part of 32123.
2019-10-18Merge branch 'maint-0.4.2'Nick Mathewson
2019-10-18Merge remote-tracking branch 'tor-github/pr/1427' into maint-0.4.2Nick Mathewson
2019-10-18Merge branch 'maint-0.4.2'Nick Mathewson
2019-10-18Merge remote-tracking branch 'tor-github/pr/1426' into maint-0.4.2Nick Mathewson
2019-10-18Merge branch 'maint-0.4.2'Nick Mathewson
2019-10-18Merge remote-tracking branch 'tor-github/pr/1396' into maint-0.4.2Nick Mathewson
2019-10-18Merge branch 'maint-0.4.2'Nick Mathewson
2019-10-18Merge branch 'maint-0.4.2' of git-rw.torproject.org:/tor into maint-0.4.2Nick Mathewson
2019-10-18changes: file for 32124.teor
2019-10-18configure: Stop failing when jemalloc is requested, but tcmalloc is not foundteor
Fixes bug 32124; bugfix on 0.3.5.1-alpha.
2019-10-18configure: Interpret --with-tcmalloc=no correctlyteor
Fixes bug 32124; bugfix on 0.2.0.20-rc.
2019-10-18configure: Interpret --disable-module-dirauth=no correctlyteor
Fixes bug 32134; bugfix on 0.3.4.1-alpha.
2019-10-18configure: Clarify the description of --disable-module-dirauthteor
Part of 32123.