]> git.ipfire.org Git - people/ms/strongswan.git/log
people/ms/strongswan.git
10 years agolibcharon: Use lib->ns instead of charon->name
Tobias Brunner [Wed, 22 Jan 2014 14:18:58 +0000 (15:18 +0100)] 
libcharon: Use lib->ns instead of charon->name

10 years agolibhydra: Remove unused hydra->daemon
Tobias Brunner [Wed, 22 Jan 2014 13:39:41 +0000 (14:39 +0100)] 
libhydra: Remove unused hydra->daemon

10 years agolibhydra: Use lib->ns instead of hydra->daemon
Tobias Brunner [Wed, 22 Jan 2014 13:35:41 +0000 (14:35 +0100)] 
libhydra: Use lib->ns instead of hydra->daemon

10 years agolibtls: Move settings to <ns>.tls with fallback to libtls
Tobias Brunner [Tue, 28 Jan 2014 16:26:50 +0000 (17:26 +0100)] 
libtls: Move settings to <ns>.tls with fallback to libtls

10 years agoattr-sql: Use namespace for attr-sql config, with fallback
Tobias Brunner [Tue, 28 Jan 2014 15:58:34 +0000 (16:58 +0100)] 
attr-sql: Use namespace for attr-sql config, with fallback

10 years agolib: All settings use configured namespace
Tobias Brunner [Tue, 28 Jan 2014 15:38:06 +0000 (16:38 +0100)] 
lib: All settings use configured namespace

10 years agolib: Add default config fallback for configured namespace
Tobias Brunner [Tue, 28 Jan 2014 15:36:50 +0000 (16:36 +0100)] 
lib: Add default config fallback for configured namespace

All settings in the configured global namespace fall back to libstrongswan.

10 years agounit-tests: Test how settings_t handles some invalid data
Tobias Brunner [Tue, 28 Jan 2014 14:52:09 +0000 (15:52 +0100)] 
unit-tests: Test how settings_t handles some invalid data

10 years agosettings: Add method that allows to define fallback sections for other sections
Tobias Brunner [Tue, 28 Jan 2014 14:20:27 +0000 (15:20 +0100)] 
settings: Add method that allows to define fallback sections for other sections

The fallbacks are currently only used for single value lookups.
Enumerators are not affected by them.

10 years agosettings: Make print_key() not rely on null-terminated beginning of key buffer
Tobias Brunner [Tue, 28 Jan 2014 13:17:58 +0000 (14:17 +0100)] 
settings: Make print_key() not rely on null-terminated beginning of key buffer

The key to print (e.g. until the next .) still has to be
null-terminated.

10 years agounit-tests: Add tests for includes and file loading in settings_t
Tobias Brunner [Tue, 28 Jan 2014 11:03:52 +0000 (12:03 +0100)] 
unit-tests: Add tests for includes and file loading in settings_t

10 years agosettings: Allow empty strings in section key
Tobias Brunner [Tue, 28 Jan 2014 10:38:01 +0000 (11:38 +0100)] 
settings: Allow empty strings in section key

10 years agounit-tests: Add tests for enumerators in settings_t
Tobias Brunner [Tue, 28 Jan 2014 09:36:05 +0000 (10:36 +0100)] 
unit-tests: Add tests for enumerators in settings_t

10 years agounit-tests: Add tests for setters in settings_t
Tobias Brunner [Tue, 28 Jan 2014 08:29:14 +0000 (09:29 +0100)] 
unit-tests: Add tests for setters in settings_t

10 years agounit-tests: Add basic tests for settings_t
Tobias Brunner [Tue, 28 Jan 2014 08:03:38 +0000 (09:03 +0100)] 
unit-tests: Add basic tests for settings_t

10 years agolib: Add global config namespace
Tobias Brunner [Wed, 22 Jan 2014 10:50:39 +0000 (11:50 +0100)] 
lib: Add global config namespace

