]> git.ipfire.org Git - people/ms/strongswan.git/log
people/ms/strongswan.git
8 years agobyteorder: Add 32-bit unaligned little-endian conversion functions
Martin Willi [Tue, 10 Nov 2015 06:57:48 +0000 (07:57 +0100)] 
byteorder: Add 32-bit unaligned little-endian conversion functions

8 years agoswanctl: Explicitly link against -lpthread and -ldl if required
Martin Willi [Mon, 9 Nov 2015 16:17:16 +0000 (17:17 +0100)] 
swanctl: Explicitly link against -lpthread and -ldl if required

We already do this for charon, as some toolchains require an explicit
link even if libstrongswan already depends on it.

8 years agopki: Explicitly link against -lpthread and -ldl if required
Martin Willi [Mon, 9 Nov 2015 16:15:17 +0000 (17:15 +0100)] 
pki: Explicitly link against -lpthread and -ldl if required

We already do this for charon, as some toolchains require an explicit
link even if libstrongswan already depends on it.

8 years agoconfigure: Link against potential -ldl when checking for OpenSSL libcrypto
Martin Willi [Mon, 9 Nov 2015 16:11:21 +0000 (17:11 +0100)] 
configure: Link against potential -ldl when checking for OpenSSL libcrypto

8 years agowatcher: Check for cancellation if poll() fails with EINTR
Martin Willi [Tue, 10 Nov 2015 08:42:46 +0000 (09:42 +0100)] 
watcher: Check for cancellation if poll() fails with EINTR

With LinuxThreads, poll() is unfortunately no cancellation point. It seems
that poll gets woken up after cancellation, but we actively must check
for cancellation before re-entering poll to properly shut down the watcher
thread.

8 years agoVersion bump to 5.4.0dr1
Andreas Steffen [Tue, 1 Dec 2015 14:06:23 +0000 (15:06 +0100)] 
Version bump to 5.4.0dr1

8 years agoAdded Vici:Session Perl CPAN module to NEWS
Andreas Steffen [Tue, 1 Dec 2015 14:02:18 +0000 (15:02 +0100)] 
Added Vici:Session Perl CPAN module to NEWS

8 years agoExtended and refactored vici perl implementation
Andreas Steffen [Tue, 17 Nov 2015 20:20:15 +0000 (21:20 +0100)] 
Extended and refactored vici perl implementation

8 years agoBuilt the CPAN file structure for the Vici::Session perl module
Andreas Steffen [Tue, 17 Nov 2015 12:32:54 +0000 (13:32 +0100)] 
Built the CPAN file structure for the Vici::Session perl module

8 years agoImplement vici Perl binding
Andreas Steffen [Mon, 16 Nov 2015 19:08:30 +0000 (20:08 +0100)] 
Implement vici Perl binding

8 years agotesting: Some more timing fixes
Andreas Steffen [Thu, 26 Nov 2015 10:35:56 +0000 (11:35 +0100)] 
testing: Some more timing fixes

8 years agoswanctl: Add --list-algs command to query loaded algorithms
Tobias Brunner [Thu, 19 Nov 2015 15:01:05 +0000 (16:01 +0100)] 
swanctl:  Add --list-algs command to query loaded algorithms

8 years agovici: Add get-algorithms command to query loaded algorithms and implementations
Tobias Brunner [Thu, 19 Nov 2015 15:00:19 +0000 (16:00 +0100)] 
vici: Add get-algorithms command to query loaded algorithms and implementations

8 years agoNEWS: Added changes since 5.3.4
Tobias Brunner [Thu, 26 Nov 2015 07:13:54 +0000 (08:13 +0100)] 
NEWS: Added changes since 5.3.4

8 years agoVersion bump to 5.3.5
Andreas Steffen [Thu, 26 Nov 2015 08:56:10 +0000 (09:56 +0100)] 
Version bump to 5.3.5

8 years agotesting: Updated expired mars.strongswan.org certificate
Andreas Steffen [Thu, 26 Nov 2015 08:55:28 +0000 (09:55 +0100)] 
testing: Updated expired mars.strongswan.org certificate

8 years agotravis: Enable OS X build
Tobias Brunner [Mon, 16 Nov 2015 15:44:03 +0000 (16:44 +0100)] 
travis: Enable OS X build

