strongswan.git
7 years agoAdd recipe for iptables
Reto Buerki [Wed, 21 Nov 2012 17:42:57 +0000 (18:42 +0100)]
Add recipe for iptables

7 years agoAdd freeradius recipe
Reto Buerki [Wed, 21 Nov 2012 17:39:08 +0000 (18:39 +0100)]
Add freeradius recipe

7 years agoFactor out building of strongswan into own Makefile
Reto Buerki [Wed, 21 Nov 2012 17:08:24 +0000 (18:08 +0100)]
Factor out building of strongswan into own Makefile

Small Makefiles (recipes) are used to install software from source into
the root UML image.

7 years agotesting: Switch to Debian based guest images
Reto Buerki [Mon, 19 Nov 2012 09:43:42 +0000 (10:43 +0100)]
testing: Switch to Debian based guest images

Instead of extracting a downloaded Gentoo filesystem tree into a file
containing a reiserfs filesystem, create an ext3 filesystem inside a
sparse file, mount it and debootstrap an up-to-date Debian system. Use
this image as base for all UML guest images.

Also, drop support for the various consoles and use xterm
unconditionally.

7 years agoFix deadlock in IMC/IMV managers
Tobias Brunner [Tue, 18 Dec 2012 14:50:08 +0000 (15:50 +0100)]
Fix deadlock in IMC/IMV managers

Since reserve_id() might be called from e.g. notify_connection_change()
using a write lock will not work as this can't be acquired while holding
the read lock.

Also, with the previous code it was possible that two IMCs/IMVs added by
two threads at the same time would get the same ID assigned.

7 years agoProperly select IMC/IMV according to given primary ID in reserve_id()
Tobias Brunner [Tue, 18 Dec 2012 14:49:21 +0000 (15:49 +0100)]
Properly select IMC/IMV according to given primary ID in reserve_id()

7 years agoUse a ./configure check to detect pthread spinlock availability
Martin Willi [Thu, 13 Dec 2012 10:22:40 +0000 (11:22 +0100)]
Use a ./configure check to detect pthread spinlock availability

_POSIX_SPIN_LOCKS does not seem to be defined correctly on all
systems (Debian libc 2.3.6). Fixes #262.

7 years agokernel-netlinks get_interface() considers virtual IPs, too
Martin Willi [Mon, 17 Dec 2012 13:23:44 +0000 (14:23 +0100)]
kernel-netlinks get_interface() considers virtual IPs, too

When using load-tester, we can install tunnel outer addresses on
demand. As these are installed as "virtual", we have to consider
virtual IPs in the get_interface() lookup to install "real" virtual
IPs to these dynamic external addresses.

7 years agoIf load-tester requests a virtual IP, use a dynamic local traffic selector
Martin Willi [Mon, 17 Dec 2012 13:22:25 +0000 (14:22 +0100)]
If load-tester requests a virtual IP, use a dynamic local traffic selector

7 years agoAdd missing CHILD_SA specific proposal keyword in conftest README
Martin Willi [Mon, 17 Dec 2012 09:58:47 +0000 (10:58 +0100)]
Add missing CHILD_SA specific proposal keyword in conftest README

7 years agoFix traffic selectors also as initiator in case of transport mode over NAT
Tobias Brunner [Thu, 13 Dec 2012 14:25:59 +0000 (15:25 +0100)]
Fix traffic selectors also as initiator in case of transport mode over NAT

7 years agoFix debug output if responder selected invalid traffic selectors during QM
Tobias Brunner [Thu, 13 Dec 2012 14:25:03 +0000 (15:25 +0100)]
Fix debug output if responder selected invalid traffic selectors during QM

7 years agofixed memory leak in TPM Version Info
Andreas Steffen [Thu, 13 Dec 2012 10:10:24 +0000 (11:10 +0100)]
fixed memory leak in TPM Version Info

7 years agoFixed reading of configs in conftest utility
Tobias Brunner [Thu, 13 Dec 2012 10:08:32 +0000 (11:08 +0100)]
Fixed reading of configs in conftest utility

