summaryrefslogtreecommitdiff
path: root/src/app/config
AgeCommit message (Collapse)Author
2019-08-24Fix comment: ___ options are now that way because of the INVISIBLE flag.Nick Mathewson
2019-08-22Merge branch 'ticket30935' into ticket30935_mergedNick Mathewson
2019-08-20Merge branch 'ticket30914' into ticket30914_mergedNick Mathewson
2019-08-19Merge branch 'maint-0.4.1'Nick Mathewson
2019-08-19Merge branch 'maint-0.4.0' into maint-0.4.1Nick Mathewson
2019-08-19Merge branch 'maint-0.3.5' into maint-0.4.0Nick Mathewson
2019-08-19Merge branch 'maint-0.2.9' into maint-0.3.5Nick Mathewson
2019-08-12Merge branch 'maint-0.3.5' into maint-0.4.0teor
2019-08-12Merge remote-tracking branch 'tor-github/pr/1066' into maint-0.3.5teor
2019-08-12Merge remote-tracking branch 'tor-github/pr/1065' into maint-0.3.5teor
2019-08-12Merge remote-tracking branch 'tor-github/pr/1020' into maint-0.3.5teor
2019-07-24Remove src/core/ and src/feature dependencies from confparse.cNick Mathewson
This C file will eventually belong in lib/confmgt, so it needs to have only low-level dependencies. Now that it no longers needs routerset.c, we can adjust its includes accordingly. I'm not moving the file yet, since it would make fixup commits on earlier branches here really hard to do.
2019-07-24Make config_var and config_fmt const.Nick Mathewson
Now that we have a reasonable implementation for overriding the default options for TestingTorNetwork, we don't need to modify config_var_t structs any more. And therefore, we can have constant format options, like reasonable people.
2019-07-24Refactor handling of TestingTorNetworkNick Mathewson
Previously, when TestingTorNetwork was set, we would manually adjust the initvalue members of a bunch of other config_var_t, and then re-run the early parts or parsing the options. Now we treat the initvalue fields as immutable, but instead assign to them in options_init(), as early as possible. Rather than re-running the early parts of options, we just re-call the options_init_from_string() function. This patch de-kludges some of our code pretty handily. I think it could later handle authorities and fallbacks, but for now I think we should leave those alone.
2019-07-23Merge branch 'tor-github/pr/1116'David Goulet
2019-07-01Merge branch 'maint-0.4.1'Nick Mathewson
2019-07-01Merge branch 'maint-0.3.5' into maint-0.4.0Nick Mathewson
2019-07-01Merge branch 'maint-0.2.9' into maint-0.3.5Nick Mathewson
2019-07-01Merge branch 'maint-0.4.0' into maint-0.4.1Nick Mathewson
2019-06-26Merge branch 'tor-github/pr/1114' into maint-0.4.1George Kadianakis
2019-06-25Make "invisibility" and "undumpability" properties of variables.Nick Mathewson
Previously, these were magical things that we detected by checking whether a variable's name was prefixed with two or three underscores.
2019-06-25Turn several properties of types or variables into flags.Nick Mathewson
"unsettable" is a property of types. LINELIST_V and OBSOLETE are unsettable, meaning that they cannot be set by name. "contained" is a property of types. I'm hoping to find a better name here. LINELIST_S is "contained" because it always appears within a LINELIST_V, and as such doesn't need to be dumped ore copied independently. "cumulative" is a property of types. Cumulative types can appear more than once in a torrc without causing a warning, because they add to each other rather than replacing each other. "obsolete" is a property of variables. "marking fragile" is now a command that struct members can accept. With these changes, confparse and config no longer ever need to mention CONFIG_TYPE_XYZ values by name.
2019-06-25Add a function to make sure all values in a config object are okNick Mathewson
2019-06-25Extend macros to allow flag arguments.Nick Mathewson
2019-06-25Use structvar to find the types for config vars.Nick Mathewson
2019-06-25Use struct_var_{copy,eq} in confparse.c.Nick Mathewson
2019-06-25Move responsibility for config var macrosNick Mathewson
The testing-only parts now live in a conftesting.h; the shared parts of the macros live in confmacros.h
2019-06-25Use struct_magic_decl to verify magic numbers in config objectsNick Mathewson
2019-06-25Move config_var_t info conftypes.hNick Mathewson
2019-06-25Port confparse to use struct_var in place of typed_var.Nick Mathewson
This requires changes to config_var_t, causing corresponding changes throughout its users.
2019-06-24Partially port routerset to being a full-fledged config type again.Nick Mathewson
2019-06-24Add a "typed_var" abstraction to implement lvalue access in C.Nick Mathewson
Right now, this has been done at a high level by confparse.c, but it makes more sense to lower it. This API is radically un-typesafe as it stands; we'll be wrapping it in a safer API as we do #30914 and lower the struct manipulation code as well. Closes ticket 30864.
2019-06-24Move unit-parsing code to src/lib/confmgtNick Mathewson
lib/confmgt is at a higher level than lib/conf, since it needs to call down to logging and similar modules.
2019-06-24Start moving types that will be used for config vars to lib/confNick Mathewson
This will be a lower-level module than anything that actually sets or handles configuration variables. Part of 30864.
2019-06-15Merge branch 'bug30894_035' into ticket30893Nick Mathewson
2019-06-15Add more unit tests for confparse.c, so we can refactor.Nick Mathewson
This set of tests gets the line coverage to 100%.
2019-06-15Fix memleak when failing to parse a CSV_INTERVAL.Nick Mathewson
Fixes bug 30894; bugfix on 0.3.4.1-alpha
2019-06-15Remove the PORT configuration type: nothing uses it.Nick Mathewson
All of our port configurations now use an extended format.
2019-06-15Renaming: CONFIG_TYPE_UINT -> CONFIG_TYPE_POSINTNick Mathewson
This name has been a historical source of confusion, since "uint" usually suggests "unsigned int" to people, when the real type is "nonnegative int".
2019-06-11Merge branch 'tor-github/pr/1031'David Goulet
2019-06-11Merge branch 'tor-github/pr/1065' into maint-0.4.1George Kadianakis
2019-06-05Merge remote-tracking branch 'tor-github/pr/1020' into maint-0.4.0Nick Mathewson
2019-06-05Run "make autostyle."Nick Mathewson
2019-05-31Merge branch 'bug29875_035' into bug29875_masterNick Mathewson
2019-05-31Consider dir info to have changed when the bridges changeNick Mathewson
Otherwise, we won't realize that we haven't got enough bridge information to build circuits. Part of a fix for ticket 29875.
2019-05-31Fix a logic error in deciding whether to accept SessionGroup=Nick Mathewson
Fixes bug 22619; bugfix on 0.2.7.2-alpha
2019-05-16Prop 301: No longer vote on RecommendedPackagesIain R. Learmonth
This is the first half of implementing proposal 301. The RecommendedPackages torrc option is marked as obsolete and the test cases for the option removed. Additionally, the code relating to generating and formatting package lines in votes is removed. These lines may still appear in votes from other directory authorities running earlier versions of the code and so consensuses may still contain package lines. A new consensus method will be needed to stop including package lines in consensuses. Fixes: #28465
2019-05-14Merge branch 'ticket30452_035_v3' into ticket30452_041_v3Nick Mathewson
2019-05-14Add a --list-modules commandNick Mathewson
Closes ticket 30452.
2019-05-13Merge branch 'bug28683_30173_29203_squashed'Nick Mathewson