]> git.ipfire.org Git - people/ms/strongswan.git/log
people/ms/strongswan.git
10 years agoutils: Printf() defined time output should gmtime/localtime_r() fail
Martin Willi [Tue, 15 Oct 2013 14:10:05 +0000 (16:10 +0200)] 
utils: Printf() defined time output should gmtime/localtime_r() fail

10 years agobacktrace: Inline esc() helper, making it available to all build variants
Martin Willi [Thu, 2 Jan 2014 13:33:32 +0000 (14:33 +0100)] 
backtrace: Inline esc() helper, making it available to all build variants

10 years agobacktrace: Support backtraces on Windows without DbgHelp
Martin Willi [Tue, 19 Nov 2013 17:40:51 +0000 (18:40 +0100)] 
backtrace: Support backtraces on Windows without DbgHelp

While DbgHelp provides a convenient API to create backtraces, any executable
linking against DbgHelp gets a more than a significant slow down. Further, it
can only lookup global symbols, as it expects PDB files we can't produce with a
MinGW build.

With some core Kernel32.dll functionality, we can capture stack traces much
faster. Together with the optional libbfd, we can print very fine backtraces.

When --enable-bfd-backtraces is used on Windows, a libbfd.dll is required for
the build. Such a DLL can be created from the binutils sources using:

  # build binutils with mingw...

  # extract archive members from binutils libraries
  x86_64-w64-mingw32-ar x $BINUTILS/bfd/.libs/libbfd.a
  x86_64-w64-mingw32-ar x $BINUTILS/intl/libintl.a
  x86_64-w64-mingw32-ar x $BINUTILS/libiberty/libiberty.a

  # create self-contained libbfd.a, with index
  x86_64-w64-mingw32-ar qs libbfd.a *.o

  # create DLL from static library
  x86_64-w64-mingw32-dlltool -e libbfd.o -l libbfd.lib libbfd.a
  x86_64-w64-mingw32-gcc -shared libbfd.a libbfd.o -o libbfd.dll

10 years agobacktrace: Add DbgHelp based Windows support for creating/printing backtraces
Martin Willi [Mon, 14 Oct 2013 09:55:12 +0000 (11:55 +0200)] 
backtrace: Add DbgHelp based Windows support for creating/printing backtraces

10 years agoprintf-hook-builtin: Support Windows console colors using TTY escape codes
Martin Willi [Tue, 15 Oct 2013 13:45:11 +0000 (15:45 +0200)] 
printf-hook-builtin: Support Windows console colors using TTY escape codes

10 years agowindows: Link libstrongswan against ws2_32.dll
Martin Willi [Fri, 11 Oct 2013 16:03:47 +0000 (18:03 +0200)] 
windows: Link libstrongswan against ws2_32.dll

10 years agocapabilities: Add build support for Windows
Martin Willi [Fri, 11 Oct 2013 15:48:33 +0000 (17:48 +0200)] 
capabilities: Add build support for Windows

We might extend it in the future using some Windows rights management.

10 years agowindows: Use _getmaxstdio as replacement for syscall(_SC_OPEN_MAX)
Martin Willi [Fri, 11 Oct 2013 15:27:25 +0000 (17:27 +0200)] 
windows: Use _getmaxstdio as replacement for syscall(_SC_OPEN_MAX)

10 years agowindows: replace mkdir() with Windows _mkdir() variant
Martin Willi [Fri, 11 Oct 2013 15:26:35 +0000 (17:26 +0200)] 
windows: replace mkdir() with Windows _mkdir() variant

10 years agothread: Add a Windows pthread variant to print thread identifiers
Martin Willi [Fri, 11 Oct 2013 15:14:04 +0000 (17:14 +0200)] 
thread: Add a Windows pthread variant to print thread identifiers

10 years agowindows: Provide wrappers for dlopen() function family
Martin Willi [Fri, 11 Oct 2013 14:58:02 +0000 (16:58 +0200)] 
windows: Provide wrappers for dlopen() function family