8 years agosigwaitinfo() may fail with EINTR if interrupted by an unblocked signal not in the set
Tobias Brunner [Thu, 19 Nov 2015 10:21:48 +0000 (11:21 +0100)] 
sigwaitinfo() may fail with EINTR if interrupted by an unblocked signal not in the set

Fixes #1213.

8 years agokernel-pfkey: Enable ENCR_CAMELLIA_CBC when it's available
Tobias Brunner [Mon, 23 Nov 2015 10:17:02 +0000 (11:17 +0100)] 
kernel-pfkey: Enable ENCR_CAMELLIA_CBC when it's available

Fixes #1214.

8 years agoman: Update description of the actions performed for different dpdaction values
Tobias Brunner [Wed, 18 Nov 2015 13:51:13 +0000 (14:51 +0100)] 
man: Update description of the actions performed for different dpdaction values

For instance, charon does not unroute `auto=route` connections with
`dpdaction=clear`.

8 years agoutils: Use the more low-level __NR_ prefix to refer to the syscall number
Tobias Brunner [Tue, 17 Nov 2015 16:21:36 +0000 (17:21 +0100)] 
utils: Use the more low-level __NR_ prefix to refer to the syscall number

The __NR_ constants are also defined in the Android headers.

8 years agoeap-radius: Add ability to configure RADIUS retransmission behavior
Thom Troy [Sat, 7 Nov 2015 17:53:50 +0000 (17:53 +0000)] 
eap-radius: Add ability to configure RADIUS retransmission behavior

Closes strongswan/strongswan#19.

8 years agoVersion bump to 5.4.0dr1
Andreas Steffen [Mon, 16 Nov 2015 15:36:50 +0000 (16:36 +0100)] 
Version bump to 5.4.0dr1

8 years agoVersion bump to 5.3.4
Andreas Steffen [Mon, 16 Nov 2015 12:22:25 +0000 (13:22 +0100)] 
Version bump to 5.3.4

8 years agoNEWS: Add info about CVE-2015-8023
Tobias Brunner [Thu, 12 Nov 2015 14:35:52 +0000 (15:35 +0100)] 
NEWS: Add info about CVE-2015-8023

8 years agoeap-mschapv2: Keep internal state to prevent authentication from succeeding prematurely
Tobias Brunner [Thu, 29 Oct 2015 10:23:33 +0000 (11:23 +0100)] 
eap-mschapv2: Keep internal state to prevent authentication from succeeding prematurely

We can't allow a client to send us MSCHAPV2_SUCCESS messages before it
was authenticated successfully.

Fixes CVE-2015-8023.

8 years agoandroid: Suppress compiler warnings about missing field initializers
Tobias Brunner [Fri, 13 Nov 2015 17:22:48 +0000 (18:22 +0100)] 
android: Suppress compiler warnings about missing field initializers

Triggered by -Wextra for many INIT usages where we only partially
initialize a struct.

8 years agoutils: Provide a fallback for sigwaitinfo() if needed
Tobias Brunner [Fri, 13 Nov 2015 14:46:27 +0000 (15:46 +0100)] 
utils: Provide a fallback for sigwaitinfo() if needed

Apparently, not available on Mac OS X 10.10 Yosemite. We don't provide
this on Windows.

8 years agotesting: Error messages of curl plugin have changed
Andreas Steffen [Fri, 13 Nov 2015 12:59:39 +0000 (13:59 +0100)] 
testing: Error messages of curl plugin have changed

8 years agotesting: Fixed another timing issue
Andreas Steffen [Fri, 13 Nov 2015 12:58:57 +0000 (13:58 +0100)] 
testing: Fixed another timing issue

8 years agoVersion bump to 5.3.4rc1
Andreas Steffen [Fri, 13 Nov 2015 11:18:28 +0000 (12:18 +0100)] 
Version bump to 5.3.4rc1

8 years agoinit: Make sure basic networking is up in systemd unit
Tobias Brunner [Fri, 13 Nov 2015 09:20:11 +0000 (10:20 +0100)] 
init: Make sure basic networking is up in systemd unit

Connections with auto=route might otherwise not work.

References #1188.

8 years agovici: Attribute certificates are not trusted
Tobias Brunner [Tue, 10 Nov 2015 14:24:07 +0000 (15:24 +0100)] 
vici: Attribute certificates are not trusted

8 years agovici: Properly add CRLs to the credential set
Tobias Brunner [Tue, 10 Nov 2015 14:20:16 +0000 (15:20 +0100)] 
vici: Properly add CRLs to the credential set

