aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/settings.c
Commit message (Collapse)AuthorAgeFilesLines
* settings: Use thread-safe dirname(3)Tobias Brunner2014-02-241-5/+3
|
* settings: Use dirname(3) correctlyTobias Brunner2014-02-241-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 fallbacksTobias Brunner2014-02-121-28/+157
|
* settings: Implement subsections and key/value pairs with sorted arraysTobias Brunner2014-02-121-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 sectionsTobias Brunner2014-02-121-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 bufferTobias Brunner2014-02-121-10/+5
| | | | | The key to print (e.g. until the next .) still has to be null-terminated.
* settings: Allow empty strings in section keyTobias Brunner2014-02-121-23/+31
|
* settings: Add a set_default_str() to set a different default for a keyMartin Willi2013-05-061-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 folderTobias Brunner2012-10-241-0/+1227