10 years agopool: Typo in Makefile fixed
Tobias Brunner [Wed, 12 Feb 2014 13:34:09 +0000 (14:34 +0100)] 
pool: Typo in Makefile fixed

10 years agoMerge branch 'sql-install'
Tobias Brunner [Wed, 12 Feb 2014 13:23:32 +0000 (14:23 +0100)] 
Merge branch 'sql-install'

SQL schemas and example data (IMV) are now part of the distribution and
installed in $prefix/share/strongswan.  This way no extra copy is needed
for the test suite and distributions can easily pack those files together
with the plugins.

10 years agopool: Install SQL schemas from src/pool
Tobias Brunner [Wed, 12 Feb 2014 13:21:26 +0000 (14:21 +0100)] 
pool: Install SQL schemas from src/pool

This allows us to install the schemas if either the attr-sql or sql
plugin is enabled, since both use the same schema (at least in parts).

10 years agosql: Set default values for some fields in addresses table
Tobias Brunner [Tue, 11 Feb 2014 19:50:32 +0000 (20:50 +0100)] 
sql: Set default values for some fields in addresses table

10 years agotesting: Use installed PTS SQL schema and data instead of local copy
Tobias Brunner [Fri, 7 Feb 2014 17:03:02 +0000 (18:03 +0100)] 
testing: Use installed PTS SQL schema and data instead of local copy

10 years agotesting: Use installed SQL schema instead of local copy
Tobias Brunner [Fri, 7 Feb 2014 16:58:41 +0000 (17:58 +0100)] 
testing: Use installed SQL schema instead of local copy

10 years agolibimcv: Install SQL files in /usr/share/strongswan/templates/database
Tobias Brunner [Fri, 7 Feb 2014 16:48:16 +0000 (17:48 +0100)] 
libimcv: Install SQL files in /usr/share/strongswan/templates/database

10 years agosql: Install SQL schemas in /usr/share/strongswan/templates/database
Tobias Brunner [Fri, 7 Feb 2014 16:43:50 +0000 (17:43 +0100)] 
sql: Install SQL schemas in /usr/share/strongswan/templates/database

10 years agosql: Remove unused cred.sql snippet
Tobias Brunner [Fri, 7 Feb 2014 16:45:32 +0000 (17:45 +0100)] 
sql: Remove unused cred.sql snippet

10 years agoasn1: Support dates before 1970-01-01 (i.e. when time_t gets negative)
Tobias Brunner [Wed, 5 Feb 2014 17:06:15 +0000 (18:06 +0100)] 
asn1: Support dates before 1970-01-01 (i.e. when time_t gets negative)

On x86 we allow "overflows" around 1969/1970 but not for other dates.

Fixes #509.

10 years agoasn1: Add additional validation for parsed ASN.1 date/time values
Tobias Brunner [Wed, 5 Feb 2014 16:55:58 +0000 (17:55 +0100)] 
asn1: Add additional validation for parsed ASN.1 date/time values

10 years agoikev1: Fix config switching due to failed authentication during Aggressive mode
Tobias Brunner [Fri, 7 Feb 2014 09:04:22 +0000 (10:04 +0100)] 
ikev1: Fix config switching due to failed authentication during Aggressive mode

The encoded ID payload gets destroyed by the authenticator, which caused
a segmentation fault after the switch.

Fixes #501.

10 years agokernel-pfroute: Don't cache route entries if installation fails
Tobias Brunner [Fri, 7 Feb 2014 10:37:58 +0000 (11:37 +0100)] 
kernel-pfroute: Don't cache route entries if installation fails

10 years agokernel-netlink: Don't cache route entries if installation fails
Tobias Brunner [Fri, 7 Feb 2014 10:37:30 +0000 (11:37 +0100)] 
kernel-netlink: Don't cache route entries if installation fails

Fixes #500.

10 years agoidentification: Fix printing of empty RDNs on FreeBSD
Tobias Brunner [Mon, 27 Jan 2014 12:50:28 +0000 (13:50 +0100)] 
identification: Fix printing of empty RDNs on FreeBSD