add_crl() ensures that old CLRs are not stored in the credential set.

8 years agomode-config: Reassign migrated virtual IP if client requests %any
Tobias Brunner [Tue, 13 Oct 2015 10:10:42 +0000 (12:10 +0200)] 
mode-config: Reassign migrated virtual IP if client requests %any

If we mistakenly detect a new IKE_SA as a reauthentication the client
won't request the previous virtual IP, but since we already migrated
it we already triggered the assign_vips() hook, so we should reassign
the migrated virtual IP.

Fixes #1152.

8 years agorevocation: Allow CRLs to be encoded in PEM format
Tobias Brunner [Wed, 11 Nov 2015 13:26:00 +0000 (14:26 +0100)] 
revocation: Allow CRLs to be encoded in PEM format

Since the textual representation for a CRL is now standardized
in RFC 7468 one could argue that we should accept that too, even
though RFC 5280 explicitly demands CRLs fetched via HTTP/FTP to
be in DER format.  But in particular for file URIs enforcing that
seems inconvenient.

Fixes #1203.

8 years agocurl: Be less strict when considering status codes as errors
Tobias Brunner [Wed, 11 Nov 2015 14:20:00 +0000 (15:20 +0100)] 
curl: Be less strict when considering status codes as errors

For file:// URIs the code is 0 on success. We now do the same libcurl
would do with CURLOPT_FAILONERROR enabled.

Fixes #1203.

8 years agoeap-radius: Compare address family when handing out virtual IPs
Tobias Brunner [Tue, 10 Nov 2015 08:42:23 +0000 (09:42 +0100)] 
eap-radius: Compare address family when handing out virtual IPs

This also ensures that the actually released virtual IP is removed from
the list of claimed IPs.

Fixes #1199.

8 years agoMerge branch 'eap-mschapv2-eap-identity'
Tobias Brunner [Thu, 12 Nov 2015 13:22:28 +0000 (14:22 +0100)] 
Merge branch 'eap-mschapv2-eap-identity'

This replaces the EAP-Identity with the EAP-MSCHAPv2 username, which
ensures the client is known with an authenticated identity.  Previously
a client with a valid username could use a different identity (e.g. the
name of a different user) in the EAP-Identity exchange.  Since we use
the EAP-Identity for uniqueness checks etc. this could be problematic.
The EAP-MSCHAPv2 username is now explicitly logged if it is different
from the EAP-Identity (or IKE identity).

Fixes #1182.

8 years agoeap-mschapv2: Report username if different from EAP-Identity (or IKE identity)
Tobias Brunner [Thu, 5 Nov 2015 13:07:49 +0000 (14:07 +0100)] 
eap-mschapv2: Report username if different from EAP-Identity (or IKE identity)

8 years agoeap-mschapv2: Provide EAP-MSCHAPv2 username as EAP-Identity
Tobias Brunner [Wed, 28 Oct 2015 16:44:48 +0000 (17:44 +0100)] 
eap-mschapv2: Provide EAP-MSCHAPv2 username as EAP-Identity

8 years agoauth-cfg: Prefer merged rules over existing ones when moving them
Tobias Brunner [Wed, 28 Oct 2015 17:53:15 +0000 (18:53 +0100)] 
auth-cfg: Prefer merged rules over existing ones when moving them

This is particularly important for single valued rules (e.g.
identities).  When copying values this is already handled correctly
by the enumerator and add().

8 years agoandroid: Add some (older) unit tests
Tobias Brunner [Wed, 11 Nov 2015 18:35:33 +0000 (19:35 +0100)] 
android: Add some (older) unit tests

8 years agoandroid: Properly handle shorter types in BufferedByteWriter
Tobias Brunner [Wed, 11 Nov 2015 18:30:04 +0000 (19:30 +0100)] 
android: Properly handle shorter types in BufferedByteWriter

In Java all integer types are signed, when a negative integer is casted
to a larger type (e.g. int to long) then due to sign extension the upper
bytes are not 0.  So writing that value to a byte array does not produce
the expected result.  By overloading the putX() methods we make sure to
upcast the values correctly.

8 years agoandroid: Migrate to the Gradle build system
Tobias Brunner [Thu, 22 Oct 2015 15:18:14 +0000 (17:18 +0200)] 
android: Migrate to the Gradle build system

