Commit Graph
34 Commits
Author SHA1 Message Date
Tobias Brunner 88f97e5c34 Added functions to modify/create settings in settings_t. 2010-12-03 17:40:52 +01:00
Tobias Brunner e997706273 Added an option to create non-existing key/value pairs during search. 2010-12-03 17:40:52 +01:00
Tobias Brunner 011f901d55 Compare shorter "boolean" values first. 2010-12-03 17:40:52 +01:00
Tobias Brunner d657edf576 Helper functions added to easily convert enumerated values. 2010-12-03 17:40:52 +01:00
Tobias Brunner f2649f354d Ensure that sections exist when using load_files_section. 2010-12-03 17:40:52 +01:00
Tobias Brunner 67c464d1a9 Skip values and sections without key. 2010-12-03 17:40:52 +01:00
Tobias Brunner dc46fd5879 Some refactorings in lookup code in settings_t. 2010-12-03 17:40:52 +01:00
Tobias Brunner b79f7d4208 Made settings_t thread-safe. 2010-12-03 17:40:52 +01:00
Tobias Brunner 0552135213 Added functions to settings_t to load files dynamically at runtime. 2010-12-03 17:40:52 +01:00
Tobias Brunner 6388a758ba Allow inclusion of other files in strongswan.conf. 2010-12-03 17:38:37 +01:00
Tobias Brunner 65d88a09f5 Loading of strongswan.conf refactored to a separate function. 2010-12-03 17:38:37 +01:00
Tobias Brunner 5e3be75829 Allow to replace/extend previously defined values/sections in strongswan.conf. 2010-12-03 17:38:37 +01:00
Tobias Brunner 3eb23f3864 Don't create a section in parse_section.
Just add subsections and values to the passed section.
2010-12-03 17:38:37 +01:00
Tobias Brunner f6037d79cf Removed unused static variable "lev". 2010-12-03 17:38:36 +01:00
Andreas Steffen 5cf523c012 Migrated settings_t to INIT/METHOD macros 2010-12-02 06:25:59 +01:00
Martin Willi 478eb66030 Fixed settings lookup if the section/key contains dots, second try 2010-08-09 14:30:16 +02:00
Martin Willi 63163cc340 The va_list trick does not seem to be portable, revert dots-in-section fix
This reverts commit 8f50d06c35.
2010-07-30 10:57:59 +02:00
Martin Willi 8f50d06c35 Fixed settings lookup if the section/key contains dots 2010-07-29 12:14:32 +02:00
Tobias Brunner 8b0e09103b Adding DBG_LIB to all calls of libstrongswan's version of DBG*. 2010-04-06 12:47:40 +02:00
Tobias Brunner 465ccdc8cf The parsed timeval is unsigned. 2010-03-03 17:34:49 +01:00
Tobias Brunner fac3bfa5cd Fixing some includes by replacing <> with "".
I changed only the includes needed to fix the build on Android, which has an utils.h system header file, but we should probably change all the local includes in libstrongswan to "" and relative paths.
2010-03-02 10:38:58 +01:00
Martin Willi 527f7f9b1c Added a "double" getter to libstrongswan settings 2010-01-11 16:39:28 +01:00
Martin Willi 3797b8e767 Support enumeration of key/value pairs in a section of strongswan.conf 2009-11-17 15:52:36 +00:00
Martin Willi 356b2b2780 pass NULL to library_init() to load settings from default file 2009-09-10 18:52:42 +02:00
Martin Willi 7b3814f75d remove spaces before tabs at the beginning of lines (^( )+\t) 2009-09-04 15:02:11 +02:00
Martin Willi 7daf5226b7 removed trailing spaces ([[:space:]]+$) 2009-09-04 13:46:09 +02:00
Tobias Brunner 8c5d72cd0b removing svn keyword $Id$ from all files 2009-04-30 13:19:35 +00:00
Andreas Steffen 63176bbcb0 moved strcaseeq() macro from constants.h to utils.h 2009-04-17 09:52:49 +00:00
Andreas Steffen 6319cd74ea pluto uses the libstrongswan leak detective and a stripped-down version of library_t 2009-04-16 08:25:47 +00:00
Martin Willi c9ef4cee46 settings section enumeration
printf style key lookup
2008-11-07 15:08:53 +00:00
Andreas Steffen 07d7f9a402 time values in strongswan.conf can be optionally specified in days (d), hours (h), minutes (m), or seconds (s) 2008-09-04 16:19:46 +00:00
Martin Willi 208b3baf10 fixed "enabled" value key word
more debugging for settings parser
2008-06-10 07:14:34 +00:00
Tobias Brunner 081a14cd33 added an error message when strongswan.conf cannot be read 2008-05-19 13:20:33 +00:00
Martin Willi 552cc11b1f merged the modularization branch (credentials) back to trunk 2008-03-13 14:14:44 +00:00