strongswan.git
7 years agoremoved superfluous debug output
Andreas Steffen [Fri, 15 Feb 2013 14:19:16 +0000 (15:19 +0100)]
removed superfluous debug output

7 years agoAdd a timeout to clean up PDP RADIUS connections
Martin Willi [Wed, 19 Dec 2012 17:07:33 +0000 (18:07 +0100)]
Add a timeout to clean up PDP RADIUS connections

7 years agoKeep the PDP connections lock while accessing its objects
Martin Willi [Wed, 19 Dec 2012 16:55:47 +0000 (17:55 +0100)]
Keep the PDP connections lock while accessing its objects

When we introduce connection timeouts, the state may disappear at any time.
This change prevents that, but is not very clear. We probably have to refactor
connection handling.

7 years agoAdd locking to TNC-PDP connections
Martin Willi [Wed, 19 Dec 2012 16:39:25 +0000 (17:39 +0100)]
Add locking to TNC-PDP connections

7 years agoAdd IF-M message subtype getter to IMC/IMV messages
Martin Willi [Mon, 21 Jan 2013 16:01:53 +0000 (17:01 +0100)]
Add IF-M message subtype getter to IMC/IMV messages

7 years agoUse a generic constructor to create PA-TNC error attributes
Martin Willi [Mon, 28 Jan 2013 15:29:42 +0000 (16:29 +0100)]
Use a generic constructor to create PA-TNC error attributes

7 years agoAdd a global return_success() method implementation
Martin Willi [Tue, 29 Jan 2013 11:20:10 +0000 (12:20 +0100)]
Add a global return_success() method implementation

7 years agoAdd a convenience method to check pen_type_t for vendor and type
Martin Willi [Thu, 31 Jan 2013 14:43:45 +0000 (15:43 +0100)]
Add a convenience method to check pen_type_t for vendor and type

7 years agoAdd a comparison function for pen_type_t
Martin Willi [Thu, 31 Jan 2013 14:29:43 +0000 (15:29 +0100)]
Add a comparison function for pen_type_t

7 years agoWhitespace and comment cleanups in pen.[ch]
Martin Willi [Thu, 31 Jan 2013 14:23:25 +0000 (15:23 +0100)]
Whitespace and comment cleanups in pen.[ch]

7 years agoresolve dependency on libtls
Andreas Steffen [Sat, 2 Feb 2013 21:21:36 +0000 (22:21 +0100)]
resolve dependency on libtls

7 years agoMerge branch 'ike-dscp'
Martin Willi [Thu, 14 Feb 2013 16:11:35 +0000 (17:11 +0100)]
Merge branch 'ike-dscp'

7 years agoCheck if recommendations is set before applying language preference
Martin Willi [Thu, 14 Feb 2013 16:03:10 +0000 (17:03 +0100)]
Check if recommendations is set before applying language preference

7 years agoPT-TLS dispatcher TNCCS constructor takes peer identities to pass to factory
Martin Willi [Thu, 14 Feb 2013 13:48:54 +0000 (14:48 +0100)]
PT-TLS dispatcher TNCCS constructor takes peer identities to pass to factory

7 years agoMerge branch 'pt-tls'
Martin Willi [Thu, 14 Feb 2013 16:06:07 +0000 (17:06 +0100)]
Merge branch 'pt-tls'

7 years agoRemove leading zeros in SCEP certificate serialNumbers
Martin Willi [Wed, 13 Feb 2013 11:06:09 +0000 (12:06 +0100)]
Remove leading zeros in SCEP certificate serialNumbers

7 years agoFix 'stroke loglevel any'
Tobias Brunner [Wed, 13 Feb 2013 11:11:37 +0000 (12:11 +0100)]
Fix 'stroke loglevel any'

Before b46a5cd4 this worked if debug_t was unsigned.  In that case -1,
as returned by enum_from_name(), would result in a large positive number.
So any unknown debug group (including 'any') had the same effect that
was only intended for 'any'.

7 years agoadded ikev1/net2net-fragmentation scenario 5.0.3dr1
Andreas Steffen [Tue, 12 Feb 2013 22:01:48 +0000 (23:01 +0100)]
added ikev1/net2net-fragmentation scenario

