Tobias Brunner [Tue, 24 Jun 2014 14:15:48 +0000 (16:15 +0200)]
swid: Fix parameter documentation in Doxygen comments
Tobias Brunner [Tue, 24 Jun 2014 14:14:38 +0000 (16:14 +0200)]
windows: Fix parameter name in Doxygen comment
Tobias Brunner [Tue, 24 Jun 2014 14:13:57 +0000 (16:13 +0200)]
enum: Replace þ with p in Doxygen comments
Tobias Brunner [Tue, 24 Jun 2014 14:10:56 +0000 (16:10 +0200)]
libvici: Add missing argument to Doxygen comment
Tobias Brunner [Tue, 24 Jun 2014 14:10:14 +0000 (16:10 +0200)]
starter: Add starter group and fix formatting of conf_parser_section_t enum
Make use of the Markdown support in recent Doxygen versions.
Tobias Brunner [Tue, 24 Jun 2014 14:09:09 +0000 (16:09 +0200)]
swanctl: Fix Doxygen group assignment
Tobias Brunner [Tue, 24 Jun 2014 14:03:16 +0000 (16:03 +0200)]
apidoc: Updated Doxyfile.in
Tobias Brunner [Tue, 24 Jun 2014 13:57:15 +0000 (15:57 +0200)]
Fixed some typos
Andreas Steffen [Fri, 27 Jun 2014 08:07:27 +0000 (10:07 +0200)]
Update KVM test framework to 3.15 guest kernel
Andreas Steffen [Fri, 27 Jun 2014 06:27:23 +0000 (08:27 +0200)]
Added Android 4.4.4 to IMV database
Tobias Brunner [Thu, 26 Jun 2014 16:11:23 +0000 (18:11 +0200)]
testing: Add sql/shunt-policies-nat-rw scenario
Tobias Brunner [Thu, 26 Jun 2014 13:46:39 +0000 (15:46 +0200)]
testing: Add pfkey/shunt-policies-nat-rw scenario
Tobias Brunner [Thu, 26 Jun 2014 14:38:28 +0000 (16:38 +0200)]
kernel-pfkey: Use address in TS to determine interface for shunt routes
Tobias Brunner [Thu, 26 Jun 2014 13:44:54 +0000 (15:44 +0200)]
kernel-pfkey: Use subnet and prefix when determining nexthop for shunt policy routes
This is basically the same as
88f125f5605e54b38cf8913df79e32ec6bddff10.
Tobias Brunner [Thu, 26 Jun 2014 13:44:32 +0000 (15:44 +0200)]
kernel-pfkey: Install routes for shunt policies
Tobias Brunner [Thu, 26 Jun 2014 13:22:20 +0000 (15:22 +0200)]
testing: Remove obsolete shunt-policies scenarios
Tobias Brunner [Thu, 26 Jun 2014 10:23:05 +0000 (12:23 +0200)]
starter: Ingore %default conn and ca sections
Andreas Steffen [Thu, 26 Jun 2014 09:09:25 +0000 (11:09 +0200)]
Updated build-database.sh to 3.13.0-30-generic Ubuntu kernel
Andreas Steffen [Thu, 26 Jun 2014 07:47:03 +0000 (09:47 +0200)]
Updated description of TNC scenarios concerning RFC 7171 PT-EAP support
Andreas Steffen [Thu, 26 Jun 2014 07:45:54 +0000 (09:45 +0200)]
Removed django.db from swid scenarios
Tobias Brunner [Mon, 16 Jun 2014 13:34:05 +0000 (15:34 +0200)]
updown: Force subnet address to be numeric
Martin Willi [Wed, 25 Jun 2014 14:06:59 +0000 (16:06 +0200)]
windows: Include <sys/stat.h> explicitly before overloading memset()/memcpy()
fstat() in newer MinGWs is defined as non-static inline. With our new static
inline memset()/memcpy() overloads, this raises a warning. To avoid it,
explicitly include <sys/stat.h> once before defining these overloads.
Martin Willi [Wed, 25 Jun 2014 11:09:20 +0000 (13:09 +0200)]
eap-radius: Increase buffer for accounting attributes to maximum attribute size
Fixes #624.
Tobias Brunner [Tue, 24 Jun 2014 13:43:49 +0000 (15:43 +0200)]
kernel-netlink: Cast IPv6 address blobs to the proper type
On Android these macros are defined as functions.
Tobias Brunner [Thu, 5 Jun 2014 08:17:09 +0000 (10:17 +0200)]
android: Define HAVE_DLADDR as plugin loader checks for it
Tobias Brunner [Tue, 24 Jun 2014 13:33:17 +0000 (15:33 +0200)]
android: Update Android.mk files to match changes due to the Windows port
Makes them easier to compare to the original Makefile.am.
Martin Willi [Tue, 24 Jun 2014 12:43:38 +0000 (14:43 +0200)]
charon: Set CLOEXEC flag on daemon PID file and /dev/(u)random source FDs
On Fedora, SELinux complains about these open file descriptors when the
updown script invokes iptables. While it seems difficult to set the flag
on all file descriptors, this at least fixes those covered by the SELinux
policy.
As these two cases are in code executed while the daemon is still single
threaded, we avoid the use of atomic but not fully portable fdopen("e") or
open(O_CLOEXEC) calls.
Fixes #519.
Tobias Brunner [Tue, 24 Jun 2014 12:52:42 +0000 (14:52 +0200)]
utils: Add wrappers for memcpy(3), memmove(3) and memset(3)
These wrappers guarantee that calls to these functions are noops if the
number of bytes is 0, as calling them with NULL pointers is undefined
according to the C standard, even if the number of bytes is 0 (most
implementations probably ignore the pointers anyway in this case, but
lets make sure).
Tobias Brunner [Fri, 20 Jun 2014 15:55:48 +0000 (17:55 +0200)]
pki: Also check for MAX_COMMANDS when building getopt_long arguments
Completes
87e53819a6 and
0a8c399a21.
Andreas Steffen [Mon, 23 Jun 2014 11:32:50 +0000 (13:32 +0200)]
Auxiliary swid_tagstats table boosts performance
Tobias Brunner [Fri, 20 Jun 2014 14:22:15 +0000 (16:22 +0200)]
Merge branch 'algorithm-order'
Restores the behavior we had before
2e22333fb (except for RNGs), that is,
algorithms are stored in the registration order again. Which is not optimal
as we must rely on plugins to register them in a sensible order, but ordering
them by identifier definitely caused weaker algorithms to be proposed first
in the default proposal, which was even worse.
Tobias Brunner [Wed, 18 Jun 2014 15:25:47 +0000 (17:25 +0200)]
unit-tests: Add tests for DH factory
Tobias Brunner [Fri, 20 Jun 2014 07:07:05 +0000 (09:07 +0200)]
crypto-factory: Only sort RNGs by algorithm identifier
Others remain in the order in which they were added, grouped by
algorithm identifier and sorted by benchmarking speed, if provided.
Tobias Brunner [Tue, 6 May 2014 17:56:17 +0000 (19:56 +0200)]
unit-tests: Add test for crypto_factory_t's rng_create method
Tobias Brunner [Fri, 20 Jun 2014 06:51:07 +0000 (08:51 +0200)]
kernel-netlink: Install virtual IPv6 addresses as deprecated
This should prevent the kernel's IPv6 source address selection algorithm
from using this address unless it is forced to by our source route.
This is helpful if split tunneling is used.
Fixes #598.
Tobias Brunner [Thu, 19 Jun 2014 12:41:37 +0000 (14:41 +0200)]
vici: Install libvici in ipseclibdir like we do with other libraries
Tobias Brunner [Thu, 19 Jun 2014 12:33:50 +0000 (14:33 +0200)]
Merge branch 'shunt-policies-routes'
Fixes #599.
Tobias Brunner [Wed, 18 Jun 2014 08:10:25 +0000 (10:10 +0200)]
kernel-netlink: Pass prefix when looking up next hop for shunt policies
Tobias Brunner [Wed, 18 Jun 2014 07:58:01 +0000 (09:58 +0200)]
kernel-netlink: Add support for destination prefix when determining next hop
Tobias Brunner [Wed, 18 Jun 2014 07:55:39 +0000 (09:55 +0200)]
kernel-interface: Add destination prefix to get_nexthop()
This allows to determine the next hop to reach a subnet, for instance, when
installing routes for shunt policies.
Tobias Brunner [Thu, 19 Jun 2014 12:24:48 +0000 (14:24 +0200)]
Merge branch 'passthrough-policies-priority'
Introduces a new priority class for policies, which allows us to install
passthrough policies with a strictly higher priority than IPsec
policies, which was not the case previously depending on the traffic
selectors.
Tobias Brunner [Thu, 19 Jun 2014 11:37:05 +0000 (13:37 +0200)]
testing: Add ikev2/shunt-policies-nat-rw scenario
Tobias Brunner [Thu, 19 Jun 2014 11:38:49 +0000 (13:38 +0200)]
testing: Remove ikev2/shunt-policies scenario
This scenario doesn't really apply anymore (especially its use of drop
policies).
Tobias Brunner [Tue, 13 May 2014 10:20:27 +0000 (12:20 +0200)]
shunt-manager: Install passthrough policies with highest priority
This avoids conflicts with regular IPsec policies.
Similarly, use the lowest priority for drop policies.
Tobias Brunner [Tue, 13 May 2014 10:20:02 +0000 (12:20 +0200)]
libipsec: Add support for new policy priority class
Tobias Brunner [Tue, 13 May 2014 10:19:41 +0000 (12:19 +0200)]
kernel-pfkey: Add support for new policy priority class
Tobias Brunner [Tue, 13 May 2014 10:17:09 +0000 (12:17 +0200)]
kernel-netlink: Add support for new policy priority class
Tobias Brunner [Tue, 13 May 2014 10:16:33 +0000 (12:16 +0200)]
ipsec: Add a fourth priority class for bypass policies
Tobias Brunner [Tue, 13 May 2014 09:18:40 +0000 (11:18 +0200)]
Remove kernel-klips plugin
Tobias Brunner [Fri, 14 Mar 2014 14:41:52 +0000 (15:41 +0100)]
kernel-netlink: Follow RFC 6724 when selecting IPv6 source addresses
Instead of using the first address we find on an interface we should
consider properties like an address' scope or whether it is temporary
or public.
Fixes #543.
Tobias Brunner [Thu, 19 Jun 2014 12:04:33 +0000 (14:04 +0200)]
Merge branch 'ipsec.conf-parser'
Replaces the ipsec.conf parser in starter. The new parser is also based
on flex/bison but it simply returns key/value collections of all sections.
It already resolves also= and allows overriding options in all included
sections (not only %default), options set in included section can also
be cleared again (key=). It provides other improvements too, like quoted
strings (with escape sequences), unlimited includes and better
whitespace/comment handling.
Fixes #423.
Fixes #560.
Tobias Brunner [Thu, 19 Jun 2014 09:58:15 +0000 (11:58 +0200)]
starter: Don't directly refer to source files in Makefile for unit tests
Older versions of automake have trouble recursively cleaning such
constructs properly.
Tobias Brunner [Wed, 18 Jun 2014 13:11:32 +0000 (15:11 +0200)]
starter: Explicitly allow @# at the beginning of strings
Since we treat everything after # as comment identities of type
ID_KEY_ID couldn't be parsed otherwise, unless quoted.
Tobias Brunner [Wed, 18 Jun 2014 09:31:49 +0000 (11:31 +0200)]
starter: Add --conftest option to test ipsec.conf syntax
Tobias Brunner [Wed, 21 May 2014 13:06:12 +0000 (15:06 +0200)]
starter: Remove old parser
Tobias Brunner [Wed, 21 May 2014 12:51:44 +0000 (14:51 +0200)]
starter: Use new parser to read config file
Tobias Brunner [Wed, 21 May 2014 12:36:46 +0000 (14:36 +0200)]
starter: Move kw_entry_t definition
Tobias Brunner [Wed, 21 May 2014 11:36:24 +0000 (13:36 +0200)]
starter: Remove unused ARG_LST argument type
Tobias Brunner [Tue, 20 May 2014 16:16:48 +0000 (18:16 +0200)]
starter: Add tests for ipsec.conf parser
Tobias Brunner [Tue, 20 May 2014 17:27:50 +0000 (19:27 +0200)]
unit-tests: Make fixture functions optional
Tobias Brunner [Tue, 20 May 2014 16:15:13 +0000 (18:15 +0200)]
starter: Add new bison/flex based parser for ipsec.conf
The parser simply returns key/value pairs of all sections, it already
resolves also= and allows overriding options in all included sections
(not only %default), options set in included section can also be cleared
again (key=).
It provides other improvements too, like quoted strings (with escape
sequences), unlimited includes and better whitespace/comment handling.
Tobias Brunner [Tue, 20 May 2014 14:40:39 +0000 (16:40 +0200)]
starter: Remove out of date README
Tobias Brunner [Fri, 16 May 2014 09:53:08 +0000 (11:53 +0200)]
collections: Add interface for read-only dictionaries
Tobias Brunner [Tue, 27 Aug 2013 14:37:41 +0000 (16:37 +0200)]
hashtable: Add destroy_function method
Tobias Brunner [Thu, 20 Feb 2014 16:27:54 +0000 (17:27 +0100)]
stroke: Add --daemon option
Tobias Brunner [Thu, 20 Feb 2014 15:17:11 +0000 (16:17 +0100)]
starter: Use stream abstraction to communicate with stroke plugin
Tobias Brunner [Thu, 20 Feb 2014 15:04:36 +0000 (16:04 +0100)]
stroke: Use stream abstraction to communicate with stroke plugin
Without this changing charon.plugins.stroke.socket would not really
work.
Martin Willi [Thu, 19 Jun 2014 09:09:20 +0000 (11:09 +0200)]
winhttp: Fix a typo to properly release connection handle
Fixes a rather large memory leak in HTTP fetches.
Martin Willi [Thu, 19 Jun 2014 08:48:27 +0000 (10:48 +0200)]
load-tester: Add a crl option to include a CRL uri in generated certificates
Martin Willi [Thu, 19 Jun 2014 08:10:54 +0000 (10:10 +0200)]
bus: Properly va_copy() argument list before passing it to printf() functions
As we later potentially use args again, we can't consume it with printf
functions without copying it first. Clone list before passing it to any
consuming function.
Fixes #621.
Martin Willi [Wed, 18 Jun 2014 14:50:18 +0000 (16:50 +0200)]
child-sa: Set replay window on both inbound and outbound SA
While the outbound SA actually does not need a replay window, the kernel rejects
zero replay windows on SAs using ESN. The ESN flag is required to use the full
sequence number in ICV calculation, hence we set the replay window.
This restores the behavior we had before
30c009c2.
Martin Willi [Wed, 18 Jun 2014 12:57:21 +0000 (14:57 +0200)]
kernel-netlink: Never use XFRMA_REPLAY_ESN_VAL to configure zero replay windows
Trying to disable replay windows using the ESN attribute fails with EINVAL.
Use non-ESN legacy format to disable replay windows, even if ESN has been
negotiated over IKE.
Andreas Steffen [Wed, 18 Jun 2014 12:57:33 +0000 (14:57 +0200)]
Added swanctl/net2net-route scenario
Andreas Steffen [Wed, 18 Jun 2014 12:35:59 +0000 (14:35 +0200)]
Added swanctl/net2net-start scenario
Andreas Steffen [Wed, 18 Jun 2014 12:35:36 +0000 (14:35 +0200)]
Minor changes in swanctl scenarios
Andreas Steffen [Wed, 18 Jun 2014 12:01:02 +0000 (14:01 +0200)]
The policy_started check is not needed any more
Andreas Steffen [Wed, 18 Jun 2014 11:16:18 +0000 (13:16 +0200)]
Added swanctl --list-pols and swanctl --stats do scenario log
Tobias Brunner [Wed, 18 Jun 2014 07:36:08 +0000 (09:36 +0200)]
testing: Delete accidentally committed test cases
Tobias Brunner [Fri, 16 May 2014 08:39:22 +0000 (10:39 +0200)]
ikev1: Allow late connection switching based on XAuth username
Tobias Brunner [Mon, 5 May 2014 11:55:15 +0000 (13:55 +0200)]
identification: Only use either , or / to separate RDNs
If a DN starts with a slash (or whitespace and a slash) slashes will
be used, otherwise commas.
Tobias Brunner [Thu, 3 Apr 2014 07:23:55 +0000 (09:23 +0200)]
sshkey: Fix loading of ECDSA keys from files
Tobias Brunner [Thu, 3 Apr 2014 07:21:43 +0000 (09:21 +0200)]
sshkey: Add support to parse SSH public keys from files with left|rightsigkey
Martin Willi [Tue, 17 Jun 2014 15:56:05 +0000 (17:56 +0200)]
Merge branch 'vici-stats'
Add a vici/swanctl "stats" command to print daemon info, similar to the header
shown in "ipsec statusall".
Martin Willi [Wed, 11 Jun 2014 14:50:59 +0000 (16:50 +0200)]
vici: Support memory stats without leak-detective on Windows
Martin Willi [Wed, 11 Jun 2014 14:19:38 +0000 (16:19 +0200)]
swanctl: Add a --stats command to print daemon infos and statistics
Martin Willi [Wed, 11 Jun 2014 14:07:40 +0000 (16:07 +0200)]
vici: Add a stats command returning various daemon infos and statistics
Martin Willi [Wed, 4 Jun 2014 08:37:59 +0000 (10:37 +0200)]
swanctl: Support private key decryption passhprases in swanctl.conf
While there is no real security benefit of storing private keys encrypted if
the passphrase is stored along with it, there still seems to be demand for this
functionality. We add it for compatibility with ipsec.secrets, even if it is
not really recommended.
Martin Willi [Tue, 17 Jun 2014 14:50:14 +0000 (16:50 +0200)]
Merge branch 'conn-specific-replay'
Introduces a connection specific replay_window option, overriding the global
charon.replay_window strongswan.conf option. Original patch courtesy of
Zheng Zhong and Christophe Gouault from 6Wind.
Martin Willi [Tue, 17 Jun 2014 14:44:58 +0000 (16:44 +0200)]
NEWS: Mention replay_window ipsec.conf option
Martin Willi [Tue, 17 Jun 2014 14:48:25 +0000 (16:48 +0200)]
swanctl: Document replay_window option
Martin Willi [Mon, 16 Jun 2014 15:41:07 +0000 (17:41 +0200)]
vici: Support a replay_window CHILD_SA option
Martin Willi [Mon, 16 Jun 2014 15:36:13 +0000 (17:36 +0200)]
starter: Add a replay_window connection option
Martin Willi [Mon, 16 Jun 2014 15:33:45 +0000 (17:33 +0200)]
kernel-pfkey: Support connection specific replay window sizes up to 32 packets
Martin Willi [Mon, 16 Jun 2014 15:32:49 +0000 (17:32 +0200)]
kernel-netlink: Support connection specific replay window sizes
Martin Willi [Mon, 16 Jun 2014 15:31:43 +0000 (17:31 +0200)]
kernel-interface: Add a replay_window parameter to add_sa()
Martin Willi [Mon, 16 Jun 2014 15:26:33 +0000 (17:26 +0200)]
child-cfg: Store connection specific replay window on CHILD_SA config
Martin Willi [Tue, 17 Jun 2014 13:24:06 +0000 (15:24 +0200)]
Merge branch 'win-errno'
Improves errno handling for Winsock2 compatibility functions.
Martin Willi [Wed, 11 Jun 2014 15:10:19 +0000 (17:10 +0200)]
windows: Declare strerror_s()
Older MinGW versions seem to miss this function declaration. Fixes build on
Travis using Ubuntu 12.04.
Martin Willi [Wed, 11 Jun 2014 10:07:34 +0000 (12:07 +0200)]
windows: Extend strerror_r/s by extended POSIX errno strings
Martin Willi [Wed, 11 Jun 2014 09:38:52 +0000 (11:38 +0200)]
windows: Implement strerror_r using strerror_s