]> git.ipfire.org Git - thirdparty/strongswan.git/log
thirdparty/strongswan.git
12 years agokernel-utun: install a bypass route along with an SA to its destination kernel-utun
Martin Willi [Wed, 17 Apr 2013 14:49:35 +0000 (16:49 +0200)] 
kernel-utun: install a bypass route along with an SA to its destination

If the tunneled subnet includes the IKE peer (default route), we have to avoid
that our IKE and ESP packets use the route (and source address) over the utun.

12 years agokernel-utun: implement get_nexthop() lookup using PF_ROUTE
Martin Willi [Wed, 17 Apr 2013 13:47:06 +0000 (15:47 +0200)] 
kernel-utun: implement get_nexthop() lookup using PF_ROUTE

12 years agokernel-utun: read PF_ROUTE messages from kernel using a receiver thread
Martin Willi [Wed, 17 Apr 2013 12:53:33 +0000 (14:53 +0200)] 
kernel-utun: read PF_ROUTE messages from kernel using a receiver thread

12 years agokernel-utun: when installing host routes, set flag and omit netmask
Martin Willi [Wed, 17 Apr 2013 12:50:47 +0000 (14:50 +0200)] 
kernel-utun: when installing host routes, set flag and omit netmask

12 years agokernel-utun: use always the same process ID, regardless of calling thread
Martin Willi [Wed, 17 Apr 2013 12:47:58 +0000 (14:47 +0200)] 
kernel-utun: use always the same process ID, regardless of calling thread

12 years agokernel-utun: install policy by adding routes to utun device
Martin Willi [Tue, 16 Apr 2013 10:25:28 +0000 (12:25 +0200)] 
kernel-utun: install policy by adding routes to utun device

12 years agokernel-utun: implement add/del_route() using PF_ROUTE
Martin Willi [Tue, 16 Apr 2013 10:22:59 +0000 (12:22 +0200)] 
kernel-utun: implement add/del_route() using PF_ROUTE

12 years agokernel-utun: use PF_KEY style setsockopts to create IKE bypass policies
Martin Willi [Mon, 15 Apr 2013 14:53:41 +0000 (16:53 +0200)] 
kernel-utun: use PF_KEY style setsockopts to create IKE bypass policies

12 years agokernel-utun: succeed UDP decapsulation call, as add_sa() does this for us
Martin Willi [Mon, 15 Apr 2013 14:54:27 +0000 (16:54 +0200)] 
kernel-utun: succeed UDP decapsulation call, as add_sa() does this for us

12 years agokernel-utun: filter address enumeration based on passed "which" flags
Martin Willi [Mon, 15 Apr 2013 14:43:42 +0000 (16:43 +0200)] 
kernel-utun: filter address enumeration based on passed "which" flags

12 years agokernel-utun: specify NATT port when installing an SA with UDP encapsulation
Martin Willi [Mon, 15 Apr 2013 13:36:53 +0000 (15:36 +0200)] 
kernel-utun: specify NATT port when installing an SA with UDP encapsulation

12 years agokernel-utun: set a lower MTU and up() utun after installing address
Martin Willi [Mon, 15 Apr 2013 13:34:50 +0000 (15:34 +0200)] 
kernel-utun: set a lower MTU and up() utun after installing address

12 years agokernel-utun: start traffic forwarding after enabling crypto on utun
Martin Willi [Mon, 15 Apr 2013 13:33:36 +0000 (15:33 +0200)] 
kernel-utun: start traffic forwarding after enabling crypto on utun

12 years agokernel-utun: implement address enumeration, currently without support for kind
Martin Willi [Fri, 12 Apr 2013 14:29:03 +0000 (16:29 +0200)] 
kernel-utun: implement address enumeration, currently without support for kind

12 years agokernel-utun: allocate SPI from kernel, create utun before doing so
Martin Willi [Fri, 12 Apr 2013 13:48:53 +0000 (15:48 +0200)] 
kernel-utun: allocate SPI from kernel, create utun before doing so

