Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | settings: Use thread-safe dirname(3) | Tobias Brunner | 2014-02-24 | 1 | -5/+3 |
| | |||||
* | settings: Use dirname(3) correctly | Tobias Brunner | 2014-02-24 | 1 | -4/+4 |
| | | | | | | | | dirname(3) may return a pointer to a statically allocated buffer. So freeing the returned value can result to undefined behavior. This was noticed on FreeBSD where it caused very strange crashes. It is also not thread-safe, which will be addressed later. | ||||
* | settings: Add support to enumerate sections and key/value pairs with fallbacks | Tobias Brunner | 2014-02-12 | 1 | -28/+157 |
| | |||||
* | settings: Implement subsections and key/value pairs with sorted arrays | Tobias Brunner | 2014-02-12 | 1 | -68/+74 |
| | | | | | | Is a bit more memory efficient (also due to lazy instantiation) and lookups for sections with lots of subsections/keys (e.g. charon.plugins) are faster. | ||||
* | settings: Add method that allows to define fallback sections for other sections | Tobias Brunner | 2014-02-12 | 1 | -13/+141 |
| | | | | | The fallbacks are currently only used for single value lookups. Enumerators are not affected by them. | ||||
* | settings: Make print_key() not rely on null-terminated beginning of key buffer | Tobias Brunner | 2014-02-12 | 1 | -10/+5 |
| | | | | | The key to print (e.g. until the next .) still has to be null-terminated. | ||||
* | settings: Allow empty strings in section key | Tobias Brunner | 2014-02-12 | 1 | -23/+31 |
| | |||||
* | settings: Add a set_default_str() to set a different default for a key | Martin Willi | 2013-05-06 | 1 | -0/+21 |
| | | | | | The value is set only if it is not configured in strongswan.conf or has not been set() otherwise. | ||||
* | Moved settings_t to utils folder | Tobias Brunner | 2012-10-24 | 1 | -0/+1227 |