Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-09-26 | Run "make autostyle" with new "annotate_ifdef_directives" | Nick Mathewson | |
2019-09-11 | Update #includes to point to confparse.h in its new location. | Nick Mathewson | |
This commit was automatically generated by running scripts/maint/rectify_include_paths.py . | |||
2019-09-11 | Move confparse.[ch] into src/lib/confmgt/ | Nick Mathewson | |
This commit only does code movement, and does not clean up after itself. As such, it will break compilation. I'm separating it for ease of review. | |||
2019-09-11 | Merge branch 'tor-github/pr/1296' | David Goulet | |
2019-09-11 | Document inconsistent usage of config_var_is_listable() | Nick Mathewson | |
See also ticket 31654. | |||
2019-09-11 | Clarify documentation on config_var_is_listable() | Nick Mathewson | |
Here we make it clear we're only looking at listable variable names, not at whether the variables themselves are gettable. Also, remove an extraneous h. (This commit is not a fixup, because of rebase conflicts.) | |||
2019-09-11 | Remove all CVFLAG_* usage. | Nick Mathewson | |
2019-09-11 | confparse, conftypes: Replace flags with their new names. | Nick Mathewson | |
The old names remain as #defines that cause variables to get one or more flags. Now every flag-testing function in confparse.c tests exactly one flag. | |||
2019-09-11 | Replace low-level {var_type,struct_var}_is_*() with flag inspection | Nick Mathewson | |
Since the flags are now stored with compatible numbering, we can just OR them together and see whether the flag we want is in the result. (Net code removal!) | |||
2019-09-11 | config: make config_var_is_dumpable static. | Nick Mathewson | |
2019-09-11 | config: rename "contained" to "derived", and explain it better. | Nick Mathewson | |
Don't use "derived" directly, but check its implications for listing and copying. | |||
2019-09-11 | config: Introduce the concept of an "ungettable" variable. | Nick Mathewson | |
We had though to make all obsolete and invisible variables ungettable, so that GETCONF would reject them. But it turns out that this isn't the current behavior of GETCONF with those variables. So for now, I'm leaving the current behavior unchanged. (See ticket 31647 for a proposal to change the behavior.) | |||
2019-09-11 | Document config_var_is_dumpable and config_var_is_settable. | Nick Mathewson | |
2019-09-10 | main: add some newlines to the subsystem list, for readability | teor | |
2019-09-10 | main: remove level number comments from the subsystem list (master) | teor | |
Part of 31615. | |||
2019-09-10 | Merge branch 'bug31615_041' into bug31615_master | teor | |
Merged modified lines from bug31615_041, and unmodified lines from master. | |||
2019-09-10 | main: remove level number comments from the subsystem list (0.4.1) | teor | |
Part of 31615. | |||
2019-09-10 | Merge branch 'bug31615_040' into bug31615_041 | teor | |
Merged modified lines from bug31615_040, and unmodified lines from maint-0.4.1. | |||
2019-09-10 | main: 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. | |||
2019-09-09 | Merge branch 'ticket30924_042_04_squashed' into ↵ | Nick Mathewson | |
ticket30924_042_04_squashed_merged | |||
2019-09-05 | config: Invert sense of _is_invisible, and rename to is_listable() | Nick Mathewson | |
2019-09-05 | config: replace config_var_is_cumulative with is_replaced_on_set() | Nick Mathewson | |
This change replaces the higher-level property check to match our intended flag factoring. | |||
2019-09-05 | Merge branch 'tor-github/pr/1294' | George Kadianakis | |
2019-09-05 | Merge branch 'tor-github/pr/1291' | George Kadianakis | |
2019-09-05 | config: note that some arguments are required. | Nick Mathewson | |
2019-09-04 | Document warn_deprecated_option(). | Nick Mathewson | |
2019-09-04 | Document return value of config_mgr_add_format(). | Nick Mathewson | |
2019-09-04 | Document validate_fn_t as it stands. | Nick Mathewson | |
Also document that it will be changed in a later branch. | |||
2019-09-04 | config_assign: Document CAL_* options. | Nick Mathewson | |
These were sort of described in config_assign() documentation, but not so well. | |||
2019-09-04 | Document configuration and abbreviation types. | Nick Mathewson | |
2019-09-04 | config: Make CLEAR with a nonempty value into a nonfatal assertion. | Nick Mathewson | |
When we parse a CLEAR line (e.g., "/OrPort" or /OrPort blah blah"), we always suppress the value, even if one exists. That means that the block of code was meant to handle CLEAR lines didn't actually do anything, since we previously handled them the same way as with other empty values. Closes ticket 31529. | |||
2019-09-04 | config: use ptrdiff_t for all field-offset members. | Nick Mathewson | |
Previously we used int here, but it is more correct to use ptrdiff_t. (This never actually matters for our code in practice, since the structure we are managing here never exceed INT_MAX in size.) | |||
2019-08-30 | Merge branch 'maint-0.3.5' into maint-0.4.0 | teor | |
2019-08-30 | Merge remote-tracking branch 'tor-github/pr/1114' into maint-0.3.5 | teor | |
2019-08-29 | Describe clear_cfg_fn_t better. | Nick Mathewson | |
2019-08-28 | Merge branch 'ticket31240v2' into ticket31240v2_merged_2 | Nick Mathewson | |
2019-08-28 | Fix typo in a comment on config_mgr_get_obj_mutable() | Nick Mathewson | |
2019-08-28 | Simple tests for nested configuration formats | Nick Mathewson | |
One test makes sure that the toplevel magic numbers are distinct. One test makes sure that we can parse a configuration object with two sub-objects. | |||
2019-08-28 | Tests for config_find_option_name() | Nick Mathewson | |
Fix a bug in config_find_option_name() where it did not consider the abbreviations table. | |||
2019-08-28 | Add tests for variable-listing functions. | Nick Mathewson | |
This discovered a bug related to an extra & in config_mgr_list_deprecated_vars(): fix that. | |||
2019-08-28 | Better explain config_clear_fn_t | Nick Mathewson | |
2019-08-28 | Document or_state_t.substates_ | Nick Mathewson | |
2019-08-28 | Document or_options_t.subconfigs_ | Nick Mathewson | |
2019-08-28 | document return lifespans for config_mgr_list_vars() | Nick Mathewson | |
2019-08-28 | Fix typo in comment about FallbackDir handling | Nick Mathewson | |
2019-08-28 | Document types for config_get_changes() | Nick Mathewson | |
2019-08-28 | finish a comment explaining all_abbrevs | Nick Mathewson | |
2019-08-28 | Partial support for multiplicity in configuration objects | Nick Mathewson | |
A configuration manager, in addition to a top-level format object, may now also know about a suite of sub-formats. Top-level configuration objects, in turn, may now have a suite of sub-objects. | |||
2019-08-28 | Make a config_suite_t type to hold multiple config sub-objects | Nick Mathewson | |
Right now, it doesn't do anything; this patch is meant to make sure that we're doing memory management correctly. | |||
2019-08-28 | Refactor config free logic to use a single path. | Nick Mathewson | |
The right way to free a config object is now to wrap config_free(), always. Instead of creating an alternative free function, objects should provide an alternative clear callback to free any fields that the configuration manager doesn't manage. This lets us simplify our code a little, and lets us extend the confparse.c code to manage additional fields in config_free. |