12 years agokernel-utun: add_sa() installs SA to utun
Martin Willi [Fri, 12 Apr 2013 11:56:03 +0000 (13:56 +0200)] 
kernel-utun: add_sa() installs SA to utun

12 years agokernel-utun: enable utun crypto extensions when creating utun device
Martin Willi [Fri, 12 Apr 2013 11:33:15 +0000 (13:33 +0200)] 
kernel-utun: enable utun crypto extensions when creating utun device

12 years agokernel-utun: Add a globally accessible enumerator for known utun devices
Martin Willi [Fri, 12 Apr 2013 11:12:02 +0000 (13:12 +0200)] 
kernel-utun: Add a globally accessible enumerator for known utun devices

12 years agokernel-utun: support multiple tun devices, one for each virtual IP
Martin Willi [Fri, 12 Apr 2013 11:07:09 +0000 (13:07 +0200)] 
kernel-utun: support multiple tun devices, one for each virtual IP

12 years agokernel-utun: create a tun device when installing virtual IPs
Martin Willi [Fri, 12 Apr 2013 10:36:39 +0000 (12:36 +0200)] 
kernel-utun: create a tun device when installing virtual IPs

12 years agokernel-utun: do interface lookup using getifaddrs()
Martin Willi [Fri, 12 Apr 2013 10:29:48 +0000 (12:29 +0200)] 
kernel-utun: do interface lookup using getifaddrs()

12 years agokernel-utun: support SPI allocation directly in kernel-ipsec
Martin Willi [Fri, 12 Apr 2013 10:05:36 +0000 (12:05 +0200)] 
kernel-utun: support SPI allocation directly in kernel-ipsec

12 years agokernel-utun: Add a stub for an OS X kernel backend using crypto-enabled utun
Martin Willi [Fri, 12 Apr 2013 09:50:06 +0000 (11:50 +0200)] 
kernel-utun: Add a stub for an OS X kernel backend using crypto-enabled utun

12 years agotun_device: add a getter for the address previously passed to set_address()
Martin Willi [Fri, 12 Apr 2013 11:03:21 +0000 (13:03 +0200)] 
tun_device: add a getter for the address previously passed to set_address()

12 years agotun_device: Add a getter for the underlying file descriptor
Martin Willi [Fri, 12 Apr 2013 10:42:14 +0000 (12:42 +0200)] 
tun_device: Add a getter for the underlying file descriptor

12 years agochild-sa: pass traffic selector to add_sa() regardless of IPsec mode
Martin Willi [Fri, 12 Apr 2013 11:19:59 +0000 (13:19 +0200)] 
child-sa: pass traffic selector to add_sa() regardless of IPsec mode

This lets the kernel backend decide what to do with it, and in fact all kernel
interfaces already handle this correctly.

12 years agosocket-default: to bind to one dynamic port on OS X, create v4 socket before v6
Martin Willi [Thu, 11 Apr 2013 18:22:06 +0000 (20:22 +0200)] 
socket-default: to bind to one dynamic port on OS X, create v4 socket before v6

It seems that the order of binding sockets of different address families to the
same dynamic port must be v6-before-v4 on Linux, but v4-before-v6 on OS X.

12 years ago.gitignore: add OS X .DS_Store files
Martin Willi [Thu, 11 Apr 2013 15:34:44 +0000 (17:34 +0200)] 
.gitignore: add OS X .DS_Store files

12 years agohost: initialize sockaddr->sa_len if it is available
Martin Willi [Wed, 20 Mar 2013 17:15:26 +0000 (18:15 +0100)] 
host: initialize sockaddr->sa_len if it is available

12 years agokernel-pfroute: fix length check when receiving PF_ROUTE messages
Martin Willi [Wed, 17 Apr 2013 12:48:58 +0000 (14:48 +0200)] 
kernel-pfroute: fix length check when receiving PF_ROUTE messages

12 years agokernel-netlink: remove obsolete pluto specific behavior
Martin Willi [Fri, 12 Apr 2013 09:32:05 +0000 (11:32 +0200)] 
kernel-netlink: remove obsolete pluto specific behavior