10 years agocrl: Undefine <wincrypt.h>'s CRL_REASON_* and use our enum values instead
Martin Willi [Fri, 11 Oct 2013 13:59:37 +0000 (15:59 +0200)] 
crl: Undefine <wincrypt.h>'s CRL_REASON_* and use our enum values instead

10 years agotun-device: Rearrange headers to build properly when tun devices not supported
Martin Willi [Fri, 11 Oct 2013 13:43:30 +0000 (15:43 +0200)] 
tun-device: Rearrange headers to build properly when tun devices not supported

10 years agoconfigure.ac: Define USE_WINDOWS for Automake when building for Windows
Martin Willi [Fri, 11 Oct 2013 13:26:01 +0000 (15:26 +0200)] 
configure.ac: Define USE_WINDOWS for Automake when building for Windows

10 years agowindows: Add a common Windows header for platform specific wrappers
Martin Willi [Fri, 11 Oct 2013 12:45:56 +0000 (14:45 +0200)] 
windows: Add a common Windows header for platform specific wrappers

Include some more basic system headers in utils.h, so we can use that common
header on the different platforms.

10 years agoimv-swid: Cast json object strings when using it as chunk pointer
Martin Willi [Tue, 3 Jun 2014 10:20:28 +0000 (12:20 +0200)] 
imv-swid: Cast json object strings when using it as chunk pointer

While the string is actually const, we don't have a const chunk to handle such
strings properly in chunks. Fixes compiler warnings.

10 years agotravis: Install libjson dependency for "all" tests
Martin Willi [Tue, 3 Jun 2014 08:16:33 +0000 (10:16 +0200)] 
travis: Install libjson dependency for "all" tests

10 years agotesting: Cache packages downloaded with pip for strongTNC
Tobias Brunner [Mon, 2 Jun 2014 15:45:42 +0000 (17:45 +0200)] 
testing: Cache packages downloaded with pip for strongTNC

This way no network connections is required to rebuild the root/guest images.

10 years agoFirst swanctl scenario
Andreas Steffen [Sun, 1 Jun 2014 19:12:15 +0000 (21:12 +0200)] 
First swanctl scenario

10 years agoAdded SWID IMV REST API implementation to NEWS
Andreas Steffen [Sat, 31 May 2014 18:52:37 +0000 (20:52 +0200)] 
Added SWID IMV REST API implementation to NEWS

10 years agoAllow large lines output by swid_generator to be processed
Andreas Steffen [Sat, 31 May 2014 18:33:19 +0000 (20:33 +0200)] 
Allow large lines output by swid_generator to be processed

10 years agoMake REST POST request timeout configurable
Andreas Steffen [Sat, 31 May 2014 18:29:21 +0000 (20:29 +0200)] 
Make REST POST request timeout configurable

10 years agoTest SWID REST API ins tnc/tnccs-20-pdp scenarios
Andreas Steffen [Sat, 31 May 2014 18:23:15 +0000 (20:23 +0200)] 
Test SWID REST API ins tnc/tnccs-20-pdp scenarios

10 years agoDetect RADIUS packet retransmissions
Andreas Steffen [Sat, 31 May 2014 18:19:12 +0000 (20:19 +0200)] 
Detect RADIUS packet retransmissions

10 years agoUpdated IMC/IMV entries in strongswan.conf man page
Andreas Steffen [Fri, 30 May 2014 08:00:08 +0000 (10:00 +0200)] 
Updated IMC/IMV entries in strongswan.conf man page

10 years agoMigration from Debian 7.4 to 7.5
Andreas Steffen [Fri, 30 May 2014 07:31:59 +0000 (09:31 +0200)] 
Migration from Debian 7.4 to 7.5

10 years agoFixed swid_generator interface
Andreas Steffen [Fri, 30 May 2014 07:29:56 +0000 (09:29 +0200)] 
Fixed swid_generator interface