This uses a manual way to trigger the NDK build (the default with
on-the-fly Android.mk files does not work for us).

8 years agoandroid: Provide a fallback for sigwaitinfo()
Tobias Brunner [Wed, 11 Nov 2015 15:54:47 +0000 (16:54 +0100)] 
android: Provide a fallback for sigwaitinfo()

8 years agoandroid: Replace AndroidConfigLocal.h with a header in utils/compat
Tobias Brunner [Wed, 11 Nov 2015 15:51:16 +0000 (16:51 +0100)] 
android: Replace AndroidConfigLocal.h with a header in utils/compat

8 years agoandroid: Fix build after updating Linux headers
Tobias Brunner [Fri, 23 Oct 2015 14:55:39 +0000 (16:55 +0200)] 
android: Fix build after updating Linux headers

Since we don't use the kernel-netlink plugin anymore and the headers
in the NDK are reasonably recent, we don't need this anymore (at least
when building the app).

Fixes #1172.

8 years agoMerge branch 'tkm-spi-label'
Tobias Brunner [Wed, 11 Nov 2015 14:42:34 +0000 (15:42 +0100)] 
Merge branch 'tkm-spi-label'

Adds the charon-tkm.spi_label and charon-tkm.spi_mask options to encode
a specific value/label in otherwise randomly generated IKE SPIs.

8 years agocharon-tkm: Register SPI generator callback
Adrian-Ken Rueegsegger [Mon, 9 Nov 2015 18:27:50 +0000 (19:27 +0100)] 
charon-tkm: Register SPI generator callback

Set get_spi callback of IKE SA manager to TKM-specific implementation.

8 years agocharon-tkm: Implement SPI generator
Adrian-Ken Rueegsegger [Mon, 9 Nov 2015 18:25:34 +0000 (19:25 +0100)] 
charon-tkm: Implement SPI generator

The get_spi callback returns a random SPI with a label encoded according
to the spi_label and spi_mask parameters read from the strongswan.conf.

8 years agosettings: Add settings_value_as_uint64() helper function
Tobias Brunner [Mon, 9 Nov 2015 18:27:20 +0000 (19:27 +0100)] 
settings: Add settings_value_as_uint64() helper function

8 years agoike-sa-manager: Allow plugins to provide IKE SPIs via a callback
Tobias Brunner [Mon, 9 Nov 2015 14:55:41 +0000 (15:55 +0100)] 
ike-sa-manager: Allow plugins to provide IKE SPIs via a callback

Plugins must depend on `libcharon-sa-managers` to ensure the manager
exists.

8 years agolibcharon: Publish IKE_SA/CHILD_SA managers as custom plugin feature
Tobias Brunner [Mon, 9 Nov 2015 14:54:48 +0000 (15:54 +0100)] 
libcharon: Publish IKE_SA/CHILD_SA managers as custom plugin feature

8 years agoikev1: Also use message hashes for Quick Mode for the early retransmission check
Tobias Brunner [Mon, 9 Nov 2015 16:07:25 +0000 (17:07 +0100)] 
ikev1: Also use message hashes for Quick Mode for the early retransmission check

We already did so during Phase 1 but because all three Quick Mode
message have the same message ID we occasionally dropped the third
message as retransmit, so we do it there too.  For INFORMATIONAL
and TRANSACTION exchanges we don't expect more than one inbound message
with the same message ID so we still use them there.

Fixes #1198.

8 years agotesting: Check for leases in swanctl/ip-pool scenario
Andreas Steffen [Wed, 11 Nov 2015 07:43:43 +0000 (08:43 +0100)] 
testing: Check for leases in swanctl/ip-pool scenario

8 years agoVersion bump to 5.3.4dr3
Andreas Steffen [Tue, 10 Nov 2015 10:48:32 +0000 (11:48 +0100)] 
Version bump to 5.3.4dr3

8 years agotesting: Fixed some more timing issues
Andreas Steffen [Mon, 9 Nov 2015 17:48:30 +0000 (18:48 +0100)] 
testing: Fixed some more timing issues

8 years agokernel-netlink: Allow IPsec policies to replace shunt policies
Tobias Brunner [Mon, 5 Oct 2015 12:36:29 +0000 (14:36 +0200)] 
kernel-netlink: Allow IPsec policies to replace shunt policies

Shunt policies don't have a reqid set, so we allow unequal reqids in
this particular case (i.e. if one of the reqids is 0).

