Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use VICI 2.0 protocol version for certificate queries | Andreas Steffen | 2015-12-11 | 6 | -132/+283 | |
| | ||||||
* | Sort certificate types during enumeration | Andreas Steffen | 2015-12-11 | 1 | -39/+205 | |
| | ||||||
* | Define VICI protocol versions | Andreas Steffen | 2015-12-11 | 5 | -0/+88 | |
| | ||||||
* | vici: Don't report memory usage via leak-detective | Tobias Brunner | 2015-12-11 | 1 | -17/+0 | |
| | | | | | This slowed down the `swanctl --stats` calls in the test scenarios significantly, with not much added value. | |||||
* | Print OCSP single responses | Andreas Steffen | 2015-12-11 | 3 | -5/+122 | |
| | ||||||
* | Standardized printing of certificate information | Andreas Steffen | 2015-12-11 | 5 | -968/+741 | |
| | | | | | | | The certificate_printer class allows the printing of certificate information to a text file (usually stdout). This class is used by the pki --print and swanctl --list-certs commands as well as by the stroke plugin. | |||||
* | imv-attestation: Fix memory leaks when creating functional components | Tobias Brunner | 2015-12-11 | 3 | -6/+6 | |
| | ||||||
* | ipsec: Fix stop command on systems where sleep(1) only supports integers | Tobias Brunner | 2015-12-10 | 1 | -2/+7 | |
| | | | | Fixes #1231. | |||||
* | vici: Fix documentation about the initiate/terminate timeout | Martin Willi | 2015-12-07 | 1 | -2/+2 | |
| | ||||||
* | vici: Honor an optionally passed IKE configuration name in initiate/install | Martin Willi | 2015-12-07 | 2 | -5/+13 | |
| | | | | | | | If two IKE configurations have CHILD configurations with the same name, we have no control about the CHILD_SA that actually gets controlled. The new "ike" parameter specifies the peer config name to find the "child" config under. | |||||
* | vici: Support completely asynchronous initiating and termination | Martin Willi | 2015-12-07 | 2 | -5/+23 | |
| | | | | | | In some situations the vici client is not interested in waiting for a timeout at all, so don't register a logging callback if the timeout argument is negative. | |||||
* | vici: Use an empty local auth round if none given | Martin Willi | 2015-12-07 | 1 | -3/+2 | |
| | | | | | While it hardly makes sense to use none for negotiated SAs, it actually does when installing shunt policies. | |||||
* | vici: Limit start action undoing to IKE_SAs using the base peer config name | Martin Willi | 2015-12-07 | 1 | -3/+7 | |
| | | | | | If two peer configs use the same child config names, potentailly delete the wrong CHILD_SA. Check the peer config name as well to avoid that. | |||||
* | vici: Close empty IKE_SAs after undoing CHILD_SA start actions | Martin Willi | 2015-12-07 | 1 | -6/+44 | |
| | ||||||
* | vici: Use value based array to store CHILD_SA ids during restart | Martin Willi | 2015-12-07 | 1 | -5/+6 | |
| | | | | | The previous approach stored a pointer to a volatile stack variable, which works for a single ID, but not for multiple. | |||||
* | array: Add an insert/create function for value based arrays | Martin Willi | 2015-12-07 | 3 | -0/+68 | |
| | ||||||
* | vici: Undo start actions when unloading configs | Martin Willi | 2015-12-07 | 1 | -0/+1 | |
| | ||||||
* | vici: Fix clean-local target for Perl bindings if they were not built | Tobias Brunner | 2015-12-04 | 1 | -1/+1 | |
| | | | | | This is called when running `make distclean` (or indirectly via `make distcheck`). | |||||
* | byteorder: Provide a fallback for le32toh/htole32() | Martin Willi | 2015-12-04 | 1 | -0/+20 | |
| | | | | | Some older toolchains don't provide these macros, so implement them using the gcc builtins. We also provide 64-bit variants as used by chapoly. | |||||
* | byteorder: Add 32-bit unaligned little-endian conversion functions | Martin Willi | 2015-12-04 | 2 | -21/+27 | |
| | ||||||
* | swanctl: Explicitly link against -lpthread and -ldl if required | Martin Willi | 2015-12-04 | 1 | -1/+2 | |
| | | | | | We already do this for charon, as some toolchains require an explicit link even if libstrongswan already depends on it. | |||||
* | pki: Explicitly link against -lpthread and -ldl if required | Martin Willi | 2015-12-04 | 1 | -1/+4 | |
| | | | | | We already do this for charon, as some toolchains require an explicit link even if libstrongswan already depends on it. | |||||
* | watcher: Check for cancellation if poll() fails with EINTR | Martin Willi | 2015-12-04 | 1 | -0/+7 | |
| | | | | | | | With LinuxThreads, poll() is unfortunately no cancellation point. It seems that poll gets woken up after cancellation, but we actively must check for cancellation before re-entering poll to properly shut down the watcher thread. | |||||
* | Extended and refactored vici perl implementation | Andreas Steffen | 2015-12-01 | 3 | -80/+121 | |
| | ||||||
* | Built the CPAN file structure for the Vici::Session perl module | Andreas Steffen | 2015-12-01 | 15 | -72/+1038 | |
| | ||||||
* | Implement vici Perl binding | Andreas Steffen | 2015-12-01 | 8 | -0/+559 | |
| | ||||||
* | swanctl: Add --list-algs command to query loaded algorithms | Tobias Brunner | 2015-11-30 | 4 | -2/+110 | |
| | ||||||
* | vici: Add get-algorithms command to query loaded algorithms and implementations | Tobias Brunner | 2015-11-30 | 2 | -0/+116 | |
| | ||||||
* | sigwaitinfo() may fail with EINTR if interrupted by an unblocked signal not ↵ | Tobias Brunner | 2015-11-23 | 9 | -32/+35 | |
| | | | | | | in the set Fixes #1213. | |||||
* | kernel-pfkey: Enable ENCR_CAMELLIA_CBC when it's available | Tobias Brunner | 2015-11-23 | 1 | -0/+3 | |
| | | | | Fixes #1214. | |||||
* | utils: Use the more low-level __NR_ prefix to refer to the syscall number | Tobias Brunner | 2015-11-17 | 1 | -1/+1 | |
| | | | | The __NR_ constants are also defined in the Android headers. | |||||
* | eap-radius: Add ability to configure RADIUS retransmission behavior | Thom Troy | 2015-11-17 | 6 | -17/+193 | |
| | | | | Closes strongswan/strongswan#19. | |||||
* | eap-mschapv2: Keep internal state to prevent authentication from succeeding ↵ | Tobias Brunner | 2015-11-16 | 1 | -24/+67 | |
| | | | | | | | | | prematurely We can't allow a client to send us MSCHAPV2_SUCCESS messages before it was authenticated successfully. Fixes CVE-2015-8023. | |||||
* | android: Suppress compiler warnings about missing field initializers | Tobias Brunner | 2015-11-13 | 1 | -0/+1 | |
| | | | | | Triggered by -Wextra for many INIT usages where we only partially initialize a struct. | |||||
* | utils: Provide a fallback for sigwaitinfo() if needed | Tobias Brunner | 2015-11-13 | 3 | -30/+36 | |
| | | | | | Apparently, not available on Mac OS X 10.10 Yosemite. We don't provide this on Windows. | |||||
* | vici: Attribute certificates are not trusted | Tobias Brunner | 2015-11-12 | 1 | -1/+3 | |
| | ||||||
* | vici: Properly add CRLs to the credential set | Tobias Brunner | 2015-11-12 | 1 | -2/+8 | |
| | | | | add_crl() ensures that old CLRs are not stored in the credential set. | |||||
* | mode-config: Reassign migrated virtual IP if client requests %any | Tobias Brunner | 2015-11-12 | 1 | -1/+3 | |
| | | | | | | | | | If we mistakenly detect a new IKE_SA as a reauthentication the client won't request the previous virtual IP, but since we already migrated it we already triggered the assign_vips() hook, so we should reassign the migrated virtual IP. Fixes #1152. | |||||
* | revocation: Allow CRLs to be encoded in PEM format | Tobias Brunner | 2015-11-12 | 1 | -1/+1 | |
| | | | | | | | | | | Since the textual representation for a CRL is now standardized in RFC 7468 one could argue that we should accept that too, even though RFC 5280 explicitly demands CRLs fetched via HTTP/FTP to be in DER format. But in particular for file URIs enforcing that seems inconvenient. Fixes #1203. | |||||
* | curl: Be less strict when considering status codes as errors | Tobias Brunner | 2015-11-12 | 1 | -3/+3 | |
| | | | | | | | For file:// URIs the code is 0 on success. We now do the same libcurl would do with CURLOPT_FAILONERROR enabled. Fixes #1203. | |||||
* | eap-radius: Compare address family when handing out virtual IPs | Tobias Brunner | 2015-11-12 | 1 | -6/+26 | |
| | | | | | | | This also ensures that the actually released virtual IP is removed from the list of claimed IPs. Fixes #1199. | |||||
* | eap-mschapv2: Report username if different from EAP-Identity (or IKE identity) | Tobias Brunner | 2015-11-12 | 1 | -1/+4 | |
| | ||||||
* | eap-mschapv2: Provide EAP-MSCHAPv2 username as EAP-Identity | Tobias Brunner | 2015-11-12 | 1 | -2/+17 | |
| | ||||||
* | auth-cfg: Prefer merged rules over existing ones when moving them | Tobias Brunner | 2015-11-12 | 1 | -3/+3 | |
| | | | | | | This is particularly important for single valued rules (e.g. identities). When copying values this is already handled correctly by the enumerator and add(). | |||||
* | android: Add some (older) unit tests | Tobias Brunner | 2015-11-12 | 3 | -0/+381 | |
| | ||||||
* | android: Properly handle shorter types in BufferedByteWriter | Tobias Brunner | 2015-11-12 | 1 | -0/+86 | |
| | | | | | | | | In Java all integer types are signed, when a negative integer is casted to a larger type (e.g. int to long) then due to sign extension the upper bytes are not 0. So writing that value to a byte array does not produce the expected result. By overloading the putX() methods we make sure to upcast the values correctly. | |||||
* | android: Migrate to the Gradle build system | Tobias Brunner | 2015-11-12 | 139 | -71/+327 | |
| | | | | | This uses a manual way to trigger the NDK build (the default with on-the-fly Android.mk files does not work for us). | |||||
* | android: Provide a fallback for sigwaitinfo() | Tobias Brunner | 2015-11-12 | 1 | -1/+29 | |
| | ||||||
* | android: Replace AndroidConfigLocal.h with a header in utils/compat | Tobias Brunner | 2015-11-12 | 4 | -5/+16 | |
| | ||||||
* | android: Fix build after updating Linux headers | Tobias Brunner | 2015-11-12 | 3 | -3/+0 | |
| | | | | | | | | Since we don't use the kernel-netlink plugin anymore and the headers in the NDK are reasonably recent, we don't need this anymore (at least when building the app). Fixes #1172. |