On FreeBSD (null) is printed for NULL even if the precision is 0.

10 years agotests: Fix test for printing NULL on FreeBSD
Tobias Brunner [Mon, 27 Jan 2014 12:50:06 +0000 (13:50 +0100)] 
tests: Fix test for printing NULL on FreeBSD

10 years agoFixed description of ikev1/rw-ntru-psk scenario
Andreas Steffen [Wed, 12 Feb 2014 12:21:46 +0000 (13:21 +0100)] 
Fixed description of ikev1/rw-ntru-psk scenario

10 years agoUpdated test kvm tests to Linux 3.13 kernel
Andreas Steffen [Wed, 12 Feb 2014 12:16:09 +0000 (13:16 +0100)] 
Updated test kvm tests to Linux 3.13 kernel

10 years agoAdded ikev1/net2net-ntru-cert and ikev1/rw-ntru-psk scenarios
Andreas Steffen [Wed, 12 Feb 2014 12:14:23 +0000 (13:14 +0100)] 
Added ikev1/net2net-ntru-cert and ikev1/rw-ntru-psk scenarios

10 years agotesting: Add ssh script to distribution
Tobias Brunner [Wed, 12 Feb 2014 09:53:17 +0000 (10:53 +0100)] 
testing: Add ssh script to distribution

10 years agounit-tests: added asn1_parser tests
Andreas Steffen [Mon, 10 Feb 2014 20:28:54 +0000 (21:28 +0100)] 
unit-tests: added asn1_parser tests

10 years agounit-tests: added some more ASN.1 length tests
Andreas Steffen [Mon, 10 Feb 2014 15:05:55 +0000 (16:05 +0100)] 
unit-tests: added some more ASN.1 length tests

10 years agoleak_detective: Assign return value of realloc to buf
Thomas Egerer [Mon, 10 Feb 2014 16:14:24 +0000 (17:14 +0100)] 
leak_detective: Assign return value of realloc to buf

If realloc return a pointer value different from the value to be
reallocated, a double free can occur in this context.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
10 years agordrand: Provide get_features() regardless of RDRAND availability
Martin Willi [Mon, 10 Feb 2014 10:21:09 +0000 (11:21 +0100)] 
rdrand: Provide get_features() regardless of RDRAND availability

As having no get_features() raises a deprecated warning, we return no features
instead.

10 years agordrand: Move RDRAND detection log to level 2
Martin Willi [Mon, 10 Feb 2014 10:07:50 +0000 (11:07 +0100)] 
rdrand: Move RDRAND detection log to level 2

When having RDRAND support, these log messages might be confusing when using
pki or other tools.

10 years agoupdown: Return an empty DNS server enumerator if no IKE_SA available
Martin Willi [Thu, 6 Feb 2014 15:38:39 +0000 (16:38 +0100)] 
updown: Return an empty DNS server enumerator if no IKE_SA available

The one existing caller does not handle a NULL return and always expects
an enumerator; and returning FALSE does not make sense anyway.

10 years agoMerge branch 'cmd-proposals'
Martin Willi [Thu, 6 Feb 2014 14:58:41 +0000 (15:58 +0100)] 
Merge branch 'cmd-proposals'

Introduce --ike/esp/ah-proposal options to offer custom proposals, and requests
an IPv6 virtual IP if an IPv6 --remote-ts is given.

Fixes #508.

10 years agocharon-cmd: Request an IPv6 virtual IP if an IPv6 remote subnet given
Martin Willi [Tue, 4 Feb 2014 15:40:25 +0000 (16:40 +0100)] 
charon-cmd: Request an IPv6 virtual IP if an IPv6 remote subnet given

10 years agocharon-cmd: Document new proposal options in manpage
Martin Willi [Tue, 4 Feb 2014 10:37:52 +0000 (11:37 +0100)] 
charon-cmd: Document new proposal options in manpage