12 years agosocket-default: refactor socket pair opening to a function
Martin Willi [Thu, 11 Apr 2013 18:19:57 +0000 (20:19 +0200)] 
socket-default: refactor socket pair opening to a function

12 years agosocket-default: Don't try to send packet if we haven't a socket for given family
Martin Willi [Thu, 11 Apr 2013 17:47:28 +0000 (19:47 +0200)] 
socket-default: Don't try to send packet if we haven't a socket for given family

12 years agosocket-default: Use -1 if socket is not available, as 0 is actually a valid fd
Martin Willi [Thu, 11 Apr 2013 17:40:31 +0000 (19:40 +0200)] 
socket-default: Use -1 if socket is not available, as 0 is actually a valid fd

12 years agotun-device: use host_create_netmask() to calculate interface netmask
Martin Willi [Tue, 16 Apr 2013 10:09:18 +0000 (12:09 +0200)] 
tun-device: use host_create_netmask() to calculate interface netmask

12 years agohost: add a netmask constructor taking the number of network bits
Martin Willi [Tue, 16 Apr 2013 10:08:38 +0000 (12:08 +0200)] 
host: add a netmask constructor taking the number of network bits

12 years agohost: remove unused host_t.get_differences() method
Martin Willi [Mon, 15 Apr 2013 14:27:31 +0000 (16:27 +0200)] 
host: remove unused host_t.get_differences() method

12 years agohost: print %#H format specifiers not as %any, but with the port
Martin Willi [Thu, 11 Apr 2013 17:51:45 +0000 (19:51 +0200)] 
host: print %#H format specifiers not as %any, but with the port

12 years agosemaphore: similar to thread_create(), semaphore_create() is used by Mach
Martin Willi [Thu, 11 Apr 2013 17:20:33 +0000 (19:20 +0200)] 
semaphore: similar to thread_create(), semaphore_create() is used by Mach

The compiler spits no warning, but the wrong symbol is used when calling
semaphore_create() from strongSwan. Override the name with a #define to force
the use of our semaphore_create().

12 years agocharon-cmd: Use dynamic ports with the socket-default plugin
Martin Willi [Thu, 11 Apr 2013 17:27:27 +0000 (19:27 +0200)] 
charon-cmd: Use dynamic ports with the socket-default plugin

12 years agosettings: Add a set_default_str() to set a different default for a key
Martin Willi [Thu, 11 Apr 2013 17:23:29 +0000 (19:23 +0200)] 
settings: Add a set_default_str() to set a different default for a key

The value is set only if it is not configured in strongswan.conf or has
not been set() otherwise.

12 years agocharon-cmd: prompt for EAP passwords on-demand using a callback credential set
Martin Willi [Tue, 26 Mar 2013 17:04:27 +0000 (18:04 +0100)] 
charon-cmd: prompt for EAP passwords on-demand using a callback credential set

12 years agocharon-cmd: authenticate with EAP if no private key is given
Martin Willi [Tue, 26 Mar 2013 16:47:28 +0000 (17:47 +0100)] 
charon-cmd: authenticate with EAP if no private key is given

12 years agocharon-cmd: pass arguments to all handlers, even if already handled
Martin Willi [Tue, 26 Mar 2013 16:38:02 +0000 (17:38 +0100)] 
charon-cmd: pass arguments to all handlers, even if already handled

12 years agocharon-cmd: build long_opts only once when reading arguments in charon-cmd
Martin Willi [Tue, 26 Mar 2013 16:36:31 +0000 (17:36 +0100)] 
charon-cmd: build long_opts only once when reading arguments in charon-cmd

12 years agocharon-cmd: add support for using dynamic ports in charon-cmd
Martin Willi [Tue, 26 Mar 2013 16:28:40 +0000 (17:28 +0100)] 
charon-cmd: add support for using dynamic ports in charon-cmd

12 years agosocket-dynamic: when sending from port zero, allocate a free port dynamically
Martin Willi [Tue, 26 Mar 2013 16:23:38 +0000 (17:23 +0100)] 
socket-dynamic: when sending from port zero, allocate a free port dynamically