7 years agoMigrate RADIUS accounting state while IKE_SA unique id changes during rekey
Martin Willi [Tue, 11 Dec 2012 09:40:59 +0000 (10:40 +0100)]
Migrate RADIUS accounting state while IKE_SA unique id changes during rekey

7 years agoMigrate cache and fire lookip events for unique_id change during IKE_SA rekey
Martin Willi [Mon, 10 Dec 2012 16:04:26 +0000 (17:04 +0100)]
Migrate cache and fire lookip events for unique_id change during IKE_SA rekey

7 years agoInherit virtual IP and attributes from old to new, not from new to old
Martin Willi [Mon, 10 Dec 2012 16:01:00 +0000 (17:01 +0100)]
Inherit virtual IP and attributes from old to new, not from new to old

7 years agoAvoid that ruby 1.9 redefines snprintf(3) etc.
Tobias Brunner [Mon, 10 Dec 2012 10:41:37 +0000 (11:41 +0100)]
Avoid that ruby 1.9 redefines snprintf(3) etc.

Otherwise our custom printf specifiers won't work.

7 years agoProperly initialize linked list when enumerating interface addresses
Tobias Brunner [Mon, 10 Dec 2012 08:46:51 +0000 (09:46 +0100)]
Properly initialize linked list when enumerating interface addresses

7 years agorb_cvar_set() takes three arguments in Ruby 1.9
Tobias Brunner [Mon, 10 Dec 2012 08:41:32 +0000 (09:41 +0100)]
rb_cvar_set() takes three arguments in Ruby 1.9

7 years agoUse rb_errinfo() instead of ruby_errinfo for Ruby 1.9
Tobias Brunner [Thu, 8 Nov 2012 18:24:04 +0000 (19:24 +0100)]
Use rb_errinfo() instead of ruby_errinfo for Ruby 1.9

7 years agoUse proper Ruby library depending on the available version
Tobias Brunner [Thu, 8 Nov 2012 18:23:05 +0000 (19:23 +0100)]
Use proper Ruby library depending on the available version

7 years agoFixed search for ruby.h in ./configure for newer Ruby releases
Tobias Brunner [Thu, 8 Nov 2012 15:20:41 +0000 (16:20 +0100)]
Fixed search for ruby.h in ./configure for newer Ruby releases

7 years agoadd dlcose strongswan.conf option to tnc-imc/tnc-imv plugins
Andreas Steffen [Sun, 9 Dec 2012 18:40:13 +0000 (19:40 +0100)]
add dlcose strongswan.conf option to tnc-imc/tnc-imv plugins

7 years agooptionally skip dlclose() of IMCs/IMVs in order to track memory leaks
Andreas Steffen [Sun, 9 Dec 2012 18:35:23 +0000 (19:35 +0100)]
optionally skip dlclose() of IMCs/IMVs in order to track memory leaks

7 years agofixed memory leak in error case
Andreas Steffen [Sun, 9 Dec 2012 16:07:51 +0000 (17:07 +0100)]
fixed memory leak in error case

7 years agonewer releases of dpkg-query does not have PackageSpec
Andreas Steffen [Sun, 9 Dec 2012 12:55:22 +0000 (13:55 +0100)]
newer releases of dpkg-query does not have PackageSpec

7 years agoignore ports of the 127.0.1.1 internal system address
Andreas Steffen [Sun, 9 Dec 2012 12:26:34 +0000 (13:26 +0100)]
ignore ports of the 127.0.1.1 internal system address

7 years agoProperly trigger ike_updown() event if IKEv1 DPD times out
Martin Willi [Tue, 4 Dec 2012 10:11:50 +0000 (11:11 +0100)]
Properly trigger ike_updown() event if IKEv1 DPD times out

Fixes missing RADIUS Accounting Stop, #257.

7 years agoReplace optionsfrom LGPLv2 header by a GPLv2
Martin Willi [Fri, 30 Nov 2012 16:24:28 +0000 (17:24 +0100)]
Replace optionsfrom LGPLv2 header by a GPLv2