10 years agocharon-cmd: Add --esp/--ah-proposal options to specify CHILD_SA proposals
Martin Willi [Tue, 4 Feb 2014 10:29:28 +0000 (11:29 +0100)] 
charon-cmd: Add --esp/--ah-proposal options to specify CHILD_SA proposals

10 years agocharon-cmd: Add an --ike-proposal option to specify non-default IKE proposals
Martin Willi [Tue, 4 Feb 2014 10:17:37 +0000 (11:17 +0100)] 
charon-cmd: Add an --ike-proposal option to specify non-default IKE proposals

10 years agocharon-cmd: Block SIGUSR1 on worker threads
Martin Willi [Tue, 4 Feb 2014 10:14:27 +0000 (11:14 +0100)] 
charon-cmd: Block SIGUSR1 on worker threads

To properly shut down charon-cmd with leak reports, only the main thread
should catch SIGUSR1 to shut down the application. Work threads should ignore
SIGUSR1 to avoid any hard application termination.

10 years agoDocument ipsec attest --session command
Andreas Steffen [Wed, 5 Feb 2014 11:06:46 +0000 (12:06 +0100)] 
Document ipsec attest --session command

10 years agoAllow output of session time in UTC
Andreas Steffen [Wed, 5 Feb 2014 11:06:22 +0000 (12:06 +0100)] 
Allow output of session time in UTC

10 years agoAdded missing semicolon in SQL statements
Andreas Steffen [Wed, 5 Feb 2014 09:15:56 +0000 (10:15 +0100)] 
Added missing semicolon in SQL statements

10 years agoAdded Android 4.3.1 to products database table
Andreas Steffen [Tue, 4 Feb 2014 18:49:34 +0000 (19:49 +0100)] 
Added Android 4.3.1 to products database table

10 years agoAdded new Android versions to PTS database
Andreas Steffen [Tue, 4 Feb 2014 05:59:01 +0000 (06:59 +0100)] 
Added new Android versions to PTS database

10 years agotesting: Fetch the FreeRADIUS tarball from the "old" directory
Martin Willi [Fri, 31 Jan 2014 16:51:45 +0000 (17:51 +0100)] 
testing: Fetch the FreeRADIUS tarball from the "old" directory

Fixes #483.

10 years agounit-tests: Add some test cases for HTTP GET/POST fetches
Martin Willi [Thu, 30 Jan 2014 17:05:46 +0000 (18:05 +0100)] 
unit-tests: Add some test cases for HTTP GET/POST fetches

10 years agounit-tests: Fix test_runner_run() apidoc
Martin Willi [Wed, 29 Jan 2014 12:36:56 +0000 (13:36 +0100)] 
unit-tests: Fix test_runner_run() apidoc

10 years agopki: Declare correct section in pki --issue man page
Tobias Brunner [Fri, 24 Jan 2014 15:16:08 +0000 (16:16 +0100)] 
pki: Declare correct section in pki --issue man page

10 years agoNEWS: Add unit testing improvements
Martin Willi [Fri, 24 Jan 2014 12:18:45 +0000 (13:18 +0100)] 
NEWS: Add unit testing improvements

10 years agoike: Restart inactivity counter after doing a CHILD_SA rekey
Martin Willi [Thu, 7 Nov 2013 08:21:02 +0000 (09:21 +0100)] 
ike: Restart inactivity counter after doing a CHILD_SA rekey

When doing a rekey for a CHILD_SA, the use counters get reset. An inactivity
job is queued for a time unrelated to the rekey time, so it might happen
that the inactivity job gets executed just after rekeying. If this happens,
inactivity is detected even if we had traffic on the rekeyed CHILD_SA just
before rekeying.

This change implies that inactivity checks can't handle inactivity timeouts
for rekeyed CHILD_SAs, and therefore requires that inactivity timeout is shorter
than the rekey time to have any effect.

10 years agochild-sa: Add a getter for CHILD_SA install time
Martin Willi [Thu, 7 Nov 2013 08:20:40 +0000 (09:20 +0100)] 
child-sa: Add a getter for CHILD_SA install time

