aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/settings/settings_parser.y
Commit message (Collapse)AuthorAgeFilesLines
* settings: Replace deprecated YYLEX_PARAM with %lex-paramTobias Brunner2014-05-151-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 othersTobias Brunner2014-05-151-2/+2
| | | | | Newer Bison versions declare the parser function in the header, which requires custom types.
* settings: Reduce log verbosity if files can't be openedTobias Brunner2014-05-151-1/+10
| | | | Basically reintroducing 2a38b4556e9fd8102bd6c6c61f2893599a5e8e51.
* settings: Add functions to add sections and key/value pairs to a sectionTobias Brunner2014-05-151-25/+3
|
* settings: Optionally keep track of removed/replaced valuesTobias Brunner2014-05-151-5/+5
|
* settings: Add flex/bison based parser for strongswan.confTobias Brunner2014-05-151-0/+299
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.