Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | settings: Merge quoted strings that span multiple lines | Tobias Brunner | 2015-03-20 | 1 | -3/+2 |
| | |||||
* | settings: Make loading a NULL or empty pattern a (nop-)success | Martin Willi | 2014-09-22 | 1 | -1/+1 |
| | |||||
* | settings: Use strongswan.conf used during library initialization for reload | Martin Willi | 2014-09-22 | 1 | -3/+1 |
| | | | | | | | | Since 4b670a20 we require an explicit strongswan.conf to re-load configurations. However, the define was missing in the build, breaking SIGHUP based config reloading. Fixes #651. | ||||
* | settings: Allow spaces in time settings before the optional unit | Martin Willi | 2014-07-07 | 1 | -0/+5 |
| | |||||
* | settings: Be more strict in converting settings to specific data types | Martin Willi | 2014-07-07 | 1 | -5/+15 |
| | | | | | | | As the behavior was inconsistent for empty strings or strings with characters appended to a number, testing the code failed on some platforms. The new rules are more strict, returning the default if additional characters or an empty string was found for a setting. | ||||
* | settings: Properly match } and # in include statements | Tobias Brunner | 2014-05-15 | 1 | -6/+16 |
| | | | | | | Found due to %option nodefault. A match for } was actually missing and # was not properly matched if it was part of an include statement on the last line of a file that did not end with a newline. | ||||
* | settings: Eliminate performance warning | Tobias Brunner | 2014-05-15 | 1 | -2/+0 |
| | | | | | This was useful during development, but we accept that matching \n together with %option yylineno impacts performance. | ||||
* | parser-helper: Make parser_helper_file_t private | Tobias Brunner | 2014-05-15 | 1 | -3/+3 |
| | |||||
* | settings: strongswan.conf must be loaded explicitly | Tobias Brunner | 2014-05-15 | 2 | -7/+5 |
| | |||||
* | settings: Replace deprecated YYLEX_PARAM with %lex-param | Tobias Brunner | 2014-05-15 | 1 | -3/+7 |
| | | | | | | | | With Bison 3.x support for YYLEX_PARAM has been removed and %lex-param should be used. Unfortunately, that option does not take expressions. Instead we use a wrapper function that calls the lexer with the proper scanner object, which should also be backward compatible to older Bison versions. | ||||
* | settings: Include generated header after others | Tobias Brunner | 2014-05-15 | 2 | -4/+4 |
| | | | | | Newer Bison versions declare the parser function in the header, which requires custom types. | ||||
* | settings: Reduce log verbosity if files can't be opened | Tobias Brunner | 2014-05-15 | 1 | -1/+10 |
| | | | | Basically reintroducing 2a38b4556e9fd8102bd6c6c61f2893599a5e8e51. | ||||
* | settings: Adopt the new order of sections and settings when replacing configs | Tobias Brunner | 2014-05-15 | 1 | -6/+36 |
| | |||||
* | settings: Only purge sections if necessary | Tobias Brunner | 2014-05-15 | 3 | -55/+86 |
| | | | | | Instead of removing and caching all values of a previous config, we only do this for actually removed sections/settings. | ||||
* | settings: Maintain order of sections and settings while enumerating | Tobias Brunner | 2014-05-15 | 3 | -9/+35 |
| | |||||
* | settings: Don't overwrite values in-place | Tobias Brunner | 2014-05-15 | 3 | -29/+36 |
| | | | | | | | This is not thread safe. If threads are reading from pointers to existing values they could get a partially updated invalid value. Refactored assignment to a separate function. | ||||
* | settings: Add functions to add sections and key/value pairs to a section | Tobias Brunner | 2014-05-15 | 4 | -68/+82 |
| | |||||
* | settings: Don't enumerate key/value pairs with NULL value | Tobias Brunner | 2014-05-15 | 1 | -1/+1 |
| | |||||
* | settings: Use generated parser instead of our own | Tobias Brunner | 2014-05-15 | 1 | -566/+53 |
| | |||||
* | settings: Optionally keep track of removed/replaced values | Tobias Brunner | 2014-05-15 | 3 | -16/+45 |
| | |||||
* | settings: Add flex/bison based parser for strongswan.conf | Tobias Brunner | 2014-05-15 | 3 | -0/+495 |
| | | | | | | | | | | | This parser features several improvements over the existing one. For instance, quoted strings (with escape sequences), unlimited includes, relaxed newline handling (e.g. at the end of files or before/after { and }), and the difference between empty and unset values (key = vs. key = ""). It also complains a lot more about invalid syntax. The current one accepts pretty odd stuff (like settings or sections without name) without any errors or warnings. | ||||
* | settings: Extract section and key/value pair types and helper functions | Tobias Brunner | 2014-05-15 | 2 | -0/+284 |
| | | | | This allows us to use them in the upcoming parser. | ||||
* | settings: Use glob enumerator to load included files | Tobias Brunner | 2014-05-15 | 1 | -32/+13 |
| | |||||
* | settings: Move to a separate folder | Tobias Brunner | 2014-05-15 | 2 | -0/+1871 |