12 years agocontroller: clean up job data if a thread gets cancelled waiting in a function
Martin Willi [Tue, 26 Mar 2013 15:19:00 +0000 (16:19 +0100)] 
controller: clean up job data if a thread gets cancelled waiting in a function

Controller functions are thread cancellation points, so register a cancellation
handler cleaning up job data.

12 years agocharon-cmd: load certificates and RSA private keys
Martin Willi [Tue, 26 Mar 2013 14:42:06 +0000 (15:42 +0100)] 
charon-cmd: load certificates and RSA private keys

12 years agocharon-cmd: add a connection object and its initiation to charon-cmd
Martin Willi [Tue, 26 Mar 2013 14:07:15 +0000 (15:07 +0100)] 
charon-cmd: add a connection object and its initiation to charon-cmd

12 years agocharon-cmd: move command line options to separate file, obsolete short options
Martin Willi [Tue, 26 Mar 2013 13:10:00 +0000 (14:10 +0100)] 
charon-cmd: move command line options to separate file, obsolete short options

12 years agocharon-cmd: add a stub for charon-cmd, a simple command line IKE client
Martin Willi [Tue, 26 Mar 2013 10:26:22 +0000 (11:26 +0100)] 
charon-cmd: add a stub for charon-cmd, a simple command line IKE client

12 years agoeap-radius: Add an option to exclude ports from Called/Calling-Station-Id
Martin Willi [Thu, 4 Apr 2013 14:05:05 +0000 (16:05 +0200)] 
eap-radius: Add an option to exclude ports from Called/Calling-Station-Id

12 years agoversion bump to 5.0.4dr1
Andreas Steffen [Tue, 9 Apr 2013 13:20:49 +0000 (15:20 +0200)] 
version bump to 5.0.4dr1

12 years agofixed another printf statement
Andreas Steffen [Tue, 9 Apr 2013 13:16:49 +0000 (15:16 +0200)] 
fixed another printf statement

12 years agofixed printf statements
Andreas Steffen [Mon, 8 Apr 2013 20:21:14 +0000 (22:21 +0200)] 
fixed printf statements

12 years agoemit a single assig_vips bus message for all VIPs
Andreas Steffen [Sat, 6 Apr 2013 12:16:30 +0000 (14:16 +0200)] 
emit a single assig_vips bus message for all VIPs

12 years agoifmap plugin subscribes to assing_vip bus signal
Andreas Steffen [Thu, 4 Apr 2013 11:40:57 +0000 (13:40 +0200)] 
ifmap plugin subscribes to assing_vip bus signal

12 years agoAdded missing sasl Doxygen group
Tobias Brunner [Fri, 5 Apr 2013 12:54:29 +0000 (14:54 +0200)] 
Added missing sasl Doxygen group

12 years agounity: Check IKE_SA in only after enumerating virtual IPs
Tobias Brunner [Fri, 5 Apr 2013 11:45:04 +0000 (13:45 +0200)] 
unity: Check IKE_SA in only after enumerating virtual IPs

12 years agofixed configure options 5.0.3
Andreas Steffen [Thu, 4 Apr 2013 19:09:07 +0000 (21:09 +0200)] 
fixed configure options

12 years agocleaned up XML code in tnccs-11 plugin
Andreas Steffen [Thu, 4 Apr 2013 15:12:00 +0000 (17:12 +0200)] 
cleaned up XML code in tnccs-11 plugin

12 years agoduplicheck: track multiple IKE_SAs in checking state to avoid any races
Martin Willi [Thu, 4 Apr 2013 13:43:37 +0000 (15:43 +0200)] 
duplicheck: track multiple IKE_SAs in checking state to avoid any races

When two consequent duplicates have been detected, track state of each checking
IKE_SA separately, avoiding potential race conditions between the active SA
and the different SAs in checking state.

12 years agofixed memory leak
Andreas Steffen [Wed, 3 Apr 2013 19:29:04 +0000 (21:29 +0200)] 
fixed memory leak