7 years agoFix GPL license header to properly "sed" it
Martin Willi [Fri, 30 Nov 2012 16:15:37 +0000 (17:15 +0100)]
Fix GPL license header to properly "sed" it

7 years agoAdd locking to IMC/IMV managers to add/remove IMC/IMVs on the fly
Martin Willi [Tue, 20 Nov 2012 13:34:00 +0000 (14:34 +0100)]
Add locking to IMC/IMV managers to add/remove IMC/IMVs on the fly

7 years agoReuse generic constructor in IMV/IMC message
Martin Willi [Mon, 19 Nov 2012 15:18:50 +0000 (16:18 +0100)]
Reuse generic constructor in IMV/IMC message

7 years agoAdd getters for the raw encoding in IMV/IMC messages
Martin Willi [Mon, 19 Nov 2012 15:11:59 +0000 (16:11 +0100)]
Add getters for the raw encoding in IMV/IMC messages

7 years agoClean up whitespaces in IMC/IMV messages
Martin Willi [Mon, 19 Nov 2012 15:11:27 +0000 (16:11 +0100)]
Clean up whitespaces in IMC/IMV messages

7 years agoDon't remove IETF standard errors while parsing IMC/IMV messages
Martin Willi [Mon, 19 Nov 2012 14:03:45 +0000 (15:03 +0100)]
Don't remove IETF standard errors while parsing IMC/IMV messages

7 years agoRemove unused get_vendor_id() method in IETF error IF-M attributes
Martin Willi [Mon, 19 Nov 2012 13:15:11 +0000 (14:15 +0100)]
Remove unused get_vendor_id() method in IETF error IF-M attributes

7 years agoCheck os_version when reading release file, os_name is not set for Debian
Martin Willi [Mon, 19 Nov 2012 12:26:05 +0000 (13:26 +0100)]
Check os_version when reading release file, os_name is not set for Debian

7 years agoDon't unload IMC/IMV managers if no IMC/IMVs loaded from tnc_config
Martin Willi [Thu, 15 Nov 2012 10:51:21 +0000 (11:51 +0100)]
Don't unload IMC/IMV managers if no IMC/IMVs loaded from tnc_config

7 years agoAdd wrappers to IMC/IMV managers loading IMC/IMVs from function pointers
Martin Willi [Thu, 15 Nov 2012 08:50:20 +0000 (09:50 +0100)]
Add wrappers to IMC/IMV managers loading IMC/IMVs from function pointers

7 years agoIf adding an IMC/IMV fails, terminate() it only if it has been initialize()d
Martin Willi [Wed, 14 Nov 2012 15:17:57 +0000 (16:17 +0100)]
If adding an IMC/IMV fails, terminate() it only if it has been initialize()d

7 years agoAdd an IMV constructor taking a set of custom TNC_IMV functions
Martin Willi [Wed, 14 Nov 2012 11:30:19 +0000 (12:30 +0100)]
Add an IMV constructor taking a set of custom TNC_IMV functions

7 years agoAdd an IMC constructor taking a set of custom TNC_IMC functions
Martin Willi [Wed, 14 Nov 2012 11:17:10 +0000 (12:17 +0100)]
Add an IMC constructor taking a set of custom TNC_IMC functions

7 years agoClean up memory management when loading IMC/IMVs from files
Martin Willi [Wed, 14 Nov 2012 10:17:36 +0000 (11:17 +0100)]
Clean up memory management when loading IMC/IMVs from files

7 years agoFix passing of IKE_SA unique_id over lookip socket
Martin Willi [Fri, 30 Nov 2012 12:36:38 +0000 (13:36 +0100)]
Fix passing of IKE_SA unique_id over lookip socket

7 years agoattest displays dates either in local time or UTC
Andreas Steffen [Fri, 30 Nov 2012 08:55:38 +0000 (09:55 +0100)]
attest displays dates either in local time or UTC