7 years agotreat EAP identities as user IDs
Andreas Steffen [Tue, 12 Feb 2013 20:58:03 +0000 (21:58 +0100)]
treat EAP identities as user IDs

7 years agouse EAP identity in tnc/tnccs-20-pdp scenario
Andreas Steffen [Tue, 12 Feb 2013 19:41:37 +0000 (20:41 +0100)]
use EAP identity in tnc/tnccs-20-pdp scenario

7 years agomake TNC client authentication type available to IMVs
Andreas Steffen [Tue, 12 Feb 2013 19:38:05 +0000 (20:38 +0100)]
make TNC client authentication type available to IMVs

7 years agodetermine underlying IF-T transport protocol
Andreas Steffen [Tue, 12 Feb 2013 11:25:39 +0000 (12:25 +0100)]
determine underlying IF-T transport protocol

7 years agomake AR identities available to IMVs via IF-IMV 1.4 draft
Andreas Steffen [Sun, 20 Jan 2013 22:36:31 +0000 (23:36 +0100)]
make AR identities available to IMVs via IF-IMV 1.4 draft

7 years agoMake IKE/EAP IDs available to TNC server/client
Andreas Steffen [Thu, 17 Jan 2013 22:32:34 +0000 (23:32 +0100)]
Make IKE/EAP IDs available to TNC server/client

7 years agoDon't use a time_t variable with fscanf when parsing uptime
Tobias Brunner [Wed, 6 Feb 2013 15:35:44 +0000 (16:35 +0100)]
Don't use a time_t variable with fscanf when parsing uptime

Because "%u" is used as format string in the fscanf call that parses the
uptime and because the length of time_t varies on different platforms
and architectures the value was not written properly if time_t was longer
than an unsigned int and depending on how the target variable was aligned
on the stack.  Since there is no conversion specifier to properly parse a
time_t value we use the appropriate integer type instead.

7 years agoAllow more than one CERTREQ payload for IKEv2
Tobias Brunner [Fri, 8 Feb 2013 10:24:39 +0000 (11:24 +0100)]
Allow more than one CERTREQ payload for IKEv2

There is no reason not to do so (RFC 5996 explicitly mentions multiple
CERTREQ payloads) and some implementations seem to use the same behavior
as had to be used with IKEv1 (i.e. each CA in its own CERTREQ payload).

7 years agoAdd a --httptimeout option to scepclient
Martin Willi [Fri, 8 Feb 2013 09:57:25 +0000 (10:57 +0100)]
Add a --httptimeout option to scepclient

7 years agoUse CURL_TIMEOUT and not CURL_CONNECTTIMEOUT for FETCHER_TIMEOUT in curl
Martin Willi [Fri, 8 Feb 2013 09:12:10 +0000 (10:12 +0100)]
Use CURL_TIMEOUT and not CURL_CONNECTTIMEOUT for FETCHER_TIMEOUT in curl

This allows us to use this timeout beyond DNS resolution. For the initial
connect, we use a hardcoded timeout of 10s for now.

7 years agoAdd ikedscp documentation to ipsec.conf.5
Martin Willi [Wed, 6 Feb 2013 14:42:14 +0000 (15:42 +0100)]
Add ikedscp documentation to ipsec.conf.5

7 years agoAdd a ikedscp ipsec.conf option to set DSCP value on outgoing IKE packets
Martin Willi [Wed, 6 Feb 2013 14:19:32 +0000 (15:19 +0100)]
Add a ikedscp ipsec.conf option to set DSCP value on outgoing IKE packets

7 years agoSet configured DSCP value while generating IKE packets
Martin Willi [Wed, 6 Feb 2013 14:11:46 +0000 (15:11 +0100)]
Set configured DSCP value while generating IKE packets

7 years agoAdd a DSCP configuration value to IKE configs
Martin Willi [Wed, 6 Feb 2013 13:57:15 +0000 (14:57 +0100)]
Add a DSCP configuration value to IKE configs

