- Oct 27, 2019
-
-
JeremyRand authored
-
- Oct 25, 2019
-
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
teor authored
In the unit tests. Fixes a regression to bug 31334; bug not in any released version of tor.
-
teor authored
-
teor authored
Obviously correct fix to rename_c_identifier.py. Bugfix on 32237; not in any released version of tor.
-
teor authored
-
teor authored
Based on 8-space tabs, the git/less default. Cleanup after 31919.
-
teor authored
-
teor authored
And print the spatch version and build details Part of 31919.
-
teor authored
And add it to check-local. Part of 31919.
-
teor authored
-
teor authored
-
teor authored
-
teor authored
-
teor authored
-
teor authored
-
Nick Mathewson authored
-
Nick Mathewson authored
This function is used by controllers to set options. I refactored it a bit when refactoring options validation, so it needs to get tested.
-
Nick Mathewson authored
options_validate_cb() derives DataDirectory (which we use) from DataDirectory_option (which the user sets). I want to add a test that will call options_validate_cb(), but it will fail unless it derives the same value.
-
Nick Mathewson authored
I'll need this for testing options_trial_assign().
-
teor authored
-
Nick Mathewson authored
-
Nick Mathewson authored
-
Nick Mathewson authored
This eliminates duplicated code. The options_validate() function itself is now tests-only.
-
Nick Mathewson authored
Unlike legacy_validate_fn_t, these callbacks have separation of duties, into: * early normalization and computation. * validation * transition checking * late normalization and computation Only the first and last steps get mutable objects. Only the transition-checking step gets to see the previous values of this object.
-
Nick Mathewson authored
The former foo_validate() functions are now toplevel legacy_validate_fn callbacks. The new foo_validate() functions now call them. This change lets us remove the old shared_random disk state validation callback entirely.
-
Nick Mathewson authored
As we turn our monolithic configuration objects into suites of smaller module-specific configuration objects, we will want each one to be able to provide its own verification callbacks. That means that instead of invoking these verification callbacks directly, we will want to call them via the configuration manager object.
-
Nick Mathewson authored
The current API of this callback mixes responsibilities, including: * validation * transition checking * processing (modifying) the configuration object. These will have to be disentangled piece by piece, so for now, we'll have "legacy" validate functions as well. This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ validate_fn_t legacy_validate_fn_t \ validate_fn legacy_validate_fn
-
Nick Mathewson authored
Now that we no longer use it anywhere, we can remove this variable from the test data structure.
-
Nick Mathewson authored
This input was inessential, and none of the tests actually depended on it or tested anything about it (as can be seen from the fact that tests all still pass when it's removed). I tried to generate this commit with a coccinelle script, but it had trouble parsing a lot of options_validate as it stands. Instead, I did a search-and-replace to replace "tdata->old_opt," with "NULL,".
-
Nick Mathewson authored
I'm about to mess with their lists of callbacks, and I don't want to proliferate lists where we say "NULL, NULL, NULL, ..."
-
teor authored
-
- Oct 24, 2019