7 years agostore detected improper OS settings in database
Andreas Steffen [Thu, 29 Nov 2012 23:12:38 +0000 (00:12 +0100)]
store detected improper OS settings in database

7 years agoAdd load-tester NEWS
Martin Willi [Thu, 29 Nov 2012 09:29:17 +0000 (10:29 +0100)]
Add load-tester NEWS

7 years agoStore load-tester address leases in a hashtable for fast removal
Martin Willi [Mon, 12 Nov 2012 15:24:24 +0000 (16:24 +0100)]
Store load-tester address leases in a hashtable for fast removal

7 years agoConsolidated %any(6) host_t parsing
Martin Willi [Mon, 12 Nov 2012 14:58:39 +0000 (15:58 +0100)]
Consolidated %any(6) host_t parsing

7 years agoRemove numeric conversion from resolver, it is done directly in host_t
Martin Willi [Mon, 12 Nov 2012 14:49:48 +0000 (15:49 +0100)]
Remove numeric conversion from resolver, it is done directly in host_t

7 years agohost_create_from_dns() tries a numeric conversion before asking resolver
Martin Willi [Mon, 12 Nov 2012 14:48:48 +0000 (15:48 +0100)]
host_create_from_dns() tries a numeric conversion before asking resolver

7 years agoAdd a host_t constructor from string, but with a specific family
Martin Willi [Mon, 12 Nov 2012 16:10:45 +0000 (17:10 +0100)]
Add a host_t constructor from string, but with a specific family

7 years agoDon't wait while removing external IPs used for load testing
Martin Willi [Mon, 12 Nov 2012 10:14:03 +0000 (11:14 +0100)]
Don't wait while removing external IPs used for load testing

7 years agoInstall virtual IPs via interface name, and use an interface lookup where required
Martin Willi [Mon, 12 Nov 2012 09:06:09 +0000 (10:06 +0100)]
Install virtual IPs via interface name, and use an interface lookup where required

7 years agoload-tester can dynamically install a dedicated external IP for each IKE_SA
Martin Willi [Fri, 9 Nov 2012 14:48:37 +0000 (15:48 +0100)]
load-tester can dynamically install a dedicated external IP for each IKE_SA

For consistency, the local/remote parameters have been replaced by the
initiator/responder options. As initiator, the initiator option can
be overriden by an addrs section taking key/value pairs with address
pools to use on a specific interface.

7 years agoAdd an optional kernel-interface parameter to install IPs with a custom prefix
Martin Willi [Fri, 9 Nov 2012 14:46:58 +0000 (15:46 +0100)]
Add an optional kernel-interface parameter to install IPs with a custom prefix

7 years agoAdd a delay option to load-tester socket
Martin Willi [Fri, 19 Oct 2012 12:54:23 +0000 (14:54 +0200)]
Add a delay option to load-tester socket

7 years agoIndicate message retransmissions while initiating load-test batches
Martin Willi [Fri, 19 Oct 2012 09:36:31 +0000 (11:36 +0200)]
Indicate message retransmissions while initiating load-test batches

7 years agoAdd alerts for sent/received message retransmissions and timeout
Martin Willi [Fri, 19 Oct 2012 09:32:20 +0000 (11:32 +0200)]
Add alerts for sent/received message retransmissions and timeout

7 years agoInitiate each load-testing connection with a fresh peer config
Martin Willi [Fri, 19 Oct 2012 08:57:27 +0000 (10:57 +0200)]
Initiate each load-testing connection with a fresh peer config

7 years agoInitiate IKE_SAs trigger over load-tester socket in parallel
Martin Willi [Fri, 19 Oct 2012 08:47:31 +0000 (10:47 +0200)]
Initiate IKE_SAs trigger over load-tester socket in parallel

7 years agoAdd a simple load-tester utility to initiate over control socket
Martin Willi [Thu, 18 Oct 2012 13:41:44 +0000 (15:41 +0200)]
Add a simple load-tester utility to initiate over control socket

