]>
git.ipfire.org Git - thirdparty/strongswan.git/log
Tobias Brunner [Tue, 15 Jul 2014 15:32:25 +0000 (17:32 +0200)]
ip_packet: Add function to easily encode UDP packets
Tobias Brunner [Tue, 15 Jul 2014 15:19:48 +0000 (17:19 +0200)]
ip_packet: Apply transport protocol ports when encoding IP packet
Tobias Brunner [Tue, 15 Jul 2014 11:51:49 +0000 (13:51 +0200)]
ip_packet: Add getter for IP payload
Tobias Brunner [Tue, 15 Jul 2014 16:02:06 +0000 (18:02 +0200)]
ip_packet: Allow creation of IP packets from data
Tobias Brunner [Tue, 15 Jul 2014 11:14:46 +0000 (13:14 +0200)]
chunk: Add function to calculate Internet Checksums according to RFC 1071
Tobias Brunner [Mon, 14 Jul 2014 15:33:17 +0000 (17:33 +0200)]
ip_packet: Parse ports from TCP and UDP headers
Tobias Brunner [Tue, 22 Jul 2014 08:57:57 +0000 (10:57 +0200)]
Merge branch 'android-state-updates'
The GUI reflects the state of the IKE daemon more closely by switching
back to the "connecting" state when the IKE_SA or CHILD_SA is down and
is getting reestablished.
Fixes #616.
Tobias Brunner [Mon, 14 Jul 2014 13:43:06 +0000 (15:43 +0200)]
android: Delay disconnecting on errors until user dismisses them
If e.g. reauthentication fails we don't want to close the TUN device
until the user acknowledged the error and is thus aware of the failure.
Tobias Brunner [Mon, 14 Jul 2014 13:10:49 +0000 (15:10 +0200)]
android: Set CHILD_STATE_DOWN when the IKE_SA gets reestablished
Tobias Brunner [Mon, 14 Jul 2014 13:08:24 +0000 (15:08 +0200)]
android: Set CHILD_STATE_DOWN whenever the CHILD_SA goes down
No matter what triggers it. We also don't close the TUN device, but we
might handle that differently in the future to allow reestablishing the
IKE_SA if host names have to be re-resolved via DNS.
Tobias Brunner [Mon, 14 Jul 2014 13:06:40 +0000 (15:06 +0200)]
android: Change to CONNECTING state if CHILD_SA goes down
Unless we are disconnecting. This currently triggers the connecting
dialog, perhaps just updating the status text would do too (when switching
from CONNECTED to CONNECTING, not from DISCONNECTED to CONNECTING).
Tobias Brunner [Tue, 22 Jul 2014 08:51:32 +0000 (10:51 +0200)]
Merge branch 'android-cert-import'
Adds support to import CA and server certificate directly in the app.
On Android 4.4 and newer the SAF allows users to easily browse for such
files, on older systems they have to open them from file manager or the
download app (only works if the MIME type is correctly detected).
Also adds support for ECDSA keys on recent Android systems.
Tobias Brunner [Mon, 14 Jul 2014 12:24:31 +0000 (14:24 +0200)]
android: Do not use deprecated TwoLineListItem
Tobias Brunner [Tue, 8 Jul 2014 11:56:54 +0000 (13:56 +0200)]
android: Add support for ECDSA private keys
With 4.4.4 these work fine now.
Tobias Brunner [Thu, 5 Jun 2014 17:06:34 +0000 (19:06 +0200)]
android: Show a confirmation dialog before importing certificates
Since the import activity can be triggered by any other app on the
system we shouldn't just import every certificate we get.
Also, in some situations (e.g. if no passphrase has been set yet for the
system-wide certificate store) we are the only application that can open
certificate files. So if a user clicked on a certificate file she would
just get a confirmation Toast about a successful import, with no indication
whatsoever where the certificate was actually imported. The new dialog
shows the app icon to indicate that strongSwan is involved.
Tobias Brunner [Sat, 31 May 2014 14:49:01 +0000 (16:49 +0200)]
android: Use Storage Access Framework to import certificates
Thanks to the SAF, introduced with Android 4.4, browsing and opening
files on the system is very easy to implement.
On older systems the menu option is removed.
Tobias Brunner [Fri, 30 May 2014 18:16:57 +0000 (20:16 +0200)]
android: Add activity to import certificate files
Such files can e.g. be opened from the Download view, if they are
associated with one of the supported mime-types.
Tobias Brunner [Fri, 30 May 2014 17:52:40 +0000 (19:52 +0200)]
android: Imported certificates may be clicked to delete them
Tobias Brunner [Fri, 30 May 2014 16:44:08 +0000 (18:44 +0200)]
android: Reload CA certificates without AsyncTask
We already use loaders in the GUI that can handle this asynchronously.
Tobias Brunner [Fri, 30 May 2014 16:21:11 +0000 (18:21 +0200)]
android: Change how CA certificate reloads are initiated
Tobias Brunner [Fri, 30 May 2014 15:50:46 +0000 (17:50 +0200)]
android: Add option to reload CA certificates to TrustedCertificatesActivity
Tobias Brunner [Fri, 30 May 2014 15:46:15 +0000 (17:46 +0200)]
android: Replace option to reload CA certificates with CA certificate view
The reload option will be added there.
Tobias Brunner [Fri, 30 May 2014 15:40:24 +0000 (17:40 +0200)]
android: Only close TrustedCertificatesActivity on click when selecting a certificate
Tobias Brunner [Fri, 30 May 2014 15:34:49 +0000 (17:34 +0200)]
android: Set action when using TrustedCertificatesActivity to select a certificate
Tobias Brunner [Fri, 30 May 2014 14:15:25 +0000 (16:15 +0200)]
android: Allow selection of local certificates
Tobias Brunner [Wed, 11 Jun 2014 12:48:08 +0000 (14:48 +0200)]
android: Change how CA certificates from different sources are accessed
Tobias Brunner [Fri, 30 May 2014 13:13:50 +0000 (15:13 +0200)]
android: Cache certificates from multiple KeyStores
Including the new local one.
Tobias Brunner [Fri, 30 May 2014 11:45:31 +0000 (13:45 +0200)]
android: Register local certificate store provider when the app is initialized
Tobias Brunner [Fri, 30 May 2014 11:45:02 +0000 (13:45 +0200)]
android: Add Provider for the local certificate store
Tobias Brunner [Fri, 30 May 2014 11:30:35 +0000 (13:30 +0200)]
android: Add KeyStoreSpi implementation that uses LocalCertificateStore
Tobias Brunner [Fri, 30 May 2014 11:28:16 +0000 (13:28 +0200)]
android: Add local certificate store
The class manages certificates stored in files within the app's
private data directory.
Tobias Brunner [Fri, 30 May 2014 10:40:53 +0000 (12:40 +0200)]
android: Move TrustedCertificateEntry to a new package
Tobias Brunner [Fri, 30 May 2014 10:35:54 +0000 (12:35 +0200)]
android: Subclass Application to provide static access to the application context
Tobias Brunner [Fri, 30 May 2014 10:34:46 +0000 (12:34 +0200)]
android: Target latest SDK version
Tobias Brunner [Fri, 30 May 2014 09:08:35 +0000 (11:08 +0200)]
android: Add utility method to convert a byte array to a hex string
Tobias Brunner [Fri, 30 May 2014 09:22:19 +0000 (11:22 +0200)]
android: Remove unused hash argument from getTrustedCertificates()
Tobias Brunner [Fri, 30 May 2014 09:03:25 +0000 (11:03 +0200)]
android: Use correct tag to define category for CREATE_SHORTCUT intent-filter
Tobias Brunner [Fri, 18 Jul 2014 15:12:09 +0000 (17:12 +0200)]
starter: Fix memory leaks and warn if conn/ca sections are ignored due to parse errors
Martin Willi [Thu, 17 Jul 2014 07:32:22 +0000 (09:32 +0200)]
receiver: Send a single INVALID_MAJOR_VERSION notify for IKE version > 2
We sent both a notify using IKEv1 and IKEv2. This is a little more aggressive
than required, RFC 5996 says we "SHOULD send an unauthenticated Notify
message of type INVALID_MAJOR_VERSION containing the highest (closest) version
number it supports".
Fixes #657.
Andreas Steffen [Wed, 16 Jul 2014 13:59:56 +0000 (15:59 +0200)]
Version bump to 5.2.1dr1
Andreas Steffen [Wed, 16 Jul 2014 13:56:09 +0000 (15:56 +0200)]
Determine type of unsupported PA-TNC attribute in error message
Andreas Steffen [Mon, 14 Jul 2014 18:38:11 +0000 (20:38 +0200)]
Replaced Tag File Path by Instance ID field
This update reflects the latest changes in the TCG TNC
SWID Messages and Attributes for IF-M specification
Tobias Brunner [Mon, 14 Jul 2014 08:53:11 +0000 (10:53 +0200)]
man: Document where left|rightsigkey searches for public key files
Martin Willi [Mon, 14 Jul 2014 07:18:47 +0000 (09:18 +0200)]
swanctl: Fix the swanctl.conf cacerts option name in the manpage and template
Andreas Steffen [Wed, 9 Jul 2014 13:08:18 +0000 (15:08 +0200)]
Updated URL to swidGenerator in recipe
Martin Willi [Wed, 9 Jul 2014 08:53:36 +0000 (10:53 +0200)]
dumm: Undefine _GNU_SOURCE before including <ruby.h>, as it usually redefines it
Andreas Steffen [Tue, 8 Jul 2014 13:24:22 +0000 (15:24 +0200)]
Version bump to 5.2.0
Tobias Brunner [Mon, 7 Jul 2014 14:19:56 +0000 (16:19 +0200)]
NEWS: Updated URL to swidGenerator
Martin Willi [Mon, 7 Jul 2014 13:53:49 +0000 (15:53 +0200)]
settings: Allow spaces in time settings before the optional unit
Martin Willi [Mon, 7 Jul 2014 13:49:04 +0000 (15:49 +0200)]
settings: Be more strict in converting settings to specific data types
As the behavior was inconsistent for empty strings or strings with characters
appended to a number, testing the code failed on some platforms. The new rules
are more strict, returning the default if additional characters or an empty
string was found for a setting.
Martin Willi [Mon, 7 Jul 2014 12:48:11 +0000 (14:48 +0200)]
utils: Undefine mem{cpy,move,set} if set before defining them
Some platforms, such as OS X, use macros for these functions. Undefine them
to avoid compiler warnings.
Martin Willi [Mon, 7 Jul 2014 13:27:19 +0000 (15:27 +0200)]
enumerator: Enumerate glob(3) matches using gl_pathc
While glob should return a NULL terminated gl_pathv when having no matches,
at least on OS X this is not true when using GLOB_DOOFFS. Rely on the
number of matches returned in gl_pathc, which seems to be more reliable in
error cases.
Tobias Brunner [Mon, 7 Jul 2014 09:12:30 +0000 (11:12 +0200)]
xauth-pam: Add workaround for null-terminated passwords
Fixes #631.
Martin Willi [Fri, 4 Jul 2014 08:14:13 +0000 (10:14 +0200)]
kernel-netlink: Rename algorithm identifier from cast128 to cast5
Even if the XFRM identifier was named cast128 in the kernel before 2.6.31, it
actually never worked, because there is no such crypto algorithm.
The identifier has been changed to cast5 in
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=
245acb87
to make it work, so we should use that.
Fixes #633.
Tobias Brunner [Wed, 2 Jul 2014 10:08:16 +0000 (12:08 +0200)]
winhttp: Do not use countof() on pointer argument
Tobias Brunner [Wed, 2 Jul 2014 10:03:36 +0000 (12:03 +0200)]
optionsfrom: Properly handle errors when determining file size
Tobias Brunner [Wed, 2 Jul 2014 09:59:01 +0000 (11:59 +0200)]
windows: Fix off-by-one error in strerror_s_extended()
Tobias Brunner [Wed, 2 Jul 2014 09:54:40 +0000 (11:54 +0200)]
windows: accept() socket handle could theoretically be 0
Tobias Brunner [Wed, 2 Jul 2014 09:51:37 +0000 (11:51 +0200)]
windows: Close correct socket when opening second socket fails in socketpair()
Tobias Brunner [Wed, 2 Jul 2014 09:49:34 +0000 (11:49 +0200)]
windows: Make sure the string returned from ReadConsole() is null terminated
Tobias Brunner [Wed, 2 Jul 2014 09:41:14 +0000 (11:41 +0200)]
windows: Remove useless assignment in put_thread()
Tobias Brunner [Wed, 2 Jul 2014 09:31:56 +0000 (11:31 +0200)]
backtrace: Remove name checks after SymFromAddr() calls
The Name member is an array whose address is always defined.
Tobias Brunner [Tue, 1 Jul 2014 10:37:25 +0000 (12:37 +0200)]
pts: Avoid integer overflow when reading file names in the old IMA format
Tobias Brunner [Tue, 1 Jul 2014 10:31:07 +0000 (12:31 +0200)]
imv-attestation: Avoid memory leak when skipping unsupported work items
Tobias Brunner [Tue, 1 Jul 2014 10:26:15 +0000 (12:26 +0200)]
pts: Use memchr(3) instead of strchr(3) to extract hash algorithm name
The string read with read(2) might not be null terminated.
Tobias Brunner [Tue, 1 Jul 2014 10:13:13 +0000 (12:13 +0200)]
swid: fgets(3) returns a pointer to the read string or NULL
Tobias Brunner [Mon, 30 Jun 2014 13:23:22 +0000 (15:23 +0200)]
parser-helper: Ensure file_next() does not remove the sentinel item
Martin Willi [Tue, 1 Jul 2014 08:33:25 +0000 (10:33 +0200)]
gcrypt: Use predefined pthread locking functions instead of custom hooks
Starting with libgcrypt 1.6, it seems that custom locking functions are not
supported anymore. Instead, the user has to select from one of the pre-defined
set of locking functions.
Given that we have a proper threading abstraction API with optional profiling
on all platforms, this is somewhat annoying. However, there does not seem to be
a way to use custom functions, and we have no other choice than using the
provided macro magic to support all libgcrypt versions.
Fixes #630.
Tobias Brunner [Mon, 30 Jun 2014 12:49:21 +0000 (14:49 +0200)]
man: Document replay_window ipsec.conf option
Tobias Brunner [Wed, 25 Jun 2014 15:53:10 +0000 (17:53 +0200)]
stroke: Don't log unspecified options of conn and ca sections
Tobias Brunner [Wed, 25 Jun 2014 15:44:14 +0000 (17:44 +0200)]
utils: Helper macros to define overloaded macros based on number of arguments
Tobias Brunner [Fri, 27 Jun 2014 14:12:26 +0000 (16:12 +0200)]
pki: Document --online option for pki --verify and all exit codes
Tobias Brunner [Fri, 27 Jun 2014 13:41:21 +0000 (15:41 +0200)]
conf: Document load-tester.crl option
Tobias Brunner [Fri, 27 Jun 2014 13:37:39 +0000 (15:37 +0200)]
conf: Document charon.*-scripts options
Tobias Brunner [Fri, 27 Jun 2014 13:47:34 +0000 (15:47 +0200)]
conf: Document swanctl options
Tobias Brunner [Fri, 27 Jun 2014 13:32:19 +0000 (15:32 +0200)]
conf: Document aikgen options
Tobias Brunner [Fri, 27 Jun 2014 13:26:53 +0000 (15:26 +0200)]
autoconf: Replace --disable-tools option with --disable-scepclient
Since using a separate option for pki this was the only tool that was still
enabled by that option.
Tobias Brunner [Fri, 27 Jun 2014 13:20:25 +0000 (15:20 +0200)]
checksum: Fix checksum generation for pki if tools are disabled
Tobias Brunner [Tue, 24 Jun 2014 16:28:26 +0000 (18:28 +0200)]
doc: Remove obsolete architecture description and empty known bugs list
Tobias Brunner [Tue, 24 Jun 2014 16:27:40 +0000 (18:27 +0200)]
apidoc: Include *.md and files from the complete source directory (not only src)
Tobias Brunner [Tue, 24 Jun 2014 16:24:57 +0000 (18:24 +0200)]
Converted existing README to Markdown
Tobias Brunner [Tue, 24 Jun 2014 15:29:00 +0000 (17:29 +0200)]
Move README to README.md so it gets evaluated as Markdown
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