10 years agoMerge branch 'pam-session'
Martin Willi [Thu, 23 Jan 2014 15:14:46 +0000 (16:14 +0100)] 
Merge branch 'pam-session'

Add support for PAM session management in xauth-pam.

10 years agoNEWS: Introduce PAM session management
Martin Willi [Thu, 23 Jan 2014 15:11:54 +0000 (16:11 +0100)] 
NEWS: Introduce PAM session management

10 years agoman: Document xauth-pam session option
Martin Willi [Wed, 22 Jan 2014 13:31:22 +0000 (14:31 +0100)] 
man: Document xauth-pam session option

10 years agoxauth-pam: Open/close a PAM session for each connected client
Andrea Bonomi [Tue, 21 Jan 2014 08:54:20 +0000 (09:54 +0100)] 
xauth-pam: Open/close a PAM session for each connected client

Signed-off-by: Andrea Bonomi <a.bonomi@endian.com>
10 years agoxauth-pam: Sanitize XAuth attributes before passing them to PAM
Martin Willi [Wed, 22 Jan 2014 13:01:01 +0000 (14:01 +0100)] 
xauth-pam: Sanitize XAuth attributes before passing them to PAM

10 years agoMerge branch 'vendor-ids'
Martin Willi [Thu, 23 Jan 2014 15:04:48 +0000 (16:04 +0100)] 
Merge branch 'vendor-ids'

Refactors IKEv2 vendor ID handling, and introduces some IDs seen when talking
to Cisco devices.

10 years agoikev2: Add Cisco FRAGMENTATION vendor ID
Martin Willi [Fri, 17 Jan 2014 11:00:13 +0000 (12:00 +0100)] 
ikev2: Add Cisco FRAGMENTATION vendor ID

Courtesy of C.J. Adams-Collier, ZeroLag Communications, Inc.

10 years agoikev2: Add Cisco Copyright vendor ID
Martin Willi [Fri, 17 Jan 2014 10:58:12 +0000 (11:58 +0100)] 
ikev2: Add Cisco Copyright vendor ID

Courtesy of C.J. Adams-Collier, ZeroLag Communications, Inc.

10 years agoikev2: Add Cisco Delete Reason vendor ID
Martin Willi [Fri, 17 Jan 2014 10:57:47 +0000 (11:57 +0100)] 
ikev2: Add Cisco Delete Reason vendor ID

Courtesy of C.J. Adams-Collier, ZeroLag Communications, Inc.

10 years agoikev2: Use a more dynamic vendor ID database, as we use with IKEv1
Martin Willi [Fri, 17 Jan 2014 10:37:35 +0000 (11:37 +0100)] 
ikev2: Use a more dynamic vendor ID database, as we use with IKEv1

10 years agoMerge branch 'chunk-mmap'
Martin Willi [Thu, 23 Jan 2014 14:55:44 +0000 (15:55 +0100)] 
Merge branch 'chunk-mmap'

Introduces file mmap/munmap() wrappers and provides a fallback if mmap() is not
supported. Replaces all mmap() uses by the new functions.

10 years agolibpts: Use chunk_map() instead of non-portable mmap()
Martin Willi [Thu, 21 Nov 2013 13:49:19 +0000 (14:49 +0100)] 
libpts: Use chunk_map() instead of non-portable mmap()

10 years agotnccs: Use chunk_map() instead of non-portable mmap()
Martin Willi [Thu, 21 Nov 2013 13:49:57 +0000 (14:49 +0100)] 
tnccs: Use chunk_map() instead of non-portable mmap()

10 years agopem: Use chunk_map() instead of non-portable mmap()
Martin Willi [Thu, 21 Nov 2013 13:49:37 +0000 (14:49 +0100)] 
pem: Use chunk_map() instead of non-portable mmap()