7 years agoAdd a load-tester control socket to manually trigger initiation
Martin Willi [Thu, 18 Oct 2012 13:40:37 +0000 (15:40 +0200)]
Add a load-tester control socket to manually trigger initiation

7 years agoLookip plugin additionally reports the IKE_SA unique identifier
Martin Willi [Thu, 29 Nov 2012 08:53:10 +0000 (09:53 +0100)]
Lookip plugin additionally reports the IKE_SA unique identifier

7 years agoallow update of file hashes
Andreas Steffen [Wed, 28 Nov 2012 22:18:33 +0000 (23:18 +0100)]
allow update of file hashes

7 years agoremoved unused header include
Andreas Steffen [Wed, 28 Nov 2012 13:37:15 +0000 (14:37 +0100)]
removed unused header include

7 years agodifferentiate attestation reason strings
Andreas Steffen [Wed, 28 Nov 2012 13:14:41 +0000 (14:14 +0100)]
differentiate attestation reason strings

7 years agostore collected device information in database
Andreas Steffen [Wed, 28 Nov 2012 09:50:56 +0000 (10:50 +0100)]
store collected device information in database

7 years agoFixed encoding of TLS extensions (elliptic_curves and signature_algorithms)
Tobias Brunner [Wed, 28 Nov 2012 09:18:28 +0000 (10:18 +0100)]
Fixed encoding of TLS extensions (elliptic_curves and signature_algorithms)

7 years agostore unique device_id in database
Andreas Steffen [Tue, 27 Nov 2012 22:48:40 +0000 (23:48 +0100)]
store unique device_id in database

7 years agocompleted Polish language version
Ewa Steffen [Fri, 23 Nov 2012 20:45:04 +0000 (21:45 +0100)]
completed Polish language version

7 years agocosmetics
Andreas Steffen [Fri, 23 Nov 2012 17:31:44 +0000 (18:31 +0100)]
cosmetics

7 years agoimplemented output of item lists in remediation instructions
Andreas Steffen [Fri, 23 Nov 2012 17:30:00 +0000 (18:30 +0100)]
implemented output of item lists in remediation instructions

7 years agorefactored reason string and remediation instructions framework
Andreas Steffen [Fri, 23 Nov 2012 11:30:09 +0000 (12:30 +0100)]
refactored reason string and remediation instructions framework

7 years agoDo not send 0.0.0.0/0 traffic selectors as Split-Include Unity attributes
Martin Willi [Wed, 21 Nov 2012 09:08:04 +0000 (10:08 +0100)]
Do not send 0.0.0.0/0 traffic selectors as Split-Include Unity attributes

It seems that iOS devices don't like them.

7 years agoallow the optional sharing if RSA private keys
Andreas Steffen [Wed, 21 Nov 2012 23:34:26 +0000 (00:34 +0100)]
allow the optional sharing if RSA private keys

7 years agoNew Android release after adding shortcuts and confirmation dialog
Tobias Brunner [Wed, 21 Nov 2012 18:07:52 +0000 (19:07 +0100)]
New Android release after adding shortcuts and confirmation dialog

Also fixed some Android 4.2 specific issues.

7 years agoandroid: Don't allow any backup for now
Tobias Brunner [Wed, 21 Nov 2012 18:05:18 +0000 (19:05 +0100)]
android: Don't allow any backup for now

7 years agoandroid: Properly handle exceptions when loading keys/certificates
Tobias Brunner [Wed, 21 Nov 2012 17:54:51 +0000 (18:54 +0100)]
android: Properly handle exceptions when loading keys/certificates

7 years agoandroid: Use the same tag string for all dialogs in MainActivity
Tobias Brunner [Tue, 20 Nov 2012 15:06:39 +0000 (16:06 +0100)]
android: Use the same tag string for all dialogs in MainActivity

7 years agoandroid: Hide previous dialogs when handling a new connection attempt
Tobias Brunner [Tue, 20 Nov 2012 14:47:54 +0000 (15:47 +0100)]
android: Hide previous dialogs when handling a new connection attempt