7 years agoSet DSCP values when sending IP packets in socket-default
Martin Willi [Wed, 6 Feb 2013 12:17:55 +0000 (13:17 +0100)]
Set DSCP values when sending IP packets in socket-default

7 years agoDon't send a packet in default socket if family is not IPv4 nor IPv6
Martin Willi [Wed, 6 Feb 2013 12:12:51 +0000 (13:12 +0100)]
Don't send a packet in default socket if family is not IPv4 nor IPv6

7 years agoAdd a DSCP value with getter/setter on packet_t
Martin Willi [Wed, 6 Feb 2013 10:56:27 +0000 (11:56 +0100)]
Add a DSCP value with getter/setter on packet_t

7 years agoAvoid extensive casting of sockaddr types in socket-default by using a union
Martin Willi [Wed, 6 Feb 2013 10:45:51 +0000 (11:45 +0100)]
Avoid extensive casting of sockaddr types in socket-default by using a union

Additionally fixes a strict-aliasing rule compiler warning with older gcc.

7 years agoSet sockaddr family on ifreq instead of casted familiy specific sockaddr
Martin Willi [Mon, 4 Feb 2013 12:36:11 +0000 (13:36 +0100)]
Set sockaddr family on ifreq instead of casted familiy specific sockaddr

Fixes a strict-aliasing rule compiler warning with older gcc.

7 years agoReport enabled plugins at the end of configure
Tobias Brunner [Fri, 1 Feb 2013 10:57:46 +0000 (11:57 +0100)]
Report enabled plugins at the end of configure

7 years agoStreamlined comments in configure.in
Tobias Brunner [Fri, 1 Feb 2013 10:29:23 +0000 (11:29 +0100)]
Streamlined comments in configure.in

dnl should only be used in rare cases (like escaping newlines)

7 years agoUpdated configure.in to newer autoconf
Tobias Brunner [Fri, 1 Feb 2013 09:55:33 +0000 (10:55 +0100)]
Updated configure.in to newer autoconf

AC_TRY_COMPILE and AC_TRY_RUN are deprecated.  The new construct with
AC_*_IFELSE and AC_LANG_PROGRAM requires double quoting the source code
of these test programs.

7 years agoAdd a configure option to disable all default plugins
Tobias Brunner [Thu, 31 Jan 2013 17:22:25 +0000 (18:22 +0100)]
Add a configure option to disable all default plugins

The --disable-defaults option disables all plugins that would be
enabled by default.  This allows to selectively enable specific plugins
without issues when new default options get added in future releases.

7 years agotime is a time_t pointer
Andreas Steffen [Mon, 4 Feb 2013 12:05:29 +0000 (13:05 +0100)]
time is a time_t pointer

7 years agoversion bump to 5.0.3dr1
Andreas Steffen [Mon, 4 Feb 2013 06:51:07 +0000 (07:51 +0100)]
version bump to 5.0.3dr1

7 years agoimproved control when an attribute request is sent
Andreas Steffen [Sun, 3 Feb 2013 19:48:05 +0000 (20:48 +0100)]
improved control when an attribute request is sent

7 years agoprint PEN value 0xfffffe as Unassigned
Andreas Steffen [Sun, 3 Feb 2013 17:52:59 +0000 (18:52 +0100)]
print PEN value 0xfffffe as Unassigned

7 years agosend an error attribute if vendor ID or type of received attribute is reserved
Andreas Steffen [Sun, 3 Feb 2013 17:52:03 +0000 (18:52 +0100)]
send an error attribute if vendor ID or type of received attribute is reserved

7 years agoopenssl: Properly honor OPENSSL_NO_* defines
Tobias Brunner [Thu, 31 Jan 2013 16:33:23 +0000 (17:33 +0100)]
openssl: Properly honor OPENSSL_NO_* defines

7 years agoFix Doxygen comment for rdrand plugin
Tobias Brunner [Thu, 31 Jan 2013 11:11:37 +0000 (12:11 +0100)]
Fix Doxygen comment for rdrand plugin

7 years agoTypo in strongswan.conf(5) man page fixed
Tobias Brunner [Thu, 31 Jan 2013 10:52:11 +0000 (11:52 +0100)]
Typo in strongswan.conf(5) man page fixed