10 years agostroke: Use chunk_map() instead of non-portable mmap()
Martin Willi [Thu, 21 Nov 2013 13:48:03 +0000 (14:48 +0100)] 
stroke: Use chunk_map() instead of non-portable mmap()

10 years agoradattr: Use chunk_map() instead of non-portable mmap()
Martin Willi [Thu, 21 Nov 2013 13:47:23 +0000 (14:47 +0100)] 
radattr: Use chunk_map() instead of non-portable mmap()

10 years agolibfast: Use chunk_map() instead of non-portable mmap()
Martin Willi [Thu, 21 Nov 2013 13:48:23 +0000 (14:48 +0100)] 
libfast: Use chunk_map() instead of non-portable mmap()

10 years agointegrity-checker: Use chunk_map() instead of non-portable mmap()
Martin Willi [Thu, 21 Nov 2013 13:50:30 +0000 (14:50 +0100)] 
integrity-checker: Use chunk_map() instead of non-portable mmap()

10 years agochunk: Externalize error reporting in chunk_write()
Martin Willi [Thu, 21 Nov 2013 13:22:01 +0000 (14:22 +0100)] 
chunk: Externalize error reporting in chunk_write()

This avoids passing that arbitrary label just for error messages, and gives
greater flexibility in handling errors.

10 years agochunk: Provide a fallback chunk_map() if mmap is not available
Martin Willi [Thu, 21 Nov 2013 13:07:12 +0000 (14:07 +0100)] 
chunk: Provide a fallback chunk_map() if mmap is not available

10 years agochunk: Use dynamically allocated buffer in chunk_from_fd()
Martin Willi [Thu, 21 Nov 2013 11:19:20 +0000 (12:19 +0100)] 
chunk: Use dynamically allocated buffer in chunk_from_fd()

When acting on files, we can use fstat() to estimate the buffer size. On
non-file FDs, we dynamically increase an allocated buffer.

Additionally we slightly change the function signature to properly handle
zero-length files and add appropriate unit tests.

10 years agochunk: Add functions to map file contents to a chunk
Martin Willi [Thu, 21 Nov 2013 10:29:46 +0000 (11:29 +0100)] 
chunk: Add functions to map file contents to a chunk

10 years agoMerge branch 'unity-fixes'
Tobias Brunner [Thu, 23 Jan 2014 10:19:38 +0000 (11:19 +0100)] 
Merge branch 'unity-fixes'

Improves compatibility with the Cisco and Shrew clients.

Fixes #445.

10 years agounity: Send all traffic selectors in a single UNITY_SPLIT_INCLUDE attribute
Tobias Brunner [Fri, 15 Nov 2013 15:45:59 +0000 (16:45 +0100)] 
unity: Send all traffic selectors in a single UNITY_SPLIT_INCLUDE attribute

Cisco clients only handle the first such attribute.

10 years agounity: Change local TS to 0.0.0.0/0 as responder
Tobias Brunner [Fri, 15 Nov 2013 14:15:19 +0000 (15:15 +0100)] 
unity: Change local TS to 0.0.0.0/0 as responder

Cisco clients and Shrew expect a remote TS of 0.0.0.0/0 if Unity is
used, otherwise Quick Mode fails.

10 years agounity: Send UNITY_SPLIT_INCLUDE attributes with proper padding
Tobias Brunner [Fri, 15 Nov 2013 13:54:42 +0000 (14:54 +0100)] 
unity: Send UNITY_SPLIT_INCLUDE attributes with proper padding

The additional 6 bytes are not actually padding but are parsed by the
Cisco client as protocol and src and dst ports (each two bytes but
strangely only the first two in network order).

10 years agoMerge branch 'ipcomp'
Tobias Brunner [Thu, 23 Jan 2014 09:27:49 +0000 (10:27 +0100)] 
Merge branch 'ipcomp'

Fixes compatibility issues between firewall rules (leftfirewall=yes)
and IPComp (compress=yes), plus issues with IPComp when used with
multiple subnets in left|rightsubnet.

Fixes #436.