10 years agoDetect oversize SWID tags
Andreas Steffen [Thu, 29 May 2014 11:05:39 +0000 (13:05 +0200)] 
Detect oversize SWID tags

10 years agomax_attr_size is an uint32_t value
Andreas Steffen [Thu, 29 May 2014 11:04:30 +0000 (13:04 +0200)] 
max_attr_size is an uint32_t value

10 years agoUpdate of Ubuntu 14.04 kernel
Andreas Steffen [Wed, 28 May 2014 13:21:43 +0000 (15:21 +0200)] 
Update of Ubuntu 14.04 kernel

10 years agoWait for the arrival of the TCPG_PTS_DH_NONCE_PARAMS_RESP
Andreas Steffen [Tue, 27 May 2014 19:15:12 +0000 (21:15 +0200)] 
Wait for the arrival of the TCPG_PTS_DH_NONCE_PARAMS_RESP

10 years agoIncreased maximum PT-TLS message size to 2MB
Andreas Steffen [Tue, 27 May 2014 17:36:36 +0000 (19:36 +0200)] 
Increased maximum PT-TLS message size to 2MB

10 years agolog SWID tags and tag IDs on debug level 3
Andreas Steffen [Tue, 27 May 2014 17:29:16 +0000 (19:29 +0200)] 
log SWID tags and tag IDs on debug level 3

10 years agoAutomatic determination of maximum PB-TNC batch and PA-TNC message size
Andreas Steffen [Tue, 27 May 2014 17:03:49 +0000 (19:03 +0200)] 
Automatic determination of maximum PB-TNC batch and PA-TNC message size

10 years agoCompleted the command line options of the pt-tls-client
Andreas Steffen [Tue, 27 May 2014 17:02:36 +0000 (19:02 +0200)] 
Completed the command line options of the pt-tls-client

10 years agoSplit TCG SWID Request attribute into chunks if needed
Andreas Steffen [Mon, 26 May 2014 07:36:31 +0000 (09:36 +0200)] 
Split TCG SWID Request attribute into chunks if needed

10 years agoCheck for libjson
Andreas Steffen [Mon, 26 May 2014 05:51:44 +0000 (07:51 +0200)] 
Check for libjson

10 years agoAdded Debian 7.5 product and all Debian armv6l products
Andreas Steffen [Sun, 25 May 2014 15:58:36 +0000 (17:58 +0200)] 
Added Debian 7.5 product and all Debian armv6l products

10 years agoFixed typo in tables.sql
Andreas Steffen [Sun, 25 May 2014 15:58:00 +0000 (17:58 +0200)] 
Fixed typo in tables.sql

10 years agoAdditional index to improve performance
Andreas Steffen [Sat, 24 May 2014 10:26:20 +0000 (12:26 +0200)] 
Additional index to improve performance

10 years agoSupport targeted retrieval of SWID tags
Andreas Steffen [Fri, 23 May 2014 21:26:44 +0000 (23:26 +0200)] 
Support targeted retrieval of SWID tags

10 years agocurl: Don't set CURLOPT_FAILONERROR
Tobias Brunner [Thu, 22 May 2014 13:11:23 +0000 (15:11 +0200)] 
curl: Don't set CURLOPT_FAILONERROR

With the strongTNC REST API some errors will actually be accompanied by
a response we want to receive completely.

10 years agoImplemented SWID REST API
Andreas Steffen [Fri, 23 May 2014 13:21:38 +0000 (15:21 +0200)] 
Implemented SWID REST API

10 years agoSet entity_name to strongSwan Project
Andreas Steffen [Fri, 23 May 2014 11:45:18 +0000 (13:45 +0200)] 
Set entity_name to strongSwan Project

10 years agoUpdated strongSwan SWID Tag from ISO 2009 to 2014 format
Andreas Steffen [Fri, 23 May 2014 11:35:34 +0000 (13:35 +0200)] 
Updated strongSwan SWID Tag from ISO 2009 to 2014 format