8 years agokernel-pfkey: Make absolutely sure we always delete the right policy cache entry
Tobias Brunner [Wed, 16 Sep 2015 15:04:21 +0000 (17:04 +0200)] 
kernel-pfkey: Make absolutely sure we always delete the right policy cache entry

8 years agokernel-netlink: Make absolutely sure we always delete the right policy cache entry
Tobias Brunner [Wed, 16 Sep 2015 15:01:00 +0000 (17:01 +0200)] 
kernel-netlink: Make absolutely sure we always delete the right policy cache entry

8 years agokernel-interface: Pass the same data to del_policy() that was passed to add_policy()
Tobias Brunner [Wed, 16 Sep 2015 14:44:09 +0000 (16:44 +0200)] 
kernel-interface: Pass the same data to del_policy() that was passed to add_policy()

The additional data can be helpful to identify the exact policy to
delete.

8 years agokernel-netlink: Remove the unused policy_history flag
Tobias Brunner [Wed, 16 Sep 2015 13:05:10 +0000 (15:05 +0200)] 
kernel-netlink: Remove the unused policy_history flag

This was used with pluto, which had its own policy tracking.

8 years agokernel-interface: Return bool for kernel interface registration
Thomas Egerer [Tue, 6 Oct 2015 09:02:45 +0000 (11:02 +0200)] 
kernel-interface: Return bool for kernel interface registration

If the (un)registering of a kernel interface (net or ipsec) fails, the
plugin loader will never know, since the appropriate functions always
returns TRUE.  By making the (un)register functions return a boolean
value, the loader can detect a failure during initializing the kernel
interface and abort charon startup if desired.

8 years agotrap-manager: Also clean up remote address in error cases
Tobias Brunner [Tue, 10 Nov 2015 13:00:11 +0000 (14:00 +0100)] 
trap-manager: Also clean up remote address in error cases

Fixes #1201.

8 years agotraffic-selector: Don't end printf'ed list of traffic selectors with a space
Tobias Brunner [Wed, 7 Oct 2015 14:25:05 +0000 (16:25 +0200)] 
traffic-selector: Don't end printf'ed list of traffic selectors with a space

8 years agoswanctl: Add option to query leases with --get-pools
Tobias Brunner [Mon, 19 Oct 2015 13:42:57 +0000 (15:42 +0200)] 
swanctl: Add option to query leases with --get-pools

8 years agovici: Add option to query leases of pools
Tobias Brunner [Mon, 19 Oct 2015 13:35:51 +0000 (15:35 +0200)] 
vici: Add option to query leases of pools

We could later perhaps add filter parameters similar to those of the
`ipsec leases` command (pool name/virtual IP).

8 years agoswanctl: List virtual IPs in --list-sas
Tobias Brunner [Mon, 19 Oct 2015 14:07:39 +0000 (16:07 +0200)] 
swanctl: List virtual IPs in --list-sas

8 years agovici: Return local and remote virtual IPs when listing SAs
Tobias Brunner [Mon, 19 Oct 2015 14:05:47 +0000 (16:05 +0200)] 
vici: Return local and remote virtual IPs when listing SAs

8 years agosocket-dynamic: Refactor setting source address when sending messages
Tobias Brunner [Tue, 3 Nov 2015 14:35:16 +0000 (15:35 +0100)] 
socket-dynamic: Refactor setting source address when sending messages

Basically the same change as the one for the socket-default plugin.

8 years agosocket-default: Refactor setting source address when sending messages
Tobias Brunner [Mon, 2 Nov 2015 15:22:38 +0000 (16:22 +0100)] 
socket-default: Refactor setting source address when sending messages

This ensures we don't pass data (via msg_control) defined in a different
scope to sendmsg().  Actually, some compilers (e.g. GCC 5.2.1) might
optimize the memcpy() call away causing the packets not to get sent from
the intended source address.

It also makes the code clearer than with all these ifdefs.

Fixes #1171.

8 years agosocket-default: Refactor retrieval of destination address of received packets
Tobias Brunner [Mon, 2 Nov 2015 15:16:56 +0000 (16:16 +0100)] 
socket-default: Refactor retrieval of destination address of received packets

This makes the code a bit clearer than with the interleaved ifdefs.

8 years agoMerge branch 'medsrv-js-css'
Tobias Brunner [Mon, 9 Nov 2015 15:37:02 +0000 (16:37 +0100)] 
Merge branch 'medsrv-js-css'