10 years agotesting: Add ikev2/host2host-transport-nat scenario
Tobias Brunner [Fri, 8 Nov 2013 13:57:01 +0000 (14:57 +0100)] 
testing: Add ikev2/host2host-transport-nat scenario

10 years agotesting: Add ipv6/rw-compress-ikev2 scenario
Tobias Brunner [Fri, 8 Nov 2013 11:16:40 +0000 (12:16 +0100)] 
testing: Add ipv6/rw-compress-ikev2 scenario

10 years agotesting: Add ikev2/compress-nat scenario
Tobias Brunner [Fri, 8 Nov 2013 10:12:04 +0000 (11:12 +0100)] 
testing: Add ikev2/compress-nat scenario

10 years agotesting: Enable firewall for ikev2/compress scenario
Tobias Brunner [Fri, 8 Nov 2013 09:54:20 +0000 (10:54 +0100)] 
testing: Enable firewall for ikev2/compress scenario

Additionally, send a regular (small) ping as the kernel does not
compress small packets and handles those differently inbound.

10 years agokernel-netlink: Set selector on transport mode IPComp SAs
Tobias Brunner [Thu, 7 Nov 2013 20:02:07 +0000 (21:02 +0100)] 
kernel-netlink: Set selector on transport mode IPComp SAs

10 years agokernel-netlink: Selectively add selector on SAs that use IPComp
Tobias Brunner [Thu, 7 Nov 2013 19:58:42 +0000 (20:58 +0100)] 
kernel-netlink: Selectively add selector on SAs that use IPComp

Don't add a selector to tunnel mode SAs, these might serve multiple
traffic selectors but with only one selector on the SA only the traffic
matching the first one would actually get tunneled.

10 years agoupdown: Increase buffer size for script and environment variables
Tobias Brunner [Thu, 7 Nov 2013 19:56:30 +0000 (20:56 +0100)] 
updown: Increase buffer size for script and environment variables

10 years agoupdown: Allow IPIP traffic if IPComp was negotiated
Tobias Brunner [Thu, 7 Nov 2013 16:50:02 +0000 (17:50 +0100)] 
updown: Allow IPIP traffic if IPComp was negotiated

The kernel implicitly creates an IPIP SA if an IPComp SA is installed.
This SA is used inbound for small packets that are not compressed.

Since the addresses are different (they are the tunnel addresses not
those of the tunneled traffic) additional rules are required if the
traffic selector does not cover the tunnel addresses (e.g. due to a NAT).

For SAs with multiple traffic selectors duplicate rules will get installed.

10 years agoupdown: Add PLUTO_IPCOMP to indicate if IPComp was negotiated
Tobias Brunner [Thu, 7 Nov 2013 16:48:40 +0000 (17:48 +0100)] 
updown: Add PLUTO_IPCOMP to indicate if IPComp was negotiated

10 years agocurl: Replace spaces in URIs with %20
Tobias Brunner [Fri, 22 Nov 2013 09:42:18 +0000 (10:42 +0100)] 
curl: Replace spaces in URIs with %20

cURL requires the URIs to be URL-encoded. Apparently, some CAs encode CRL
URIs with spaces in them.

Fixes #454.

10 years agoutils: Add strreplace function
Tobias Brunner [Fri, 22 Nov 2013 09:30:16 +0000 (10:30 +0100)] 
utils: Add strreplace function

10 years agostroke: Ensure the buffer of strings in a stroke_msg_t is null-terminated
Tobias Brunner [Fri, 29 Nov 2013 16:42:11 +0000 (17:42 +0100)] 
stroke: Ensure the buffer of strings in a stroke_msg_t is null-terminated

Otherwise a malicious user could send an unterminated string to cause
unterminated reads.

10 years agostroke: Add an option to prevent log level changes via stroke socket
Tobias Brunner [Fri, 29 Nov 2013 16:27:23 +0000 (17:27 +0100)] 
stroke: Add an option to prevent log level changes via stroke socket