7 years agoversion bump to 5.0.2 5.0.2
Andreas Steffen [Wed, 30 Jan 2013 06:51:44 +0000 (07:51 +0100)]
version bump to 5.0.2

7 years agoDocumented new options in strongswan.conf(5) man page
Tobias Brunner [Fri, 25 Jan 2013 19:17:41 +0000 (20:17 +0100)]
Documented new options in strongswan.conf(5) man page

7 years agoDon't use pointer to a union member in host_create_from_string_and_family()
Tobias Brunner [Fri, 25 Jan 2013 12:18:50 +0000 (13:18 +0100)]
Don't use pointer to a union member in host_create_from_string_and_family()

7 years agoProperly check MSB in openssl plugin's PKCS#7 implementation
Tobias Brunner [Thu, 24 Jan 2013 18:42:40 +0000 (19:42 +0100)]
Properly check MSB in openssl plugin's PKCS#7 implementation

7 years agoUse proper buffer sizes for parse_smartcard()
Tobias Brunner [Thu, 24 Jan 2013 18:22:52 +0000 (19:22 +0100)]
Use proper buffer sizes for parse_smartcard()

7 years agoCast first argument for %.*s to int
Tobias Brunner [Thu, 24 Jan 2013 17:59:03 +0000 (18:59 +0100)]
Cast first argument for %.*s to int

7 years agoRemoved unused command name when printing usage info for lookip
Tobias Brunner [Thu, 24 Jan 2013 17:48:30 +0000 (18:48 +0100)]
Removed unused command name when printing usage info for lookip

7 years agoRemoved unused argument
Tobias Brunner [Thu, 24 Jan 2013 17:47:04 +0000 (18:47 +0100)]
Removed unused argument

7 years agoProperly read data from stream in pki --pkcs7
Tobias Brunner [Thu, 24 Jan 2013 17:43:10 +0000 (18:43 +0100)]
Properly read data from stream in pki --pkcs7

7 years agoProperly destroy mem_cred object on pki --pkcs7 --help
Tobias Brunner [Thu, 24 Jan 2013 17:38:29 +0000 (18:38 +0100)]
Properly destroy mem_cred object on pki --pkcs7 --help

7 years agoTry to determine OS type if name and version are configured
Tobias Brunner [Thu, 24 Jan 2013 17:36:22 +0000 (18:36 +0100)]
Try to determine OS type if name and version are configured

7 years agoAdd missing va_end() call
Tobias Brunner [Thu, 24 Jan 2013 17:32:43 +0000 (18:32 +0100)]
Add missing va_end() call

7 years agog_thread_init() is deprecated since Glib 2.23
Tobias Brunner [Thu, 24 Jan 2013 17:17:27 +0000 (18:17 +0100)]
g_thread_init() is deprecated since Glib 2.23

7 years agoFix check-in of IKE_SA when IKE_SA_INIT fails and hash table is enabled
Tobias Brunner [Sat, 19 Jan 2013 17:05:48 +0000 (18:05 +0100)]
Fix check-in of IKE_SA when IKE_SA_INIT fails and hash table is enabled

Setting the responder SPI to 0 can only be done while generating the
response, otherwise we'd fail to check in the IKE_SA again in case the
hash table is enabled.  That's because we use the responder SPI as hash
value since 5.0.0.

7 years agoReturn SS_RC_INITIALIZATION_FAILED if pid file exists
Adrian-Ken Rueegsegger [Wed, 23 Jan 2013 14:38:28 +0000 (15:38 +0100)]
Return SS_RC_INITIALIZATION_FAILED if pid file exists

Let charon return SS_RC_INITIALIZATION_FAILED if an existing pid file is found.
Starter only terminates itself if the result code of the daemon is a valid
SS_RC_* value.

7 years agoAvoid a deadlock when installing a trap policy failed
Tobias Brunner [Wed, 23 Jan 2013 14:51:47 +0000 (15:51 +0100)]
Avoid a deadlock when installing a trap policy failed