12 years agoproperly handle orphaned renewSession jobs
Andreas Steffen [Wed, 3 Apr 2013 14:44:44 +0000 (16:44 +0200)] 
properly handle orphaned renewSession jobs

12 years agosupport chunked HTTP responses
Andreas Steffen [Wed, 3 Apr 2013 10:08:52 +0000 (12:08 +0200)] 
support chunked HTTP responses

12 years agoimplemented periodic IF-MAP RenewSession request
Andreas Steffen [Tue, 2 Apr 2013 14:49:53 +0000 (16:49 +0200)] 
implemented periodic IF-MAP RenewSession request

12 years agoRefactor check_for_rekeyed_child() in quick_mode task
Martin Willi [Wed, 3 Apr 2013 15:08:00 +0000 (17:08 +0200)] 
Refactor check_for_rekeyed_child() in quick_mode task

12 years agoReuse reqid of an existing Quick Mode, even if it has been rekeyed
Martin Willi [Wed, 3 Apr 2013 13:56:26 +0000 (15:56 +0200)] 
Reuse reqid of an existing Quick Mode, even if it has been rekeyed

If two peers rekey Quick Modes at the same time, the original Quick Mode is
in REKEYING state and hence the requid is not reused. This is required though,
as two identical policies won't work if they have different requids.

12 years agoList all stroke counters when "all" is given, and report if connection not known
Martin Willi [Wed, 3 Apr 2013 12:58:08 +0000 (14:58 +0200)] 
List all stroke counters when "all" is given, and report if connection not known

12 years agoDefer CHILD_SA rekeying if allocating an SPI fails
Martin Willi [Wed, 3 Apr 2013 10:16:27 +0000 (12:16 +0200)] 
Defer CHILD_SA rekeying if allocating an SPI fails

12 years agoAccept a certificate/key pair to use client authentication in tls_test
Martin Willi [Tue, 2 Apr 2013 14:09:17 +0000 (16:09 +0200)] 
Accept a certificate/key pair to use client authentication in tls_test

12 years agoversion bump to 5.0.3
Andreas Steffen [Tue, 2 Apr 2013 06:55:33 +0000 (08:55 +0200)] 
version bump to 5.0.3

12 years agoallow retrieval of private keys from other credential sets
Andreas Steffen [Mon, 1 Apr 2013 20:32:20 +0000 (22:32 +0200)] 
allow retrieval of private keys from other credential sets

12 years agoimprove checking of sent and received http messages
Andreas Steffen [Mon, 1 Apr 2013 20:31:44 +0000 (22:31 +0200)] 
improve checking of sent and received http messages

12 years agoUpdated strongswan.conf(5) man page
Tobias Brunner [Mon, 1 Apr 2013 12:35:39 +0000 (14:35 +0200)] 
Updated strongswan.conf(5) man page

12 years agoLoad raw keys before possibly destroying the identity
Tobias Brunner [Mon, 1 Apr 2013 11:46:23 +0000 (13:46 +0200)] 
Load raw keys before possibly destroying the identity

If no identity (or %any) is configured the identification_t object is
destroyed and an invalid object was associated with the created pubkey
certificate.
Actually using %any does not work as the certificate would not match
when the client later provides an identity.

12 years agoipseckey: Use proper daemon name for enable option
Tobias Brunner [Mon, 1 Apr 2013 11:45:11 +0000 (13:45 +0200)] 
ipseckey: Use proper daemon name for enable option

12 years agoProperly handle situation if no resolver plugins are loaded
Tobias Brunner [Mon, 1 Apr 2013 11:44:04 +0000 (13:44 +0200)] 
Properly handle situation if no resolver plugins are loaded

12 years agofixed capability metadata
Andreas Steffen [Sun, 31 Mar 2013 20:15:42 +0000 (22:15 +0200)] 
fixed capability metadata

12 years agofix start of wpa_supplicant
Andreas Steffen [Sun, 31 Mar 2013 17:48:00 +0000 (19:48 +0200)] 
fix start of wpa_supplicant