Removes the outdated version of MooTools and actually all
JavaScript code as that stuff can now be done with CSS directly.

Fixes #1190.

8 years agomedsrv: Replace remaining JavaScript code with CSS
Tobias Brunner [Wed, 4 Nov 2015 13:47:40 +0000 (14:47 +0100)] 
medsrv: Replace remaining JavaScript code with CSS

8 years agomedsrv: Replace the JavaScript focus() calls with HTML5's autofocus
Tobias Brunner [Wed, 4 Nov 2015 13:30:18 +0000 (14:30 +0100)] 
medsrv: Replace the JavaScript focus() calls with HTML5's autofocus

8 years agoconftest: Add configuration option to report milliseconds in file logger
Tobias Brunner [Mon, 9 Nov 2015 11:44:29 +0000 (12:44 +0100)] 
conftest: Add configuration option to report milliseconds in file logger

8 years agofile-logger: Add option to print milliseconds within the current second after timestamp
Tobias Brunner [Mon, 9 Nov 2015 11:30:26 +0000 (12:30 +0100)] 
file-logger: Add option to print milliseconds within the current second after timestamp

For this to look right time_format should end with %S or %T.

Closes strongswan/strongswan#18.

8 years agoike-natd: Create fake NAT-D payloads in a more static way
Tobias Brunner [Fri, 25 Sep 2015 17:24:44 +0000 (19:24 +0200)] 
ike-natd: Create fake NAT-D payloads in a more static way

In some scenarios an IKE_SA might get restarted multiple times (e.g.
due to retransmits and delayed INVALID_KE_PAYLOAD notifies) so that
two IKE_SA_INIT messages might be sent that only differ in the
previously randomly generated NAT_DETECTION_SOURCE_IP payload.
This could cause an authentication failure on the responder if the two
peers don't use the same IKE_SA_INIT message in their InitiatorSignedOctets.

While the payload is generated in a reproducible way it will still change
when the daemon is restarted, which should make detecting the payloads
as fake a bit harder (compared to e.g. just using 0.0.0.0:0 as address).

Fixes #1131.

8 years agotesting: Added Debian 7.9 to IMV database
Andreas Steffen [Sat, 7 Nov 2015 12:13:49 +0000 (13:13 +0100)] 
testing: Added Debian 7.9 to IMV database

8 years agotesting: Reduce runtime of all tests that use SQLite databases by storing them in...
Tobias Brunner [Fri, 6 Nov 2015 16:27:45 +0000 (17:27 +0100)] 
testing: Reduce runtime of all tests that use SQLite databases by storing them in ramfs

8 years agotesting: tnc/tnccs-20-hcd-eap scenario does not use SWID IMV/strongTNC
Tobias Brunner [Fri, 6 Nov 2015 17:27:30 +0000 (18:27 +0100)] 
testing: tnc/tnccs-20-hcd-eap scenario does not use SWID IMV/strongTNC

8 years agotesting: Add test config to create and remove a directory for DBs stored in ramfs
Tobias Brunner [Fri, 6 Nov 2015 16:26:42 +0000 (17:26 +0100)] 
testing: Add test config to create and remove a directory for DBs stored in ramfs

8 years agotesting: Improve runtime of TNC tests by storing the SQLite DB in ramfs
Tobias Brunner [Fri, 6 Nov 2015 15:00:29 +0000 (16:00 +0100)] 
testing: Improve runtime of TNC tests by storing the SQLite DB in ramfs

This saves about 50%-70% of the time needed for scenarios that use a DB.

8 years agotesting: Fix test constraints in ikev2/rw-ntru-bliss scenario
Tobias Brunner [Fri, 6 Nov 2015 16:21:11 +0000 (17:21 +0100)] 
testing: Fix test constraints in ikev2/rw-ntru-bliss scenario