10 years agoVersion bump to 5.2.0dr5
Andreas Steffen [Sat, 31 May 2014 18:37:26 +0000 (20:37 +0200)] 
Version bump to 5.2.0dr5

10 years agoMake sure getpass() is available
Tobias Brunner [Thu, 29 May 2014 10:25:21 +0000 (12:25 +0200)] 
Make sure getpass() is available

It's not on Android for example.

10 years agostarter: Fix build on Android
Tobias Brunner [Wed, 28 May 2014 16:20:42 +0000 (18:20 +0200)] 
starter: Fix build on Android

While the (default) ipsec script does not work on Android starter still
passes the script's name to charon if leftfirewall is configured.

10 years agoSome more files to measure
Andreas Steffen [Wed, 21 May 2014 12:00:25 +0000 (14:00 +0200)] 
Some more files to measure

10 years agoAdded all SWID tables and example regids
Andreas Steffen [Wed, 21 May 2014 11:51:44 +0000 (13:51 +0200)] 
Added all SWID tables and example regids

10 years agoscripts: Ignore settings-test script
Tobias Brunner [Tue, 20 May 2014 16:56:43 +0000 (18:56 +0200)] 
scripts: Ignore settings-test script

10 years agopeer-cfg: Add missing UNIQUE_NEVER to unique_policy_names
Martin Willi [Mon, 19 May 2014 16:04:41 +0000 (18:04 +0200)] 
peer-cfg: Add missing UNIQUE_NEVER to unique_policy_names

10 years agounit-tests: Sync threads with main thread in test_cleanup_cancel()
Tobias Brunner [Mon, 19 May 2014 14:06:52 +0000 (16:06 +0200)] 
unit-tests: Sync threads with main thread in test_cleanup_cancel()

Without synchronization threads could get canceled before they could
disable their cancelability.

10 years agopfkey: Always include stdint.h
Tobias Brunner [Mon, 19 May 2014 12:53:24 +0000 (14:53 +0200)] 
pfkey: Always include stdint.h

On some systems (e.g. on Debian/kFreeBSD) that header is required when
including ipsec.h, on Linux we require it too when including pfkeyv2.h,
so to simplify things we just always include it.

10 years agoMerge branch 'fetcher-response-code'
Tobias Brunner [Mon, 19 May 2014 12:31:22 +0000 (14:31 +0200)] 
Merge branch 'fetcher-response-code'

Extends the fetcher API to retrieve the response status code for a request.

10 years agosoup: Add support to retrieve the response code
Tobias Brunner [Fri, 9 May 2014 17:02:28 +0000 (19:02 +0200)] 
soup: Add support to retrieve the response code

10 years agounit-tests: Allow some HTTP write operations to fail
Tobias Brunner [Fri, 9 May 2014 16:44:17 +0000 (18:44 +0200)] 
unit-tests: Allow some HTTP write operations to fail

Because CURLOPT_FAILONERROR is enabled in the curl plugin an error code
will often (not always) cause the client to close the TCP connection
before the server has written the complete response.

10 years agocurl: Add support to return the response code
Tobias Brunner [Fri, 9 May 2014 16:35:20 +0000 (18:35 +0200)] 
curl: Add support to return the response code

10 years agounit-tests: Add a test case for HTTP response codes
Tobias Brunner [Fri, 9 May 2014 16:34:25 +0000 (18:34 +0200)] 
unit-tests: Add a test case for HTTP response codes

10 years agofetcher: Add option to retrieve response code from a fetcher
Tobias Brunner [Wed, 7 May 2014 14:59:07 +0000 (16:59 +0200)] 
fetcher: Add option to retrieve response code from a fetcher

10 years agounit-tests: Defer failures by worker threads
Tobias Brunner [Fri, 9 May 2014 15:42:37 +0000 (17:42 +0200)] 
unit-tests: Defer failures by worker threads