12 years agoupdated strongswan.conf man page for tn_ifmap plugin
Andreas Steffen [Sun, 31 Mar 2013 17:05:53 +0000 (19:05 +0200)] 
updated strongswan.conf man page for tn_ifmap plugin

12 years agorenamed tnc_ifmap2 plugin to tnc_ifmap
Andreas Steffen [Sun, 31 Mar 2013 14:37:30 +0000 (16:37 +0200)] 
renamed tnc_ifmap2 plugin to tnc_ifmap

12 years agoremoved obsoleted tnc_ifmap plugin
Andreas Steffen [Sun, 31 Mar 2013 14:07:08 +0000 (16:07 +0200)] 
removed obsoleted tnc_ifmap plugin

12 years agoimplemented http basic authentication
Andreas Steffen [Sun, 31 Mar 2013 13:59:32 +0000 (15:59 +0200)] 
implemented http basic authentication

12 years agoparse IF-MAP server URI
Andreas Steffen [Sun, 31 Mar 2013 09:39:06 +0000 (11:39 +0200)] 
parse IF-MAP server URI

12 years agoimplemented publish_enforcement_report and endSession methods
Andreas Steffen [Sat, 30 Mar 2013 12:19:27 +0000 (13:19 +0100)] 
implemented publish_enforcement_report and endSession methods

12 years agoimplemented publish_ike_sa method
Andreas Steffen [Sat, 30 Mar 2013 08:15:16 +0000 (09:15 +0100)] 
implemented publish_ike_sa method

12 years agoifmap message type is known
Andreas Steffen [Sat, 30 Mar 2013 07:22:33 +0000 (08:22 +0100)] 
ifmap message type is known

12 years agoimplemented publish_device_ip method
Andreas Steffen [Sat, 30 Mar 2013 07:11:10 +0000 (08:11 +0100)] 
implemented publish_device_ip method

12 years agoadded IF-MAP SOAP error handling
Andreas Steffen [Sat, 30 Mar 2013 07:10:39 +0000 (08:10 +0100)] 
added IF-MAP SOAP error handling

12 years agocreated tnc_ifmap2_soap_msg class
Andreas Steffen [Fri, 29 Mar 2013 22:09:11 +0000 (23:09 +0100)] 
created tnc_ifmap2_soap_msg class

12 years agoimplement NewSession and PurgePublisher messages using the libxml2 library
Andreas Steffen [Fri, 29 Mar 2013 21:29:12 +0000 (22:29 +0100)] 
implement NewSession and PurgePublisher messages using the libxml2 library

12 years agoset up a new IF-MAP session
Andreas Steffen [Fri, 29 Mar 2013 08:42:06 +0000 (09:42 +0100)] 
set up a new IF-MAP session

12 years agofixed typo
Andreas Steffen [Wed, 27 Mar 2013 21:56:37 +0000 (22:56 +0100)] 
fixed typo

12 years agoFixed Doxygen comment in eap_radius plugin
Tobias Brunner [Wed, 27 Mar 2013 10:07:06 +0000 (11:07 +0100)] 
Fixed Doxygen comment in eap_radius plugin

12 years agoFix detection and use of netinet/ip6.h on FreeBSD
Tobias Brunner [Wed, 27 Mar 2013 08:56:48 +0000 (09:56 +0100)] 
Fix detection and use of netinet/ip6.h on FreeBSD

12 years agoDon't set USE_ATTR_SQL when the sql plugin is enabled only
Tobias Brunner [Wed, 27 Mar 2013 06:47:53 +0000 (07:47 +0100)] 
Don't set USE_ATTR_SQL when the sql plugin is enabled only

12 years agoMake some private functions in plugins static
Tobias Brunner [Wed, 27 Mar 2013 06:31:57 +0000 (07:31 +0100)] 
Make some private functions in plugins static

Fixes monolithic build.

12 years agoUse new strongSwan HA kernel patchset keeping iptables ABI
Martin Willi [Fri, 22 Mar 2013 10:33:51 +0000 (11:33 +0100)] 
Use new strongSwan HA kernel patchset keeping iptables ABI

Allows us to install stock debian iptables without the need for patching and
compiling our own.