summaryrefslogtreecommitdiff
path: root/src/or/confparse.c
AgeCommit message (Collapse)Author
2018-07-05Move literally everything out of src/orNick Mathewson
This commit won't build yet -- it just puts everything in a slightly more logical place. The reasoning here is that "src/core" will hold the stuff that every (or nearly every) tor instance will need in order to do onion routing. Other features (including some necessary ones) will live in "src/feature". The "src/app" directory will hold the stuff needed to have Tor be an application you can actually run. This commit DOES NOT refactor the former contents of src/or into a logical set of acyclic libraries, or change any code at all. That will have to come in the future. We will continue to move things around and split them in the future, but I hope this lays a reasonable groundwork for doing so.
2018-07-03Merge remote-tracking branch 'github/ticket26626'Nick Mathewson
2018-07-03Retire U64_TO_DBL and DBL_TO_U64Nick Mathewson
These were necessary long ago to work around a bug in VC6.
2018-07-03Return U64_PRINTF_ARG and U64_FORMATNick Mathewson
The standard is printf("%"PRIu64, x);
2018-07-03Replace U64_LITERAL with the standard UINT64_CNick Mathewson
2018-07-01Remove needless includes from or.hNick Mathewson
or.h should really include only the minimum of stuff from or/*, common/*, and lib/*.
2018-06-22Remove bloom filters, order statistics, and bitarrays from container.hNick Mathewson
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-04-22Change the type of "download schedule" from smartlist to int.Nick Mathewson
This is done as follows: * Only one function (find_dl_schedule()) actually returned a smartlist. Now it returns an int. * The CSV_INTERVAL type has been altered to ignore everything after the first comma, and to store the value before the first comma in an int.
2017-12-08Update free functions into macros: src/or/ part 1Nick Mathewson
This covers addressmap.h (no change needed) through confparse.h
2017-05-02Delete useless checks in confparse.cTaylor Yu
config_parse_interval() and config_parse_msec_interval() were checking whether the variable "ok" (a pointer to an int) was null, rather than derefencing it. Both functions are static, and all existing callers pass a valid pointer to those static functions. The callers do check the variables (also confusingly named "ok") whose addresses they pass as the "ok" arguments, so even if the pointer check were corrected to be a dereference, it would be redundant. Fixes #22103.
2017-04-04Move config_line_t functions from confparse.c into common.Nick Mathewson
I'm doing this to storagedir to used config_line_t.
2017-03-15Run the copyright update script.Nick Mathewson
2017-03-08Fix a memory leak in config_get_assigned_option()Nick Mathewson
This was introducd in 4d83999213712c7 in 0.3.0.3-alpha. This is bug 21682.
2017-01-30Make "GETCONF SocksPort" work againNick Mathewson
I broke "GETCONF *Port" in 20956, when I made SocksPort a subordinate option of the virtual option SocksPortLines, so that I could make SocksPort and __SocksPort provide qthe same functionality. The problem was that you can't pass a subordinate option to GETCONF. So, this patch fixes that by letting you fetch subordinate options. It won't always be meaningful to consider these options out-of-context, but that can be the controller-user's responsibility to check. Closes ticket 21300.
2017-01-23Merge branch 'feature_20956_029'Nick Mathewson
2017-01-18Handle __NonSavedOptions correctly inside LINELIST_V blocks.Nick Mathewson
2016-11-10Add "TByte" and "TBytes" units; also add "TBits" to man pageMatt Nordhoff
2016-10-24Module documentation for config.c and confparse.cNick Mathewson
2016-08-19Log a warning when Testing options are deprecated.Nick Mathewson
2016-08-03Add new warn_deprecated option to config_assign*().Nick Mathewson
Also, collapse all the config_assign*() options into a flags argument, since having two boolean arguments was already confusing.
2016-08-03Mark a big pile of options as deprecated.Nick Mathewson
2016-08-03Add deprecation for configuration options that need to go away.Nick Mathewson
2016-06-11Add -Wfloat-conversion for GCC >= 4.9Nick Mathewson
This caught quite a few minor issues in our unit tests and elsewhere in our code.
2016-02-27Update the copyright year.Nick Mathewson
2016-02-27Make sure that every module in src/or has a brief description.Nick Mathewson
2015-01-02Bump copyright dates to 2015, in case someday this matters.Nick Mathewson
2014-10-28Add another year to our copyright dates.Nick Mathewson
Because in 95 years, we or our successors will surely care about enforcing the BSD license terms on this code. Right?
2013-10-09Free the smartlist after parsing csv config optionMatthew Finkel
Bugfix on 1293835440dd4debf6fbfc66e755d9b9384aa362, which implemented 6752: Not in any released tor.
2013-09-13Add a --dump-config option to help testing option parsing.Nick Mathewson
2013-09-13Use commandline parser for other optionsNick Mathewson
These were previously allowed only in the initial position: --help, -h , --version, --digests, --list-torrc-options
2013-07-26Allow {,k,kilo,m,mega,g,giga,t,tera}bit{,s} in torrcNick Mathewson
Patch from CharlieB for ticket #9214
2013-05-24Tweak #6752 patch based on comments by nickm.Karsten Loesing
2013-05-16Lower dir fetch retry schedules in testing networks.Karsten Loesing
Also lower maximum interval without directory requests, and raise maximum download tries. Implements #6752.
2013-03-19Merge branch 'bug8240_v2_squashed' into maint-0.2.4Nick Mathewson
Conflicts: doc/tor.1.txt src/or/circuitbuild.c src/or/config.c src/or/or.h
2013-02-19Make a parse_config_line_from_str variant that gives error messagesNick Mathewson
Without this patch, there's no way to know what went wrong when we fail to parse a torrc line entirely (that is, we can't turn it into a K,V pair.) This patch introduces a new function that yields an error message on failure, so we can at least tell the user what to look for in their nonfunctional torrc. (Actually, it's the same function as before with a new name: parse_config_line_from_str is now a wrapper macro that the unit tests use.) Fixes bug 7950; fix on 0.2.0.16-alpha (58de695f9062576f) which first introduced the possibility of a torrc value not parsing correctly.
2013-01-16Update the copyright date to 201.Nick Mathewson
2012-09-14Split the routerset code out of routerlist.cNick Mathewson
2012-09-13Remove all remaining spurious or_options_t invocations in confparse.cNick Mathewson
2012-09-13Split the generic config_fmt_t code into a new confparse.c fileNick Mathewson
This helps us split up one of our larger files, and sets the stage for refactoring the configuration backend a little