7 years agoEncode IETF Numeric Version Service Pack Version with two byte words
Martin Willi [Tue, 22 Jan 2013 13:42:06 +0000 (14:42 +0100)]
Encode IETF Numeric Version Service Pack Version with two byte words

7 years agostarter: Add --attach-gdb option to usage text
Adrian-Ken Rueegsegger [Mon, 21 Jan 2013 20:42:08 +0000 (21:42 +0100)]
starter: Add --attach-gdb option to usage text

7 years agoFix IKE SA inherit API doc
Adrian-Ken Rueegsegger [Sat, 14 Apr 2012 14:45:04 +0000 (16:45 +0200)]
Fix IKE SA inherit API doc

7 years agoFilter TS list for Split-Includes before printing them to debug log
Martin Willi [Mon, 21 Jan 2013 11:14:50 +0000 (12:14 +0100)]
Filter TS list for Split-Includes before printing them to debug log

7 years agoAdd the ability to use a named pool for conftest configs
Tobias Brunner [Thu, 13 Dec 2012 14:31:47 +0000 (15:31 +0100)]
Add the ability to use a named pool for conftest configs

7 years agoRemoved INSTALL from EXTRA_DIST 5.0.2rc1
Andreas Steffen [Thu, 17 Jan 2013 22:20:37 +0000 (23:20 +0100)]
Removed INSTALL from EXTRA_DIST

7 years agoMerge branch 'debian-testing'
Tobias Brunner [Thu, 17 Jan 2013 16:00:05 +0000 (17:00 +0100)]
Merge branch 'debian-testing'

These changes update the integration test system.  It previously was based
on a pretty much unmaintainable Gentoo root image and the dated UML
virtualization technology.  Among many other changes the test environment
is now based on KVM and uses reproducible Debian-based guest images.

Conflicts:
NEWS

7 years agoNEWS about updated integration tests added
Tobias Brunner [Thu, 17 Jan 2013 15:15:39 +0000 (16:15 +0100)]
NEWS about updated integration tests added

7 years agoUpdated documentation for the integration tests
Tobias Brunner [Thu, 17 Jan 2013 15:04:45 +0000 (16:04 +0100)]
Updated documentation for the integration tests

7 years agoRemoved UML from description of ikev2/default-keys test
Tobias Brunner [Thu, 17 Jan 2013 15:46:13 +0000 (16:46 +0100)]
Removed UML from description of ikev2/default-keys test

7 years agoUpdated comments in test.conf of all tests
Tobias Brunner [Thu, 17 Jan 2013 15:41:10 +0000 (16:41 +0100)]
Updated comments in test.conf of all tests

7 years agoRenamed $UMLHOSTS to $VIRTHOSTS
Tobias Brunner [Thu, 17 Jan 2013 15:37:19 +0000 (16:37 +0100)]
Renamed $UMLHOSTS to $VIRTHOSTS

7 years agoDrop vim swap file
Reto Buerki [Wed, 16 Jan 2013 17:24:31 +0000 (18:24 +0100)]
Drop vim swap file

7 years agoEnforce reception of multicast traffic on virbr[1|2]
Reto Buerki [Wed, 16 Jan 2013 15:28:26 +0000 (16:28 +0100)]
Enforce reception of multicast traffic on virbr[1|2]

This is needed to let the ha/both-active test pass.

7 years agoMake core dumps work
Reto Buerki [Wed, 16 Jan 2013 13:49:50 +0000 (14:49 +0100)]
Make core dumps work

Core dumps are written to the /var/local/dumps directory.

7 years agoAppend seconds to TESTDATE
Reto Buerki [Wed, 16 Jan 2013 12:54:14 +0000 (13:54 +0100)]
Append seconds to TESTDATE

This avoids 'file exists' warnings when running tests multiple times in
one minute.

7 years agoSwitch to 'mapped' access mode for hostfs
Reto Buerki [Wed, 16 Jan 2013 10:58:01 +0000 (11:58 +0100)]
Switch to 'mapped' access mode for hostfs