In some cases the main thread is not ready to immediately call siglongjmp(),
e.g. if it currently holds a mutex that is later required during
shutdown.

Therefore, we delay handling errors in worker threads until the main
thread performs the next check itself (or the test function ends).

The same issue remains with SIGALRM.

10 years agounit-tests: Make sure plugins in the builddir are loaded
Tobias Brunner [Fri, 9 May 2014 11:28:06 +0000 (13:28 +0200)] 
unit-tests: Make sure plugins in the builddir are loaded

When running the tests in GDB the working directory apparently is
different.  With the relative path used previously the plugins would not
be found and those installed on the system would get used.

10 years agounit-tests: Don't assert failures for unreadable settings files as root
Tobias Brunner [Fri, 16 May 2014 15:43:42 +0000 (17:43 +0200)] 
unit-tests: Don't assert failures for unreadable settings files as root

The file can still be read by root even if nobody has read privileges.

10 years agoMerge branch 'aead-proposal'
Martin Willi [Fri, 16 May 2014 14:54:04 +0000 (16:54 +0200)] 
Merge branch 'aead-proposal'

Encode default AEAD encryption algorithms to a proposal separate from non-AEAD
algorithms. RFC 4306 and 5282 where less explicit, but RFC 5996 requires
separate proposals for AEAD and non-AEAD algorithms. As responder we still
accept both encoding variants.

Fixes #573.

10 years agoproposal: Don't return a default IKE proposal without encryption/AEAD algs
Martin Willi [Fri, 16 May 2014 14:18:16 +0000 (16:18 +0200)] 
proposal: Don't return a default IKE proposal without encryption/AEAD algs

10 years agoike: Add an additional but separate AEAD proposal to CHILD config
Martin Willi [Thu, 24 Apr 2014 12:28:57 +0000 (14:28 +0200)] 
ike: Add an additional but separate AEAD proposal to CHILD config

This currently has no effect: We don't include AEAD algorithms in the default
ESP proposal, as we don't know if it is supported by the backend. But as we
hopefully get an algorithm query mechanism on kernel interfaces some day, we
add the appropriate functionality nonetheless.

10 years agoike: Add an additional but separate AEAD proposal to IKE config, if supported
Martin Willi [Thu, 24 Apr 2014 12:24:43 +0000 (14:24 +0200)] 
ike: Add an additional but separate AEAD proposal to IKE config, if supported

10 years agochild-cfg: Allow passing NULL as proposal to add_proposal()
Martin Willi [Thu, 24 Apr 2014 12:20:21 +0000 (14:20 +0200)] 
child-cfg: Allow passing NULL as proposal to add_proposal()

Making the API consistent to the one of ike_cfg.

10 years agoike-cfg: Allow passing NULL to add_proposal()
Martin Willi [Thu, 24 Apr 2014 12:19:12 +0000 (14:19 +0200)] 
ike-cfg: Allow passing NULL to add_proposal()

This simplifies adding default proposals with constructors potentially
returning NULL.

10 years agoproposal: Use an additional "default" constructor specific to AEAD algorithms
Martin Willi [Thu, 24 Apr 2014 12:15:49 +0000 (14:15 +0200)] 
proposal: Use an additional "default" constructor specific to AEAD algorithms

This allows a caller to create a separated proposal for supported AEAD
algorithms, as required by RFC 5996.

10 years agoproposal: Don't include AEAD algorithms in the default proposal
Martin Willi [Thu, 24 Apr 2014 12:06:05 +0000 (14:06 +0200)] 
proposal: Don't include AEAD algorithms in the default proposal

According to RFC 5996 3.3 we should use a separate proposal for AEAD algorithms.
This was not clear in RFC 5282, hence we previously included both AEAD and
non-AEAD algorithms in a single proposal.

