Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Minor changes in the test environment5.2.0dr4 | Andreas Steffen | 2014-05-15 | 3 | -1/+11 |
| | |||||
* | Merge branch 'settings-parser' | Tobias Brunner | 2014-05-15 | 22 | -773/+2039 |
|\ | | | | | | | | | | | | | | | Adds a flex/bison based parser for settings_t. It provides several improvements over the previous parser e.g. quoted strings (with escape sequences), unlimited includes, more relaxed newline handling, better syntax error reporting, and a distinction between empty and unset values (key = vs. key = ""). | ||||
| * | 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. | ||||
| * | scripts: Add test script for settings_t | Tobias Brunner | 2014-05-15 | 2 | -1/+128 |
| | | |||||
| * | parser-helper: Define debug macros depending on DEBUG_LEVEL | Tobias Brunner | 2014-05-15 | 1 | -3/+20 |
| | | |||||
| * | parser-helper: Make parser_helper_file_t private | Tobias Brunner | 2014-05-15 | 3 | -58/+40 |
| | | |||||
| * | parser-helper: Make parser_helper_log a function | Tobias Brunner | 2014-05-15 | 2 | -9/+28 |
| | | |||||
| * | settings: strongswan.conf must be loaded explicitly | Tobias Brunner | 2014-05-15 | 5 | -9/+20 |
| | | |||||
| * | 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 | 2 | -2/+11 |
| | | | | | | | | Basically reintroducing 2a38b4556e9fd8102bd6c6c61f2893599a5e8e51. | ||||
| * | settings: Adopt the new order of sections and settings when replacing configs | Tobias Brunner | 2014-05-15 | 2 | -7/+119 |
| | | |||||
| * | settings: Only purge sections if necessary | Tobias Brunner | 2014-05-15 | 4 | -55/+115 |
| | | | | | | | | | | Instead of removing and caching all values of a previous config, we only do this for actually removed sections/settings. | ||||
| * | coverage: Make genhtml not fail if sources are not found | Tobias Brunner | 2014-05-15 | 1 | -1/+1 |
| | | | | | | | | | | For some reason the .y and .l files of the settings parser are searched in the wrong directory. | ||||
| * | settings: Maintain order of sections and settings while enumerating | Tobias Brunner | 2014-05-15 | 4 | -66/+59 |
| | | |||||
| * | settings: Don't overwrite values in-place | Tobias Brunner | 2014-05-15 | 4 | -36/+52 |
| | | | | | | | | | | | | | | 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 |
| | | |||||
| * | unit-tests: Update settings tests to match new parser | Tobias Brunner | 2014-05-15 | 1 | -59/+124 |
| | | | | | | | | | | Empty settings are now ignored, strings are supported, newlines are handled properly (e.g. at the end of files) etc. | ||||
| * | 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 | 5 | -1/+501 |
| | | | | | | | | | | | | | | | | | | | | | | 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 | 4 | -6/+294 |
| | | | | | | | | This allows us to use them in the upcoming parser. | ||||
| * | parser-helper: Add utility class for flex/bison based parsers | Tobias Brunner | 2014-05-15 | 4 | -3/+408 |
| | | |||||
| * | settings: Use glob enumerator to load included files | Tobias Brunner | 2014-05-15 | 1 | -32/+13 |
| | | |||||
| * | enumerator: Add enumerator to enumerate files matching a pattern | Tobias Brunner | 2014-05-15 | 2 | -3/+140 |
| | | | | | | | | | | | | | | | | | | | | | | | | This enumerator is a wrapper around glob(3). If that function is not supported NULL is returned. If no files match or an error occurs during the pattern expansion an error is logged and the enumerator simply returns no items. RFC: if GLOB_ERR is not supplied glob returns GLOB_NOMATCH if e.g. the base directory of the pattern does not exist, which would otherwise result in an error. This way there is at least a clear error message in case of a typo. | ||||
| * | settings: Move to a separate folder | Tobias Brunner | 2014-05-15 | 6 | -13/+15 |
| | | |||||
| * | array: Allocate initial data properly if esize is 0 | Tobias Brunner | 2014-05-15 | 1 | -1/+1 |
|/ | |||||
* | swanctl: Increase default debug level to 1 | Martin Willi | 2014-05-14 | 1 | -1/+1 |
| | | | | | We initially intended to silence debugging only during thread initialization, not for swanctl in general. | ||||
* | vici: Support the close_action keyword, as we have it documented | Martin Willi | 2014-05-14 | 1 | -1/+6 |
| | |||||
* | ikev1: Fix debugging log when remote traffic selector selection fails | Martin Willi | 2014-05-14 | 1 | -1/+1 |
| | |||||
* | Version bump to 5.2.0dr4 | Andreas Steffen | 2014-05-14 | 1 | -1/+1 |
| | |||||
* | result destructor at the wrong level | Andreas Steffen | 2014-05-14 | 1 | -1/+1 |
| | |||||
* | conf: Fix sorting of options with Python 3 | Tobias Brunner | 2014-05-13 | 1 | -2/+2 |
| | | | | | | __cmp__() is not supported anymore with Python 3 and cmp() is deprecated. Instead rich comparisons should be used (only __lt__() is required for sorting). | ||||
* | conf: print is a function in Python 3 | Tobias Brunner | 2014-05-13 | 1 | -13/+13 |
| | |||||
* | build-database.sh finds all *.so files in /usr/lib | Andreas Steffen | 2014-05-13 | 1 | -46/+5 |
| | |||||
* | Defined BIOS and EFI event types and log event info | Andreas Steffen | 2014-05-13 | 1 | -4/+105 |
| | | | | | On debug level 2 log EV_ACTION and EV_EFI_ACTION strings and on level 3 dump raw event information | ||||
* | libpts: Updated Android.mk | Tobias Brunner | 2014-05-12 | 1 | -0/+2 |
| | |||||
* | Version bump to 5.2.0dr35.2.0dr3 | Andreas Steffen | 2014-05-12 | 1 | -1/+1 |
| | |||||
* | Added implementation of RFC 7171 to NEWS | Andreas Steffen | 2014-05-12 | 1 | -0/+3 |
| | |||||
* | Implemented PT-EAP protocol (RFC 7171) | Andreas Steffen | 2014-05-12 | 56 | -236/+337 |
| | |||||
* | Extended build-database.sh | Andreas Steffen | 2014-05-12 | 1 | -2/+25 |
| | |||||
* | attest now maintains multiple versions of a file hash | Andreas Steffen | 2014-05-10 | 6 | -95/+86 |
| | |||||
* | Changed default value to libimcv.imc-attestation.pcr_info = no | Andreas Steffen | 2014-05-10 | 2 | -2/+2 |
| | |||||
* | child-sa: Reclaim old state if SA updating is not supported | Martin Willi | 2014-05-09 | 1 | -0/+2 |
| | | | | | If the state stays at UPDATING, the fallback using IKEv1 rekeying fails as the task manager refuses to rekey a CHILD_SA in non-INSTALLED state. | ||||
* | NEWS: Add swanctl news | Martin Willi | 2014-05-08 | 1 | -0/+5 |
| | |||||
* | Merge branch 'swanctl' | Martin Willi | 2014-05-07 | 28 | -7/+4861 |
|\ | | | | | | | | | Adds a swanctl command line tool to manage the IKE daemon charon using the VICI interface provided by the vici plugin. | ||||
| * | swanctl: By default print local swanctl version with --version | Martin Willi | 2014-05-07 | 1 | -2/+12 |
| | | | | | | | | But add a --daemon option to query the IKE daemon for its version. | ||||
| * | swanctl: Install empty credential folders with appropriate permissions | Martin Willi | 2014-05-07 | 1 | -0/+8 |
| | |