Passthrough mode only works as expected when running as root. On
Debian/Ubuntu systems qemu runs as user 'libvirt-qemu' and group 'kvm'
so all shared files must be chowned to grant access from guests.

Symlinks created on the host are still problematic because the Plan 9
filesystem has no direct notion of symbolic links, see [1].

[1] - http://ericvh.github.com/9p-rfc/rfc9p2000.u.html

7 years agoMake guest ACPI shutdown work
Reto Buerki [Wed, 16 Jan 2013 10:54:28 +0000 (11:54 +0100)]
Make guest ACPI shutdown work

7 years agoDrop obsolete Gentoo dhcpd init script
Reto Buerki [Wed, 16 Jan 2013 09:16:58 +0000 (10:16 +0100)]
Drop obsolete Gentoo dhcpd init script

7 years agoNo need to enable ip_forward in pretest files
Reto Buerki [Wed, 16 Jan 2013 09:06:49 +0000 (10:06 +0100)]
No need to enable ip_forward in pretest files

It is enabled by default now.

7 years agoAuto-create symlink to testing directory in workdir
Reto Buerki [Tue, 15 Jan 2013 15:49:42 +0000 (16:49 +0100)]
Auto-create symlink to testing directory in workdir

7 years agoconverted ha/both-active iptables scenario
Andreas Steffen [Mon, 14 Jan 2013 04:42:43 +0000 (05:42 +0100)]
converted ha/both-active iptables scenario

7 years agoconverted all ipv6 iptables/ip6tables scenarios
Andreas Steffen [Mon, 14 Jan 2013 03:08:29 +0000 (04:08 +0100)]
converted all ipv6 iptables/ip6tables scenarios

7 years agoconverted all p2pnat iptables scenarios
Andreas Steffen [Fri, 11 Jan 2013 10:21:00 +0000 (11:21 +0100)]
converted all p2pnat iptables scenarios

7 years agoRename UML to KVM tests
Andreas Steffen [Fri, 11 Jan 2013 03:37:41 +0000 (04:37 +0100)]
Rename UML to KVM tests

7 years agoconverted all tnc iptables scenarios
Andreas Steffen [Fri, 11 Jan 2013 03:19:07 +0000 (04:19 +0100)]
converted all tnc iptables scenarios

7 years agoList daemon.log on $RADIUSHOSTS
Andreas Steffen [Thu, 17 Jan 2013 14:19:03 +0000 (15:19 +0100)]
List daemon.log on $RADIUSHOSTS

7 years agoimplemented ip6tables.rules
Andreas Steffen [Fri, 11 Jan 2013 02:30:28 +0000 (03:30 +0100)]
implemented ip6tables.rules

7 years agoconverted all sql iptables scenarios
Andreas Steffen [Fri, 11 Jan 2013 02:26:21 +0000 (03:26 +0100)]
converted all sql iptables scenarios

7 years agoconverted all pfkey iptables scenarios
Andreas Steffen [Tue, 8 Jan 2013 07:22:59 +0000 (08:22 +0100)]
converted all pfkey iptables scenarios

7 years agoconverted all openssl-ikev2 iptables scenarios
Andreas Steffen [Tue, 8 Jan 2013 06:57:52 +0000 (07:57 +0100)]
converted all openssl-ikev2 iptables scenarios

7 years agoconverted all openssl-ikev1 iptables scenarios
Andreas Steffen [Tue, 8 Jan 2013 06:54:57 +0000 (07:54 +0100)]
converted all openssl-ikev1 iptables scenarios

7 years agoconverted all gcrypt-ikev2 iptables scenarios
Andreas Steffen [Tue, 8 Jan 2013 06:48:30 +0000 (07:48 +0100)]
converted all gcrypt-ikev2 iptables scenarios

7 years agoconverted all af-alg iptables scenarios
Andreas Steffen [Tue, 8 Jan 2013 06:45:56 +0000 (07:45 +0100)]
converted all af-alg iptables scenarios

7 years agoadded ikev1/nat-virtual-ip scenario
Andreas Steffen [Mon, 7 Jan 2013 12:22:37 +0000 (13:22 +0100)]
added ikev1/nat-virtual-ip scenario