Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | pki: Declare correct section in pki --issue man page | Tobias Brunner | 2014-01-24 | 1 | -1/+1 | |
| | ||||||
* | NEWS: Add unit testing improvements | Martin Willi | 2014-01-24 | 1 | -0/+5 | |
| | ||||||
* | ike: Restart inactivity counter after doing a CHILD_SA rekey | Martin Willi | 2014-01-23 | 2 | -3/+6 | |
| | | | | | | | | | | | | 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. | |||||
* | child-sa: Add a getter for CHILD_SA install time | Martin Willi | 2014-01-23 | 2 | -0/+20 | |
| | ||||||
* | Merge branch 'pam-session' | Martin Willi | 2014-01-23 | 7 | -10/+276 | |
|\ | | | | | | | Add support for PAM session management in xauth-pam. | |||||
| * | NEWS: Introduce PAM session management | Martin Willi | 2014-01-23 | 1 | -0/+3 | |
| | | ||||||
| * | man: Document xauth-pam session option | Martin Willi | 2014-01-23 | 1 | -0/+3 | |
| | | ||||||
| * | xauth-pam: Open/close a PAM session for each connected client | Andrea Bonomi | 2014-01-23 | 4 | -9/+265 | |
| | | | | | | | | Signed-off-by: Andrea Bonomi <a.bonomi@endian.com> | |||||
| * | xauth-pam: Sanitize XAuth attributes before passing them to PAM | Martin Willi | 2014-01-23 | 1 | -1/+5 | |
|/ | ||||||
* | Merge branch 'vendor-ids' | Martin Willi | 2014-01-23 | 1 | -16/+63 | |
|\ | | | | | | | | | Refactors IKEv2 vendor ID handling, and introduces some IDs seen when talking to Cisco devices. | |||||
| * | ikev2: Add Cisco FRAGMENTATION vendor ID | Martin Willi | 2014-01-23 | 1 | -0/+2 | |
| | | | | | | | | Courtesy of C.J. Adams-Collier, ZeroLag Communications, Inc. | |||||
| * | ikev2: Add Cisco Copyright vendor ID | Martin Willi | 2014-01-23 | 1 | -0/+2 | |
| | | | | | | | | Courtesy of C.J. Adams-Collier, ZeroLag Communications, Inc. | |||||
| * | ikev2: Add Cisco Delete Reason vendor ID | Martin Willi | 2014-01-23 | 1 | -0/+2 | |
| | | | | | | | | Courtesy of C.J. Adams-Collier, ZeroLag Communications, Inc. | |||||
| * | ikev2: Use a more dynamic vendor ID database, as we use with IKEv1 | Martin Willi | 2014-01-23 | 1 | -16/+57 | |
|/ | ||||||
* | Merge branch 'chunk-mmap' | Martin Willi | 2014-01-23 | 21 | -270/+475 | |
|\ | | | | | | | | | Introduces file mmap/munmap() wrappers and provides a fallback if mmap() is not supported. Replaces all mmap() uses by the new functions. | |||||
| * | libpts: Use chunk_map() instead of non-portable mmap() | Martin Willi | 2014-01-23 | 1 | -29/+5 | |
| | | ||||||
| * | tnccs: Use chunk_map() instead of non-portable mmap() | Martin Willi | 2014-01-23 | 2 | -27/+6 | |
| | | ||||||
| * | pem: Use chunk_map() instead of non-portable mmap() | Martin Willi | 2014-01-23 | 1 | -29/+6 | |
| | | ||||||
| * | stroke: Use chunk_map() instead of non-portable mmap() | Martin Willi | 2014-01-23 | 1 | -30/+6 | |
| | | ||||||
| * | radattr: Use chunk_map() instead of non-portable mmap() | Martin Willi | 2014-01-23 | 1 | -40/+8 | |
| | | ||||||
| * | libfast: Use chunk_map() instead of non-portable mmap() | Martin Willi | 2014-01-23 | 1 | -29/+10 | |
| | | ||||||
| * | integrity-checker: Use chunk_map() instead of non-portable mmap() | Martin Willi | 2014-01-23 | 1 | -31/+6 | |
| | | ||||||
| * | chunk: Externalize error reporting in chunk_write() | Martin Willi | 2014-01-23 | 6 | -30/+52 | |
| | | | | | | | | | | This avoids passing that arbitrary label just for error messages, and gives greater flexibility in handling errors. | |||||
| * | chunk: Provide a fallback chunk_map() if mmap is not available | Martin Willi | 2014-01-23 | 2 | -2/+47 | |
| | | ||||||
| * | chunk: Use dynamically allocated buffer in chunk_from_fd() | Martin Willi | 2014-01-23 | 10 | -25/+183 | |
| | | | | | | | | | | | | | | | | 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. | |||||
| * | chunk: Add functions to map file contents to a chunk | Martin Willi | 2014-01-23 | 3 | -1/+149 | |
|/ | ||||||
* | Merge branch 'unity-fixes' | Tobias Brunner | 2014-01-23 | 2 | -34/+54 | |
|\ | | | | | | | | | | | Improves compatibility with the Cisco and Shrew clients. Fixes #445. | |||||
| * | unity: Send all traffic selectors in a single UNITY_SPLIT_INCLUDE attribute | Tobias Brunner | 2014-01-23 | 1 | -35/+47 | |
| | | | | | | | | Cisco clients only handle the first such attribute. | |||||
| * | unity: Change local TS to 0.0.0.0/0 as responder | Tobias Brunner | 2014-01-23 | 1 | -4/+7 | |
| | | | | | | | | | | Cisco clients and Shrew expect a remote TS of 0.0.0.0/0 if Unity is used, otherwise Quick Mode fails. | |||||
| * | unity: Send UNITY_SPLIT_INCLUDE attributes with proper padding | Tobias Brunner | 2014-01-23 | 1 | -11/+16 | |
|/ | | | | | | 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). | |||||
* | Merge branch 'ipcomp' | Tobias Brunner | 2014-01-23 | 41 | -11/+522 | |
|\ | | | | | | | | | | | | | | | 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. | |||||
| * | testing: Add ikev2/host2host-transport-nat scenario | Tobias Brunner | 2014-01-23 | 9 | -0/+146 | |
| | | ||||||
| * | testing: Add ipv6/rw-compress-ikev2 scenario | Tobias Brunner | 2014-01-23 | 9 | -0/+125 | |
| | | ||||||
| * | testing: Add ikev2/compress-nat scenario | Tobias Brunner | 2014-01-23 | 12 | -0/+187 | |
| | | ||||||
| * | testing: Enable firewall for ikev2/compress scenario | Tobias Brunner | 2014-01-23 | 8 | -7/+14 | |
| | | | | | | | | | | Additionally, send a regular (small) ping as the kernel does not compress small packets and handles those differently inbound. | |||||
| * | kernel-netlink: Set selector on transport mode IPComp SAs | Tobias Brunner | 2014-01-23 | 1 | -1/+1 | |
| | | ||||||
| * | kernel-netlink: Selectively add selector on SAs that use IPComp | Tobias Brunner | 2014-01-23 | 1 | -1/+7 | |
| | | | | | | | | | | | | 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. | |||||
| * | updown: Increase buffer size for script and environment variables | Tobias Brunner | 2014-01-23 | 1 | -1/+1 | |
| | | ||||||
| * | updown: Allow IPIP traffic if IPComp was negotiated | Tobias Brunner | 2014-01-23 | 1 | -0/+31 | |
| | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
| * | updown: Add PLUTO_IPCOMP to indicate if IPComp was negotiated | Tobias Brunner | 2014-01-23 | 2 | -1/+10 | |
|/ | ||||||
* | curl: Replace spaces in URIs with %20 | Tobias Brunner | 2014-01-23 | 1 | -3/+14 | |
| | | | | | | | cURL requires the URIs to be URL-encoded. Apparently, some CAs encode CRL URIs with spaces in them. Fixes #454. | |||||
* | utils: Add strreplace function | Tobias Brunner | 2014-01-23 | 3 | -2/+155 | |
| | ||||||
* | stroke: Ensure the buffer of strings in a stroke_msg_t is null-terminated | Tobias Brunner | 2014-01-23 | 1 | -2/+5 | |
| | | | | | Otherwise a malicious user could send an unterminated string to cause unterminated reads. | |||||
* | stroke: Add an option to prevent log level changes via stroke socket | Tobias Brunner | 2014-01-23 | 2 | -2/+18 | |
| | ||||||
* | pki: Make sure no command registers too many options | Tobias Brunner | 2014-01-23 | 2 | -4/+11 | |
| | ||||||
* | pki: Increase MAX_COMMANDS to cover all currently available commands | Tobias Brunner | 2014-01-23 | 1 | -2/+2 | |
| | | | | Fixes #452. | |||||
* | pki: Print a warning if MAX_COMMANDS is too low | Tobias Brunner | 2014-01-23 | 1 | -0/+7 | |
| | ||||||
* | pki: Properly use ?: when defining option arrays | Tobias Brunner | 2014-01-23 | 1 | -2/+2 | |
| | ||||||
* | configure: Add -Wno-format-security to default CFLAGS | Tobias Brunner | 2014-01-23 | 1 | -1/+1 | |
| | | | | | | Either due to a change in Ubuntu 13.10 or GCC 4.8 -Wno-format has no effect if -Wformat-security is enabled (which it is on Ubuntu) so we also disable the latter by default. | |||||
* | agent: Keep CAP_DAC_OVERRIDE to connect to ssh-agent socket | Tobias Brunner | 2014-01-23 | 4 | -14/+10 | |
| | | | | This is also required if charon-cmd is used with capability dropping. |