7 years agoandroid: Show confirmation dialog when starting a profile while already connected
Tobias Brunner [Tue, 20 Nov 2012 14:37:04 +0000 (15:37 +0100)]
android: Show confirmation dialog when starting a profile while already connected

7 years agoandroid: Add the ability to create shortcuts to specific VPN profiles
Tobias Brunner [Wed, 7 Nov 2012 15:09:59 +0000 (16:09 +0100)]
android: Add the ability to create shortcuts to specific VPN profiles

7 years agoandroid: Start a specific VPN profile based on special Intents
Tobias Brunner [Wed, 7 Nov 2012 15:06:30 +0000 (16:06 +0100)]
android: Start a specific VPN profile based on special Intents

7 years agoandroid: Attribute added to display the list of VPN profiles in read-only mode
Tobias Brunner [Wed, 7 Nov 2012 15:02:21 +0000 (16:02 +0100)]
android: Attribute added to display the list of VPN profiles in read-only mode

7 years agoFixed two bugs in logging MSK during EAP-SIM/AKA
Tobias Brunner [Wed, 21 Nov 2012 10:55:55 +0000 (11:55 +0100)]
Fixed two bugs in logging MSK during EAP-SIM/AKA

msk is already a pointer to a chunk_t and it was actually not set yet.

7 years agoadded ike2/rw-eap-md5-class-radius scenario
Andreas Steffen [Wed, 21 Nov 2012 05:05:34 +0000 (06:05 +0100)]
added ike2/rw-eap-md5-class-radius scenario

7 years agoandroid: Show an error if VPN fails due to lock down mode in Android 4.2
Tobias Brunner [Thu, 15 Nov 2012 17:52:18 +0000 (18:52 +0100)]
android: Show an error if VPN fails due to lock down mode in Android 4.2

7 years agoandroid: Add error message as argument to "VPN not supported" dialog
Tobias Brunner [Thu, 15 Nov 2012 17:51:24 +0000 (18:51 +0100)]
android: Add error message as argument to "VPN not supported" dialog

7 years agoandroid: Content providers are not exported by default in Android 4.2
Tobias Brunner [Thu, 15 Nov 2012 16:29:01 +0000 (17:29 +0100)]
android: Content providers are not exported by default in Android 4.2

7 years agoandroid: Set target SDK to 17 (Android 4.2)
Tobias Brunner [Thu, 15 Nov 2012 16:28:33 +0000 (17:28 +0100)]
android: Set target SDK to 17 (Android 4.2)

7 years agoandroid: Private key bug has been fixed with Android 4.2
Tobias Brunner [Thu, 15 Nov 2012 16:25:44 +0000 (17:25 +0100)]
android: Private key bug has been fixed with Android 4.2

7 years agooverwrite sensitive prime with zeroes
Andreas Steffen [Sun, 18 Nov 2012 21:55:22 +0000 (22:55 +0100)]
overwrite sensitive prime with zeroes

7 years agostrndup() requires string.h header file
Andreas Steffen [Sun, 18 Nov 2012 18:41:03 +0000 (19:41 +0100)]
strndup() requires string.h header file

7 years agoimplemented generation of safe primes
Andreas Steffen [Sun, 18 Nov 2012 18:22:31 +0000 (19:22 +0100)]
implemented generation of safe primes

7 years agogenerate reason strings and remediation instructions for improper OS settings
Andreas Steffen [Sun, 18 Nov 2012 10:44:03 +0000 (11:44 +0100)]
generate reason strings and remediation instructions for improper OS settings

7 years agoprecautionary measures
Andreas Steffen [Sat, 17 Nov 2012 13:53:27 +0000 (14:53 +0100)]
precautionary measures

7 years agofixed a memory leak in pacman
Andreas Steffen [Sat, 17 Nov 2012 07:16:53 +0000 (08:16 +0100)]
fixed a memory leak in pacman

7 years agoremoved unused variable
Andreas Steffen [Sat, 17 Nov 2012 07:16:23 +0000 (08:16 +0100)]
removed unused variable