10 years agoMerge branch 'clang-fixes'
Martin Willi [Fri, 16 May 2014 13:45:41 +0000 (15:45 +0200)] 
Merge branch 'clang-fixes'

Fixes some warnings raised when compiling with clang. Some are cosmetically,
others are worth to fix.

This prepares the Travis build for -Werror, which will force us to fix all
warnings raised by all compilers.

10 years agoenum: Return boolean result for enum_from_name() lookup
Martin Willi [Fri, 16 May 2014 09:57:54 +0000 (11:57 +0200)] 
enum: Return boolean result for enum_from_name() lookup

Handling the result for enum_from_name() is difficult, as checking for
negative return values requires a cast if the enum type is unsigned. The new
signature clearly differentiates lookup result from lookup value.

Further, this actually allows to convert real -1 enum values, which could not
be distinguished from "not-found" and the -1 return value.

This also fixes several clang warnings where enums are unsigned.

10 years agoenum: Don't directly include enum.h
Martin Willi [Fri, 16 May 2014 09:55:53 +0000 (11:55 +0200)] 
enum: Don't directly include enum.h

To allow enum.h to depend on utils.h definitions, avoid its direct inclusion.
Instead include utils.h, which includes enum.h as well.

10 years agolibtps: Silence GCC set-but-unused warning in incomplete code
Martin Willi [Fri, 7 Mar 2014 11:24:00 +0000 (12:24 +0100)] 
libtps: Silence GCC set-but-unused warning in incomplete code

10 years agoscepclient: Cast OID_UNKNOWN before comparing it to unsigned hash_algorithm_t
Martin Willi [Thu, 8 May 2014 11:54:33 +0000 (13:54 +0200)] 
scepclient: Cast OID_UNKNOWN before comparing it to unsigned hash_algorithm_t

clang uses unsigned enums and complains about the always-false -1 check.

10 years agoswanctl: Properly initialize return value of --install command
Martin Willi [Thu, 8 May 2014 12:02:26 +0000 (14:02 +0200)] 
swanctl: Properly initialize return value of --install command

10 years agoxauth-pam: Fix header include guard
Martin Willi [Thu, 8 May 2014 11:44:37 +0000 (13:44 +0200)] 
xauth-pam: Fix header include guard

10 years agoeap-peap: Remove dead SoH code from PEAP
Martin Willi [Thu, 8 May 2014 11:43:07 +0000 (13:43 +0200)] 
eap-peap: Remove dead SoH code from PEAP

clang complains about the unused variables.

10 years agotls: Move variable sized tls_record_t struct to end of tls_t data
Martin Willi [Thu, 8 May 2014 11:31:18 +0000 (13:31 +0200)] 
tls: Move variable sized tls_record_t struct to end of tls_t data

clang complains about the the non-last variable length member.

10 years agokernel-klips: Pass a pointer to a properly sized integer for algorithm lookup
Martin Willi [Thu, 8 May 2014 11:28:25 +0000 (13:28 +0200)] 
kernel-klips: Pass a pointer to a properly sized integer for algorithm lookup

10 years agoauth-cfg: Cast literal default value to pointer type
Martin Willi [Thu, 8 May 2014 11:27:35 +0000 (13:27 +0200)] 
auth-cfg: Cast literal default value to pointer type

Fixes a clang warning.

10 years agounbound: Explicitly cast from ldns RR type/class to our types
Martin Willi [Thu, 8 May 2014 11:24:03 +0000 (13:24 +0200)] 
unbound: Explicitly cast from ldns RR type/class to our types

These definitions are directly derived from the RFC, so it should be safe
to cast them. clang complains about the different types, so cast them
explicitly.

10 years agox509: Remove some unused ASN1 OID constants
Martin Willi [Thu, 8 May 2014 11:18:27 +0000 (13:18 +0200)] 
x509: Remove some unused ASN1 OID constants