Changed with a88d958933ef ("Explicitly mention SHA2 algorithm in BLISS
OIDs and signature schemes").

8 years agotesting: Use sha3 plugin in ikev2/rw-cert scenario
Andreas Steffen [Fri, 6 Nov 2015 15:22:57 +0000 (16:22 +0100)] 
testing: Use sha3 plugin in ikev2/rw-cert scenario

8 years agomediation: Reschedule initiate mediation job if SA is not yet found
Tobias Brunner [Fri, 6 Nov 2015 13:45:57 +0000 (14:45 +0100)] 
mediation: Reschedule initiate mediation job if SA is not yet found

If the job gets queued for a newly created IKE_SA it might not yet be
checked in when the job is running, reschedule the job in that case.

This should fix the two p2pnat test scenarios, which occasionally
failed because one of the peers did not initiate the connection to
the mediation server.

8 years agotesting: Report the actual strongSwan and kernel versions
Tobias Brunner [Fri, 6 Nov 2015 10:28:34 +0000 (11:28 +0100)] 
testing: Report the actual strongSwan and kernel versions

8 years agotesting: Record strongSwan version when building from tarball
Tobias Brunner [Fri, 6 Nov 2015 10:19:40 +0000 (11:19 +0100)] 
testing: Record strongSwan version when building from tarball

8 years agotesting: Record strongSwan version when building from source tree
Tobias Brunner [Fri, 6 Nov 2015 10:19:22 +0000 (11:19 +0100)] 
testing: Record strongSwan version when building from source tree

8 years agotesting: Report time required for all scenarios on test overview page
Tobias Brunner [Thu, 5 Nov 2015 14:20:46 +0000 (15:20 +0100)] 
testing: Report time required for all scenarios on test overview page

8 years agoike-sa-manager: Signal entries that we don't actually check out
Tobias Brunner [Thu, 5 Nov 2015 17:52:27 +0000 (18:52 +0100)] 
ike-sa-manager: Signal entries that we don't actually check out

In some cases we call wait_for_entry() but don't actually check out the
entry afterwards (e.g. because it doesn't match certain criteria).  So
there won't be a call to checkin() for such entries causing waiting
threads to get signaled.  Instead, such threads would be blocked until
another thread properly checks out/in the entry (or does a blocking
enumeration).

8 years agoike-sa-manager: Signal waiting threads after check out/in for uniqueness check
Tobias Brunner [Fri, 6 Nov 2015 08:18:44 +0000 (09:18 +0100)] 
ike-sa-manager: Signal waiting threads after check out/in for uniqueness check

Fixes 758b1caa0e75 ("ikev1: Prevent deadlock when checking for duplicate IKEv1 SAs")

8 years agotesting: Remove old SWID tags when building from repository
Tobias Brunner [Thu, 5 Nov 2015 16:04:29 +0000 (17:04 +0100)] 
testing: Remove old SWID tags when building from repository

This fixes the TNC-PDP scenarios.

8 years agotesting: Don't log anything to the console if auth.log or daemon.log do not exist
Tobias Brunner [Thu, 5 Nov 2015 14:10:26 +0000 (15:10 +0100)] 
testing: Don't log anything to the console if auth.log or daemon.log do not exist

8 years agotesting: Simplify fetching of swanctl --list-* output
Tobias Brunner [Thu, 5 Nov 2015 14:07:57 +0000 (15:07 +0100)] 
testing: Simplify fetching of swanctl --list-* output

8 years agotesting: Don't run redundant crypto tests in sql/rw-cert scenario
Tobias Brunner [Thu, 5 Nov 2015 14:05:44 +0000 (15:05 +0100)] 
testing: Don't run redundant crypto tests in sql/rw-cert scenario

They run in all other rw-cert scenarios but in the SQL version there is
no change in the loaded crypto plugins.

8 years agotesting: Fix CRL URIs in ipv6/net2net-ip4-in-ip6-ikev* scenarios
Tobias Brunner [Thu, 5 Nov 2015 14:04:39 +0000 (15:04 +0100)] 
testing: Fix CRL URIs in ipv6/net2net-ip4-in-ip6-ikev* scenarios

8 years agotesting: Speed up OCSP scenarios
Tobias Brunner [Thu, 5 Nov 2015 14:03:06 +0000 (15:03 +0100)] 
testing: Speed up OCSP scenarios

Don't make clients wait for the TCP connections to timeout by dropping
packets.  By rejecting them the OCSP requests fail immediately.

8 years agotesting: Speed up ifdown calls in ikev2/mobike scenarios
Tobias Brunner [Thu, 5 Nov 2015 13:59:34 +0000 (14:59 +0100)] 
testing: Speed up ifdown calls in ikev2/mobike scenarios

ifdown calls bind's rndc, which tries to access TCP port 953 on lo.
If these packets are dropped by the firewall we have to wait for the TCP
connections to time out, which takes quite a while.