strongswan.git
7 years agounit-tests: Uninline dlopen() and friends, make more dynamic, fix dlerror()
Martin Willi [Fri, 25 Oct 2013 14:03:07 +0000 (16:03 +0200)]
unit-tests: Uninline dlopen() and friends, make more dynamic, fix dlerror()

As the error string contains a newline, we have to remove that before
returning the string.

7 years agothread-value: Immediately cleanup all Windows TLS values on destroy
Martin Willi [Fri, 6 Dec 2013 10:33:40 +0000 (11:33 +0100)]
thread-value: Immediately cleanup all Windows TLS values on destroy

7 years agowindows: Prevent queueing of multiple thread cancel APCs
Martin Willi [Wed, 28 May 2014 15:34:48 +0000 (17:34 +0200)]
windows: Prevent queueing of multiple thread cancel APCs

This avoids any races during cleanup invocation if multiple cancel() requests
come in.

7 years agowindows: Provide a complete native Windows threading backend
Martin Willi [Mon, 21 Oct 2013 16:07:51 +0000 (18:07 +0200)]
windows: Provide a complete native Windows threading backend

7 years agowindows: Provide a cancellable usleep(), but with ms resolution only
Martin Willi [Wed, 23 Oct 2013 13:50:10 +0000 (15:50 +0200)]
windows: Provide a cancellable usleep(), but with ms resolution only

7 years agowindows: Add a sleep function acting as cancellation point
Martin Willi [Mon, 21 Oct 2013 14:58:54 +0000 (16:58 +0200)]
windows: Add a sleep function acting as cancellation point

7 years agowindows: Provide a sched_yield() implementation
Martin Willi [Wed, 23 Oct 2013 14:44:14 +0000 (16:44 +0200)]
windows: Provide a sched_yield() implementation

7 years agolibipsec: Avoid name clash with sched.h clone()
Martin Willi [Mon, 10 Mar 2014 16:06:57 +0000 (17:06 +0100)]
libipsec: Avoid name clash with sched.h clone()

7 years agowindows: Provide a time_monotonic() based on GetTickCount64()
Martin Willi [Fri, 18 Oct 2013 12:19:32 +0000 (14:19 +0200)]
windows: Provide a time_monotonic() based on GetTickCount64()

7 years agolibrary: Change init/deinit order to allow utils to depend on threading
Martin Willi [Mon, 21 Oct 2013 11:00:29 +0000 (13:00 +0200)]
library: Change init/deinit order to allow utils to depend on threading

7 years agochunk: Don't depend on pthread directly
Martin Willi [Fri, 18 Oct 2013 13:04:55 +0000 (15:04 +0200)]
chunk: Don't depend on pthread directly

7 years agoutils: Don't directly depend on pthread
Martin Willi [Wed, 28 May 2014 10:17:15 +0000 (12:17 +0200)]
utils: Don't directly depend on pthread

7 years agostrerror: Don't directly depend on pthread
Martin Willi [Wed, 28 May 2014 10:15:10 +0000 (12:15 +0200)]
strerror: Don't directly depend on pthread

7 years agowindows: Link libhydra against Winsock2
Martin Willi [Thu, 17 Oct 2013 15:12:34 +0000 (17:12 +0200)]
windows: Link libhydra against Winsock2

7 years agowindows: Provide a strdup variant safe when passing zero-length strings
Martin Willi [Thu, 17 Oct 2013 14:23:43 +0000 (16:23 +0200)]
windows: Provide a strdup variant safe when passing zero-length strings

7 years agounit-tests: Don't test Unix socket stream/services on Windows
Martin Willi [Thu, 17 Oct 2013 13:09:17 +0000 (15:09 +0200)]
unit-tests: Don't test Unix socket stream/services on Windows

7 years agounit-tests: Use send/recv on socket in watcher tests
Martin Willi [Wed, 16 Oct 2013 17:32:15 +0000 (19:32 +0200)]
unit-tests: Use send/recv on socket in watcher tests

Windows does not support read/write on sockets.

7 years agostream: Separate TCP/Unix stream helpers from stream/service implementations
Martin Willi [Fri, 11 Oct 2013 13:32:10 +0000 (15:32 +0200)]
stream: Separate TCP/Unix stream helpers from stream/service implementations

This allows us to disable Unix sockets cleanly on Windows. Replaces some
read/write calls with recv/send counterparts, as Winsock does not like
read/writes.

