]>
git.ipfire.org Git - thirdparty/strongswan.git/log
Martin Willi [Fri, 5 Jul 2013 14:05:10 +0000 (16:05 +0200)]
tls-stream: add a new plugin providing TLS secured TCP streams
Martin Willi [Fri, 5 Jul 2013 14:04:16 +0000 (16:04 +0200)]
plugins: add stream and stream services plugin features
Martin Willi [Fri, 5 Jul 2013 13:40:20 +0000 (15:40 +0200)]
configure: check for Linux fopencookie() or its BSD funopen() sibling
Martin Willi [Mon, 1 Jul 2013 12:56:36 +0000 (14:56 +0200)]
unit-tests: add a test for stream read/write_all()
Martin Willi [Fri, 28 Jun 2013 14:33:18 +0000 (16:33 +0200)]
unit-tests: add a stream test case checking concurrency limit
Martin Willi [Thu, 27 Jun 2013 09:21:58 +0000 (11:21 +0200)]
unit-tests: add sync/async tests for UNIX/TCP streams and services
Martin Willi [Tue, 25 Jun 2013 15:10:23 +0000 (17:10 +0200)]
unit-tests: add some test cases for watcher
Martin Willi [Tue, 25 Jun 2013 15:09:07 +0000 (17:09 +0200)]
unit-tests: support testing when leak-detective has not been enabled
Martin Willi [Wed, 17 Jul 2013 14:07:47 +0000 (16:07 +0200)]
watcher: properly support multiple watch callback types for the same FD
Martin Willi [Wed, 17 Jul 2013 14:03:23 +0000 (16:03 +0200)]
watcher: read multiple notifications if available
Use non-blocking I/O on the read end of the notify pipe. This also makes sure
the read does not block should select() signal data while there is none.
Martin Willi [Tue, 15 Nov 2011 17:13:53 +0000 (17:13 +0000)]
certexpire: add an option to enforce exporting trustchains having a private key
Martin Willi [Tue, 9 Jul 2013 12:28:10 +0000 (14:28 +0200)]
error-notify: catch and forward some alerts related to certificate validation
Martin Willi [Tue, 9 Jul 2013 12:21:40 +0000 (14:21 +0200)]
bus: raise certificate validation alerts using credential manager hook
Martin Willi [Tue, 9 Jul 2013 09:55:32 +0000 (11:55 +0200)]
credmgr: introduce a hook function to catch trust chain validation errors
Martin Willi [Mon, 4 Feb 2013 09:02:14 +0000 (10:02 +0100)]
lookip: double size of id field in message
Martin Willi [Mon, 4 Feb 2013 08:59:54 +0000 (09:59 +0100)]
error-notify: increase size of string/identity fields in messages
Martin Willi [Mon, 8 Jul 2013 09:44:52 +0000 (11:44 +0200)]
whitelist: use a read-copy when listing entries
While this requires a little more overhead, we can free the lock should the
stream block, allowing other threads to add/remove entries.
Martin Willi [Mon, 8 Jul 2013 08:52:49 +0000 (10:52 +0200)]
whitelist: fix error handling when creating the socket fails
Martin Willi [Mon, 8 Jul 2013 08:40:25 +0000 (10:40 +0200)]
lookip: fix error handling when creating the socket fails
Martin Willi [Mon, 8 Jul 2013 08:39:23 +0000 (10:39 +0200)]
error-notify: fix error handling when creating the socket fails
Martin Willi [Mon, 1 Jul 2013 13:48:22 +0000 (15:48 +0200)]
kernel-pfroute: use watcher to receive kernel events
Martin Willi [Mon, 1 Jul 2013 13:45:01 +0000 (15:45 +0200)]
kernel-pfkey: use watcher to receive networking events
Martin Willi [Mon, 1 Jul 2013 13:42:22 +0000 (15:42 +0200)]
kernel-netlink: use watcher to receive kernel events for net/ipsec
Martin Willi [Mon, 1 Jul 2013 09:52:42 +0000 (11:52 +0200)]
eap-radius: use watcher instead of receiver thread on DAE socket
Martin Willi [Mon, 1 Jul 2013 07:47:28 +0000 (09:47 +0200)]
dhcp: use watcher instead of dedicated receiver thread
Martin Willi [Mon, 1 Jul 2013 09:59:56 +0000 (11:59 +0200)]
farp: use watcher instead of dedicated receiver thread
Martin Willi [Mon, 1 Jul 2013 10:18:15 +0000 (12:18 +0200)]
load-tester: use a stream service to dispatch control connections
Martin Willi [Mon, 1 Jul 2013 12:47:11 +0000 (14:47 +0200)]
whitelist: use a stream service to accept client connections
Use SOCK_STREAM, as we don't have SOCK_SEQPACKET on TCP. To have network
transparency, the message now uses network byte order.
Martin Willi [Mon, 1 Jul 2013 10:47:45 +0000 (12:47 +0200)]
lookip: use stream service with async I/O dispatching
Now uses SOCK_STREAM, as SOCK_SEQPACKET is not available over TCP. To have
network transparency, the message now uses network byte order.
Martin Willi [Mon, 1 Jul 2013 09:42:18 +0000 (11:42 +0200)]
error-notify: use a stream service to accept client connections
As TCP does not have SOCK_SEQPACKET, we now use SOCK_STREAM for the error-notify
socket. To have network transparency, the message now uses network byte order.
Martin Willi [Mon, 1 Jul 2013 09:19:01 +0000 (11:19 +0200)]
duplicheck: use a stream service to accept client connections
As we can't use SOCK_SEQPACKET over TCP, we now have to provide message
boundaries ourselves. We do this by appending a 16-bit length header to each
sent duplicate identity.
Martin Willi [Fri, 28 Jun 2013 12:35:12 +0000 (14:35 +0200)]
stroke: use a stream service to handle stroke requests
Martin Willi [Tue, 2 Jul 2013 12:09:45 +0000 (14:09 +0200)]
stream: allow async read/write callback to destroy the stream explicitly
Martin Willi [Tue, 2 Jul 2013 12:04:51 +0000 (14:04 +0200)]
stream: don't close underlying socket when creating a stream from it
Martin Willi [Tue, 2 Jul 2013 12:03:51 +0000 (14:03 +0200)]
watcher: add some debugging statements
Martin Willi [Tue, 2 Jul 2013 09:01:10 +0000 (11:01 +0200)]
watcher: if the processor has no threads, execute the job with watcher thread
This is important during shutdown, where we might need to signal some FDs while
all idle threads are gone already.
Martin Willi [Tue, 2 Jul 2013 09:00:27 +0000 (11:00 +0200)]
processor: add a getter for the threads passed to set_threads()
Martin Willi [Mon, 1 Jul 2013 16:38:42 +0000 (18:38 +0200)]
watcher: unregister a watcher FD if its thread gets cancelled
Martin Willi [Mon, 1 Jul 2013 16:34:08 +0000 (18:34 +0200)]
watcher: release threads waiting in remove() when watcher thread gets cancelled
During daemon shutdown, users might call remove() after processor.set_threads(0)
has been called. This gets problematic, as a watch event might be unable
to signal completion when no threads are available anymore. Work around this
issue by cancelling waiters once processor.cancel() has been called.
Martin Willi [Mon, 1 Jul 2013 12:57:28 +0000 (14:57 +0200)]
stream: support keeping the service alive outside of service callback
Martin Willi [Mon, 1 Jul 2013 08:36:52 +0000 (10:36 +0200)]
stream: add read/write_all() methods to stream
Martin Willi [Fri, 28 Jun 2013 12:33:03 +0000 (14:33 +0200)]
stream: support cancellation of stream service callback
Martin Willi [Fri, 28 Jun 2013 12:55:27 +0000 (14:55 +0200)]
stream: use a service constructor to create services
It does not make much sense to reference running services in the manager,
especially as unregistration would need the URI (which a user would have to
store instead of the service reference).
Martin Willi [Fri, 28 Jun 2013 12:33:41 +0000 (14:33 +0200)]
stream: replace print/vprint() convenience functions by a FILE* getter
While this will complicate the implementation of streams not based on a fd,
it allows us to unleash the full power of FILE based convenience functions.
Martin Willi [Fri, 28 Jun 2013 09:50:59 +0000 (11:50 +0200)]
stream: add a concurrency option to services, limiting parallel callbacks
Martin Willi [Fri, 28 Jun 2013 08:32:30 +0000 (10:32 +0200)]
stream: add a job priority option to stream services
Martin Willi [Fri, 28 Jun 2013 08:20:13 +0000 (10:20 +0200)]
stream: add backlog option to stream services, forward to listen()
Martin Willi [Thu, 27 Jun 2013 15:25:51 +0000 (17:25 +0200)]
stream: add support for TCP stream services
Martin Willi [Thu, 27 Jun 2013 15:25:21 +0000 (17:25 +0200)]
stream: add support for TCP streams
Martin Willi [Wed, 26 Jun 2013 15:16:33 +0000 (17:16 +0200)]
stream: add support for UNIX stream services
Martin Willi [Wed, 26 Jun 2013 15:08:14 +0000 (17:08 +0200)]
stream: add support for UNIX streams
Martin Willi [Thu, 27 Jun 2013 13:49:11 +0000 (15:49 +0200)]
stream: support async operation using watcher
Martin Willi [Thu, 27 Jun 2013 09:46:41 +0000 (11:46 +0200)]
stream: add printf()-style covenience functions
Martin Willi [Thu, 27 Jun 2013 08:16:00 +0000 (10:16 +0200)]
stream: create library instance of stream-manager
Martin Willi [Wed, 26 Jun 2013 15:28:19 +0000 (17:28 +0200)]
stream: add a manager to dynamically register streams and services
Martin Willi [Wed, 26 Jun 2013 15:13:11 +0000 (17:13 +0200)]
stream: add a stream service class abstracting services using BSD sockets
Martin Willi [Wed, 26 Jun 2013 15:03:19 +0000 (17:03 +0200)]
stream: add a stream class abstracting BSD sockets
Currently only synchronous operation is supported, but this will be extended
with asynchronous methods using the new watcher.
Martin Willi [Mon, 24 Jun 2013 12:58:01 +0000 (14:58 +0200)]
watcher: add a centralized an generic facility to monitor file descriptors
Tobias Brunner [Mon, 15 Jul 2013 12:37:31 +0000 (14:37 +0200)]
kernel-libipsec: Log error if no local address is found when installing routes
Tobias Brunner [Mon, 15 Jul 2013 12:37:05 +0000 (14:37 +0200)]
dumm: Sort templates by name
Tobias Brunner [Mon, 15 Jul 2013 09:19:27 +0000 (11:19 +0200)]
testing: Don't load certificates explicitly and delete CA certificates in PKCS#12 scenarios
Certificates are now properly extracted from PKCS#12 files.
Tobias Brunner [Mon, 15 Jul 2013 08:59:13 +0000 (10:59 +0200)]
stroke: Add certificates extracted from PKCS#12 files to correct credential set
Only keys and shared secrets are moved from the temporary credential set after
loading all secrets.
Tobias Brunner [Mon, 15 Jul 2013 08:48:19 +0000 (10:48 +0200)]
pkcs12: Add plugin dependencies with soft dependencies on the most common algorithms
Martin Willi [Fri, 12 Jul 2013 17:58:02 +0000 (19:58 +0200)]
leak-detective: remove hdr entry when reallocating zero bytes
Martin Willi [Fri, 12 Jul 2013 17:57:17 +0000 (19:57 +0200)]
leak-detective: print total of allocated/leaked bytes in usage/report
Martin Willi [Fri, 12 Jul 2013 16:19:32 +0000 (18:19 +0200)]
dumm: add include for in.h, if_bridge.h now uses struct in6_addr
Andreas Steffen [Fri, 12 Jul 2013 07:00:47 +0000 (09:00 +0200)]
Recognize critical IssuingDistributionPoint CRL extension
Andreas Steffen [Thu, 11 Jul 2013 08:34:00 +0000 (10:34 +0200)]
Override policy recommendation in enforcement
Andreas Steffen [Wed, 10 Jul 2013 18:38:07 +0000 (20:38 +0200)]
openssl plugin can replace random, hmac, and gcm plugins
Andreas Steffen [Wed, 10 Jul 2013 18:25:49 +0000 (20:25 +0200)]
Added openssl-ikev2/net2net-pkcs12 scenario
Andreas Steffen [Wed, 10 Jul 2013 18:17:44 +0000 (20:17 +0200)]
Added ikev2/net2net-pkcs12 scenario
Andreas Steffen [Wed, 10 Jul 2013 15:50:20 +0000 (17:50 +0200)]
Version bump to 5.1.0dr3
Andreas Steffen [Wed, 10 Jul 2013 15:07:56 +0000 (17:07 +0200)]
conntrack -F makes ikev2/nat-rw scenario to work always
Martin Willi [Wed, 10 Jul 2013 15:27:31 +0000 (17:27 +0200)]
leak-detective: add a usage threshold option based on the number of allocations
Martin Willi [Wed, 10 Jul 2013 15:16:49 +0000 (17:16 +0200)]
leak-detective: set_state() only affects the calling thread
The only user (bfd backtraces) is fine with that, and we really should not
mess the enable flag while doing allocations with other threads.
Martin Willi [Wed, 10 Jul 2013 15:15:00 +0000 (17:15 +0200)]
leak-detective: take a copy of backtrace while printing traces
As we don't want to hold the lock, we must make sure backtraces keep valid
while printing them.
Martin Willi [Wed, 10 Jul 2013 15:14:20 +0000 (17:14 +0200)]
backtrace: add a clone() method
Martin Willi [Wed, 10 Jul 2013 14:29:18 +0000 (16:29 +0200)]
leak-detective: remove hdr from the allocation list during realloc()
If realloc moves an allocation, the original allocation gets freed. We
therefore must remove the hdr from the list, as it is invalid. We can add it
afterwards once it has been updated, allowing us to unlock the list during
reallocation.
Andreas Steffen [Wed, 10 Jul 2013 09:37:22 +0000 (11:37 +0200)]
Fixed alignment of device ID column
Tobias Brunner [Mon, 8 Jul 2013 16:45:46 +0000 (18:45 +0200)]
android: New release after adding support for EAP-TNC
Also disabled listening on IPv6 because the Linux kernel currently does
not support UDP encapsulation for IPv6.
Tobias Brunner [Mon, 8 Jul 2013 16:50:09 +0000 (18:50 +0200)]
Merge branch 'android-byod'
Adds support for EAP-TNC with a custom Android-specific IMC that
collects data such as installed packages, file hashes or system
settings.
Some parts of the implementation are based on the bachelor semester
project 'strongSwan Android 4 Client with Endpoint Assessment' by
Christoph Bühler and Patrick Lötscher.
Tobias Brunner [Mon, 8 Jul 2013 13:38:47 +0000 (15:38 +0200)]
android: Properly handle dotted-quad notation of IPv6 addresses
For nestat output like ::ffff:127.0.0.1:9876 we shall not treat 127 as
port but 9876 instead.
Tobias Brunner [Fri, 5 Jul 2013 15:20:21 +0000 (17:20 +0200)]
android: Allow IMC state to be dismissed with a swipe gesture
Tobias Brunner [Wed, 3 Jul 2013 14:30:44 +0000 (16:30 +0200)]
android: Use explicit locale when converting settings names
Apparently, these functions use the user's default locale which might not
yield the expected result (e.g. lowercase I is not i in the Turkish
locale but ı instead).
Tobias Brunner [Wed, 3 Jul 2013 14:27:36 +0000 (16:27 +0200)]
android: Add information about transmitted data if EAP-TNC is selected
Tobias Brunner [Wed, 3 Jul 2013 08:58:25 +0000 (10:58 +0200)]
android: Reuse certificate selector as generic two line button
Tobias Brunner [Mon, 24 Jun 2013 13:58:34 +0000 (15:58 +0200)]
android: Add device ID in BeginHandshake
Tobias Brunner [Wed, 19 Jun 2013 10:41:09 +0000 (12:41 +0200)]
android: Add new VpnType to enable BYOD features
Tobias Brunner [Wed, 19 Jun 2013 10:39:12 +0000 (12:39 +0200)]
Use strpfx() helper where appropriate
Tobias Brunner [Wed, 19 Jun 2013 10:24:40 +0000 (12:24 +0200)]
utils: Add helper function to check a string for a given prefix
Tobias Brunner [Wed, 19 Jun 2013 10:22:29 +0000 (12:22 +0200)]
utils: Convert string helper macros to static inline functions
Tobias Brunner [Wed, 19 Jun 2013 10:00:04 +0000 (12:00 +0200)]
android: Use a different set of plugins if BYOD features are enabled
Tobias Brunner [Thu, 30 May 2013 10:16:30 +0000 (12:16 +0200)]
android: IMC state fragment is a button that shows remediation instructions or log
Tobias Brunner [Thu, 30 May 2013 10:04:59 +0000 (12:04 +0200)]
android: Show remediation instructions instead of log on failure
Tobias Brunner [Thu, 30 May 2013 09:57:39 +0000 (11:57 +0200)]
android: Properly hide the IMC state fragment initially
Tobias Brunner [Thu, 30 May 2013 09:55:44 +0000 (11:55 +0200)]
android: Add activity that displays a list of remediation instructions
On large displays a two-pane layout is used that displays the list next
to the actual instructions.
Tobias Brunner [Thu, 30 May 2013 09:47:01 +0000 (11:47 +0200)]
android: Add fragment for a list of remediation instructions
This fragment can later be used in one- or two-pane layouts.
Tobias Brunner [Thu, 30 May 2013 09:38:05 +0000 (11:38 +0200)]
android: Add adapter for remediation instructions
Tobias Brunner [Thu, 30 May 2013 09:18:24 +0000 (11:18 +0200)]
android: Add fragment that displays a single remediation instruction
Tobias Brunner [Thu, 30 May 2013 09:11:28 +0000 (11:11 +0200)]
android: RemediationInstruction implements Parcelable interface