summaryrefslogtreecommitdiff
path: root/src/common/confline.c
AgeCommit message (Collapse)Author
2018-06-27Move confline.c to lib/encoding: it is about encoding key-value pairsNick Mathewson
Also, move "unescape_string()" to encoding too, since it's about encoding data as C strings.
2018-06-27Split confline into confline and conffile.Nick Mathewson
The "conffile" module knows about includes and filesystem access, whereas confline doesn't. This will make it possible to put these functions into libraries without introducing a cycle.
2018-06-22Automated fixup of include paths after torlog.h movement.Nick Mathewson
2018-06-22Extract smartlist.h from container.hNick Mathewson
2018-06-22Rectify include paths after container split (automatic)Nick Mathewson
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2017-12-08Convert the rest of src/common's headers to use FREE_AND_NULLNick Mathewson
2017-10-31Merge branch 'fix-torrcd-sandbox-22605v2'Nick Mathewson
2017-09-28Correct docs for config_lines_dup_and_filterNick Mathewson
2017-09-15Run our #else/#endif annotator on our source code.Nick Mathewson
2017-08-30Adds files included by torrc and defaults to sandbox filter #22605Daniel Pinto
2017-08-08Use a single free-and-exit strategy in config_process_include.Nick Mathewson
This avoids a double-free when a pointer already freed with tor_free(config_line) is freed again in the cleanup-and-exit code. Fixes bug 23155.
2017-05-28Replace 3-star pointer with 2-star pointerDaniel Pinto
2017-05-28Fix crash with %includeDaniel Pinto
Fixes crash when including a folder that contains a non-empty file without any values followed by any other non-empty file.
2017-05-19Remove call to get_unquoted_path in config_process_include()Nick Mathewson
parse_config_line_from_str_verbose() already looks for strings that are surrounded by quotes, and processes them with unescape_string(). So things were getting decoded twice, which was (in turn) playing havoc with backslashes on Windows.
2017-05-18Add support for %include funcionality on torrc #1922Daniel Pinto
config_get_lines is now split into two functions: - config_get_lines which is the same as before we had %include - config_get_lines_include which actually processes %include
2017-04-15Add a config_line_prepend() functionNick Mathewson
2017-04-06Explain config_line_find() behavior on duplicates.Nick Mathewson
2017-04-06Add an assertion to config_line_append().Nick Mathewson
2017-04-04Move config line parsing function to confline.cNick Mathewson
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.