10 years agoaes: Remove unused build variants
Martin Willi [Thu, 8 May 2014 12:29:16 +0000 (14:29 +0200)] 
aes: Remove unused build variants

The AES code historically has different build options for various size/speed
trade-offs. We never made use of them, so just drop the obsolete code. The code
now has four hard-coded fixed tables, both inverse and original.

10 years agoMinor changes in the test environment
Andreas Steffen [Thu, 15 May 2014 19:30:37 +0000 (21:30 +0200)] 
Minor changes in the test environment

10 years agoMerge branch 'settings-parser'
Tobias Brunner [Thu, 15 May 2014 10:03:25 +0000 (12:03 +0200)] 
Merge branch 'settings-parser'

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 = "").

10 years agosettings: Properly match } and # in include statements
Tobias Brunner [Thu, 15 May 2014 09:55:23 +0000 (11:55 +0200)] 
settings: Properly match } and # in include statements

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.

10 years agosettings: Eliminate performance warning
Tobias Brunner [Thu, 15 May 2014 09:53:03 +0000 (11:53 +0200)] 
settings: Eliminate performance warning

This was useful during development, but we accept that matching \n together
with %option yylineno impacts performance.

10 years agoscripts: Add test script for settings_t
Tobias Brunner [Mon, 10 Mar 2014 13:51:48 +0000 (14:51 +0100)] 
scripts: Add test script for settings_t

10 years agoparser-helper: Define debug macros depending on DEBUG_LEVEL
Tobias Brunner [Wed, 14 May 2014 16:38:35 +0000 (18:38 +0200)] 
parser-helper: Define debug macros depending on DEBUG_LEVEL

10 years agoparser-helper: Make parser_helper_file_t private
Tobias Brunner [Wed, 14 May 2014 15:21:04 +0000 (17:21 +0200)] 
parser-helper: Make parser_helper_file_t private

10 years agoparser-helper: Make parser_helper_log a function
Tobias Brunner [Wed, 14 May 2014 15:19:41 +0000 (17:19 +0200)] 
parser-helper: Make parser_helper_log a function

10 years agosettings: strongswan.conf must be loaded explicitly
Tobias Brunner [Wed, 14 May 2014 14:05:02 +0000 (16:05 +0200)] 
settings: strongswan.conf must be loaded explicitly

10 years agosettings: Replace deprecated YYLEX_PARAM with %lex-param
Tobias Brunner [Tue, 13 May 2014 08:50:36 +0000 (10:50 +0200)] 
settings: Replace deprecated YYLEX_PARAM with %lex-param

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.

10 years agosettings: Include generated header after others
Tobias Brunner [Tue, 13 May 2014 07:54:49 +0000 (09:54 +0200)] 
settings: Include generated header after others

Newer Bison versions declare the parser function in the header, which
requires custom types.

10 years agosettings: Reduce log verbosity if files can't be opened
Tobias Brunner [Tue, 29 Apr 2014 09:39:57 +0000 (11:39 +0200)] 
settings: Reduce log verbosity if files can't be opened

Basically reintroducing 2a38b4556e9fd8102bd6c6c61f2893599a5e8e51.

10 years agosettings: Adopt the new order of sections and settings when replacing configs
Tobias Brunner [Tue, 29 Apr 2014 14:04:43 +0000 (16:04 +0200)] 
settings: Adopt the new order of sections and settings when replacing configs

10 years agosettings: Only purge sections if necessary
Tobias Brunner [Thu, 13 Mar 2014 15:44:45 +0000 (16:44 +0100)] 
settings: Only purge sections if necessary

Instead of removing and caching all values of a previous config, we only
do this for actually removed sections/settings.

10 years agocoverage: Make genhtml not fail if sources are not found
Tobias Brunner [Tue, 11 Mar 2014 13:19:59 +0000 (14:19 +0100)] 
coverage: Make genhtml not fail if sources are not found

For some reason the .y and .l files of the settings parser are searched in
the wrong directory.