7 years agowatcher: Add Windows support
Martin Willi [Thu, 17 Oct 2013 09:56:15 +0000 (11:56 +0200)]
watcher: Add Windows support

Instead of a pipe we use a TCP socketpair (can't select() a _pipe()), and
Windsock2 send/recv functions instead of read/write.

Currently supported (and required) are file descriptors provided by Winsock
only; we might use a separate mechanism for traditional file handles if
required (or switch to Windows events and WaitForMultipleObjects) for a future
version.

7 years agowindows: Map WSAGetLastError() to errno failures in wrapped send/recv/from/to
Martin Willi [Thu, 17 Oct 2013 09:32:48 +0000 (11:32 +0200)]
windows: Map WSAGetLastError() to errno failures in wrapped send/recv/from/to

7 years agowindows: Add send/recv and sendto/recvfrom wrappers supporting MSG_DONTWAIT
Martin Willi [Wed, 16 Oct 2013 16:31:24 +0000 (18:31 +0200)]
windows: Add send/recv and sendto/recvfrom wrappers supporting MSG_DONTWAIT

7 years agowindows: Implement socketpair() using TCP sockets
Martin Willi [Wed, 16 Oct 2013 15:44:32 +0000 (17:44 +0200)]
windows: Implement socketpair() using TCP sockets

7 years agowindows: Add utils_init/deinit functions to initialize Winsock2
Martin Willi [Wed, 16 Oct 2013 15:27:19 +0000 (17:27 +0200)]
windows: Add utils_init/deinit functions to initialize Winsock2

7 years agowindows: Provide a setenv() wrapper
Martin Willi [Tue, 15 Oct 2013 16:27:27 +0000 (18:27 +0200)]
windows: Provide a setenv() wrapper

7 years agounit-tests: Use Windows path for chunk tests, and socket functions if required
Martin Willi [Thu, 21 Nov 2013 15:26:18 +0000 (16:26 +0100)]
unit-tests: Use Windows path for chunk tests, and socket functions if required

7 years agounit-tests: Don't depend on sockaddr_un to test invalid host_t family
Martin Willi [Tue, 15 Oct 2013 16:12:39 +0000 (18:12 +0200)]
unit-tests: Don't depend on sockaddr_un to test invalid host_t family

7 years ago.gitignore: Add Windows .exe files
Martin Willi [Tue, 15 Oct 2013 16:09:06 +0000 (18:09 +0200)]
.gitignore: Add Windows .exe files

7 years agounit-tests: Add support for Windows build
Martin Willi [Tue, 15 Oct 2013 15:40:58 +0000 (17:40 +0200)]
unit-tests: Add support for Windows build

Instead of signals we catch Windows exceptions. Currently not supported are
timers, which is more a convenience thing anyway.

7 years agowindows: Fix up PRI* printf formatters when building against own backend
Martin Willi [Tue, 15 Oct 2013 15:40:06 +0000 (17:40 +0200)]
windows: Fix up PRI* printf formatters when building against own backend

7 years agowindows: Use localtime/gmtime to implement _r variants
Martin Willi [Tue, 15 Oct 2013 14:23:44 +0000 (16:23 +0200)]
windows: Use localtime/gmtime to implement _r variants

The _s variants and friends do not seem to work on Windows 7 and always fail.

7 years agoasn1: Return a zeroed ASN1 time if gmtime_r() conversion fails
Martin Willi [Tue, 15 Oct 2013 14:11:19 +0000 (16:11 +0200)]
asn1: Return a zeroed ASN1 time if gmtime_r() conversion fails

7 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

7 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

7 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

7 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

7 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

7 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

7 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.

7 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)

7 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

7 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

7 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

7 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

7 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

7 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

7 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.

7 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.

7 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

7 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.

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

7 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

7 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

7 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

7 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

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

7 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

7 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

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

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

7 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

7 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

7 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

7 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

7 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

7 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)]
determination of maximum PB-TNC batch and PA-TNC message size

7 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

7 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

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

7 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

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

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

7 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

7 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.

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

7 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

7 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

7 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

7 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.

7 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.

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

7 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

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

7 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

7 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.

7 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.

7 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.

7 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

7 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.

7 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

7 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

7 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

7 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.

7 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.

7 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.

7 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.

7 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

7 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.

7 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

7 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.

7 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.