Tobias Brunner
92cea9c368
ipsec: Update usage output
2014-10-08 18:44:23 +02:00
Tobias Brunner
4279bfdb40
ipsec: Remove duplicate check for internal commands
2014-10-08 18:44:23 +02:00
Tobias Brunner
249aa67f87
ipsec: Only set PATH if it is not already set
...
The comment indicated this but it was always set anyway. All internal
commands are called via their absolute paths, so the script only uses PATH for
the uname command, but if that is not located in one of the configured
directories the script will fail.
Also, since the internal commands are called via their absolute paths there is
no need to add the directories to PATH.
2014-10-08 18:44:23 +02:00
Tobias Brunner
d52b8738b5
ikev1: Fix handling of UNITY_LOAD_BALANCE
...
The re-authentication is now handled within the original IKE_SA if it has not
yet been established, so we don't want to destroy it.
2014-10-07 13:46:18 +02:00
Tobias Brunner
d4828f51e0
ikev1: Don't queue more than one mode config or XAuth task
...
At the time we reset an IKE_SA (e.g. when re-authenticating a not yet
established SA due to a roaming event) such tasks might already be queued
by one of the phase 1 tasks. If the SA is initiated again another task will
get queued by the phase 1 task. This results in e.g. multiple mode config
requests, which most gateways will have problems with.
2014-10-07 13:45:01 +02:00
Martin Willi
b2c1973ffb
ext-auth: Add an ext-auth plugin invoking an external authorization script
...
Original patch courtesy of Vyronas Tsingaras.
2014-10-06 18:30:46 +02:00
Martin Willi
6890bdc7a0
updown: Use process abstraction to invoke updown script
2014-10-06 18:24:39 +02:00
Martin Willi
7dd06d274d
process: Add a wrapper to invoke a command under the system default shell
2014-10-06 18:24:39 +02:00
Martin Willi
02e4dedce5
process: Port child process spawning to the Windows platform
2014-10-06 18:24:39 +02:00
Martin Willi
1fea589c1f
process: Provide an abstraction to spawn child processes with redirected I/O
2014-10-06 18:24:39 +02:00
Andreas Steffen
b95b664644
Incremental parsing fixes
2014-10-05 22:52:59 +02:00
Andreas Steffen
1bea00651d
Added add_segment() method to TCG/PTS attributes
2014-10-05 19:43:27 +02:00
Andreas Steffen
01be87d086
Added add_segment() method to TCG/SEG attributes
2014-10-05 19:14:38 +02:00
Andreas Steffen
a5dfe7a29a
OS IMV proposes IF-M segmentation contract
...
The OS IMV sends a TCG IF-M Segmentation contract request.
All IETF standard attributes support segmentation. Additionally
the IETF Installed Packages standard attributes supports
incremental processing while segments are received.
2014-10-05 18:43:55 +02:00
Andreas Steffen
fc47211740
SWID IMC proposes IF-M segmentation contracts
2014-10-05 18:43:55 +02:00
Andreas Steffen
30774ee5d6
unit-tests: Updated libimcv test suite
2014-10-05 18:43:54 +02:00
Andreas Steffen
9a515a8856
Added add_segment() method to IETF attributes
2014-10-05 18:43:54 +02:00
Andreas Steffen
97ec4cb055
Added add_segment() method to ITA attributes
2014-10-05 18:43:54 +02:00
Andreas Steffen
903a427008
Implemented incremental processing of SWID tag [ID] inventory attribute
2014-10-05 18:43:54 +02:00
Andreas Steffen
eba0cbcee3
Implemented add_segment method for PA-TNC attributes
2014-10-05 12:55:38 +02:00
Andreas Steffen
e77df5a1f6
Added total length parameter in PA-TNC attribute constructor
2014-10-05 12:55:38 +02:00
Andreas Steffen
ebfd8278f9
Assignment of flags starts with bit 0
2014-10-05 12:55:38 +02:00
Andreas Steffen
95e1524a64
Register the reception of the AIK attribute
2014-10-05 12:55:38 +02:00
Andreas Steffen
4f5b435fe9
Unit tests for libimcv
2014-10-05 12:55:38 +02:00
Andreas Steffen
e23cad3564
Compacted chunk creation in ita_attr_command constructor
2014-10-05 12:55:38 +02:00
Andreas Steffen
d6fb2cc6e3
Merged libpts into libimcv
2014-10-05 12:55:37 +02:00
Andreas Steffen
c4d0987609
Added out message queue for imv_msg receive method
2014-10-05 12:55:37 +02:00
Andreas Steffen
e911ac9a5f
Implemented IF-M segmentation
2014-10-05 12:55:37 +02:00
Andreas Steffen
89d12654b3
Added request variable to get_info_string method
2014-10-03 22:25:09 +02:00
Andreas Steffen
f50968976b
Implemented IF-M segmentation contracts
2014-10-03 22:25:09 +02:00
Andreas Steffen
38b5f527e2
Allow to treat specified Attribute-Type-Not-Supported errors as non-fatal
2014-10-03 22:25:09 +02:00
Shea Levy
90fe4b3f8a
starter: Allow specifying the ipsec.conf location in strongswan.conf
2014-10-02 14:33:08 +02:00
Shea Levy
213e02b872
stroke: Allow specifying the ipsec.secrets location in strongswan.conf
2014-10-02 14:31:00 +02:00
Shea Levy
5fea45506e
library: Allow specifying the path to strongswan.conf in the STRONGSWAN_CONF env var
2014-10-02 14:28:01 +02:00
Shea Levy
0efea2fd86
Don't fail to install if sysconfdir isn't writable
2014-09-26 10:52:37 +02:00
Martin Willi
55e85387bb
ikev1: Be more verbose if a peer config would match, but is unusable for Mode
2014-09-25 17:21:54 +02:00
Tobias Brunner
9e3ab0d114
ikev2: Reorder task activation for established IKE SAs
...
We now prefer MOBIKE tasks over delete tasks then the rest.
2014-09-25 10:16:45 +02:00
Tobias Brunner
b3a7ba14f1
Revert "ikev2: Insert MOBIKE tasks at the front of the queue"
...
This reverts commit 3293d14628 .
The position of tasks in the queue does not actually determine the order
in which they are activated. Instead this is determined by the
statements in task_manager_v2_t.initiate().
2014-09-25 10:16:45 +02:00
Martin Willi
a336aefa89
curl: For SSL features, depend on thread-safety provided by our crypto plugins
...
To use SSL in curl, we need to initialize the SSL library in a thread-safe
manner and provide the appropriate callbacks. As we already do that in our
crypto plugins using these libraries, we depend on these features.
This implies that we need the same plugin enabled (openssl, gcrypt) as the
curl backend is configured to use to fetch from HTTPS URIs.
2014-09-24 17:35:16 +02:00
Martin Willi
d717b42b51
curl: Dynamically query supported protocols and register appropriate features
2014-09-24 11:35:59 +02:00
Martin Willi
6eaec1e349
leak-detective: Whitelist libssl SSL_COMP_get_compression_methods()
...
This function is called by libcurl initialization with SSL, and uses
a static allocation of compression algorithms not freed.
2014-09-24 11:35:59 +02:00
Martin Willi
85c95db17a
curl: Try to initialize with SSL support to handle https:// URIs
...
If initialization fails, we fall back to the old behavior.
2014-09-24 11:35:59 +02:00
Martin Willi
5ea627bdfa
watcher: Add a method to query the watcher state
...
This allows a user to check if the watcher is actually running, and potentially
perform read operations directly instead of relying on watcher.
2014-09-24 11:19:59 +02:00
Martin Willi
12c0bde689
kernel-netlink: Define and use rtnetlink message types
2014-09-24 11:19:59 +02:00
Martin Willi
c94e93a7ab
kernel-netlink: Pass protocol specific enum names to socket constructor
...
This avoid the hard dependency on enum names, and makes kernel_netlink_shared
independent of kernel_netlink_ipsec.
2014-09-24 11:19:59 +02:00
Martin Willi
5957e76b38
kernel-netlink: Clean up socket initialization, handle 0 as valid socket fd
2014-09-24 11:19:59 +02:00
Martin Willi
4c3aca273f
kernel-netlink: Clean up response buffer management
2014-09-24 11:19:59 +02:00
Martin Willi
de11d34abb
kernel-netlink: Use recv() instead of recvfrom()
...
As we are not interested in the returned address, there is really no need
in passing that argument.
2014-09-24 11:19:59 +02:00
Martin Willi
4c438cf099
kernel-netlink: Avoid casting the NLMSG_DATA() return value
...
There is really no need for doing so, and it makes the code just unreadable.
2014-09-24 11:19:59 +02:00
Martin Willi
0404a29bfe
kernel-netlink: Define netlink buffer as an union having a netlink header
...
This allows us to streamline the netlink buffers, and avoid extensive
casting.
2014-09-24 11:19:58 +02:00