Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| | ||||||
* | result destructor at the wrong level | Andreas Steffen | 2014-05-14 | 1 | -1/+1 | |
| | ||||||
* | 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 | |
| | ||||||
* | Implemented PT-EAP protocol (RFC 7171) | Andreas Steffen | 2014-05-12 | 8 | -79/+170 | |
| | ||||||
* | 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 | 1 | -1/+1 | |
| | ||||||
* | 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. | |||||
* | 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 | |
| | ||||||
* | swanctl: Document most swanctl.conf options in manpage | Martin Willi | 2014-05-07 | 2 | -130/+693 | |
| | ||||||
* | swanctl: Keep swanctl.conf man/template section order as defined | Martin Willi | 2014-05-07 | 1 | -2/+2 | |
| | ||||||
* | swanctl: Add a swanctl command overview manpage | Martin Willi | 2014-05-07 | 3 | -0/+85 | |
| | ||||||
* | swanctl: Generate swanctl.conf(5) man page | Tobias Brunner | 2014-05-07 | 4 | -0/+34 | |
| | ||||||
* | swanctl: Generate man page snippet with config options | Tobias Brunner | 2014-05-07 | 1 | -3/+7 | |
| | ||||||
* | swanctl: Convert swanctl.conf to an options file and generate config | Tobias Brunner | 2014-05-07 | 4 | -126/+198 | |
| | ||||||
* | swanctl: Install swanctl.conf if it does not exist yet | Tobias Brunner | 2014-05-07 | 1 | -2/+6 | |
| | ||||||
* | swanctl: Change syntax of secrets to accept identities with special chars | Martin Willi | 2014-05-07 | 2 | -46/+55 | |
| | | | | | | | | | | | Having identity strings in the settings key is problematic, as the parser can't handle arbitrary characters in it. Further, the space separation makes it impossible to define identities with spaces. The new format uses key prefixes, similar to those used in local/remote auth sections of connections. The secrets section takes subsections with type prefixes, and each subsection uses "id" prefixes to define an arbitrary number of identities. | |||||
* | swanctl: List local and remote addresses in list-conns | Martin Willi | 2014-05-07 | 1 | -1/+18 | |
| | ||||||
* | swanctl: Add a list-pools command to summarize pool status | Martin Willi | 2014-05-07 | 3 | -1/+98 | |
| | ||||||
* | swanctl: Add a load-pools command to (re-)load pool configurations from file | Martin Willi | 2014-05-07 | 3 | -1/+285 | |
| | ||||||
* | swanctl: Encode connection "pools" as list items | Martin Willi | 2014-05-07 | 1 | -0/+1 | |
| | ||||||
* | swanctl: Fix enumeration of registered commands if MAX_COMMANDS is hit | Martin Willi | 2014-05-07 | 1 | -3/+3 | |
| | ||||||
* | swanctl: Implement a --log command to trace debugging log | Martin Willi | 2014-05-07 | 3 | -1/+98 | |
| | ||||||
* | swanctl: Add a swanctl.conf template file | Martin Willi | 2014-05-07 | 2 | -0/+124 | |
| | ||||||
* | swanctl: Implement a --list-certs command to print or export daemon certificates | Martin Willi | 2014-05-07 | 3 | -1/+670 | |
| | ||||||
* | swanctl: Be more verbose while loading connections and credentials | Martin Willi | 2014-05-07 | 2 | -2/+26 | |
| | ||||||
* | swanctl: Add a list-conns command to query loaded connections | Martin Willi | 2014-05-07 | 2 | -0/+220 | |
| | ||||||
* | swanctl: Register --version as last command | Martin Willi | 2014-05-07 | 1 | -1/+1 | |
| | ||||||
* | swanctl: Support groups, certs and cacerts keywords | Martin Willi | 2014-05-07 | 1 | -0/+70 | |
| | ||||||
* | swanctl: Load shared secrets from the swanctl.conf secrets section | Martin Willi | 2014-05-07 | 1 | -1/+96 | |
| | ||||||
* | swanctl: Load different private keys with load-creds | Martin Willi | 2014-05-07 | 2 | -1/+197 | |
| | ||||||
* | swanctl: Add a command to (re-)load credentials | Martin Willi | 2014-05-07 | 3 | -0/+197 | |
| |