Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | child-create: Don't log CHILD_SA initiation until we know the unique ID | Tobias Brunner | 2017-08-07 | 1 | -11/+13 | |
| | ||||||
* | child-rekey: Add CHILD_SA name and unique ID to collision log messages | Tobias Brunner | 2017-08-07 | 1 | -8/+13 | |
| | ||||||
* | child-sa: Suppress CHILD_SA state changes if there is no change | Tobias Brunner | 2017-08-07 | 1 | -6/+9 | |
| | ||||||
* | child-rekey: Don't install outbound SA in case of lost collisions | Tobias Brunner | 2017-08-07 | 4 | -46/+123 | |
| | | | | | | | This splits the SA installation also on the initiator, so we can avoid installing the outbound SA if we lost a rekey collision, which might have caused traffic loss depending on the timing of the DELETEs that are sent in both directions. | |||||
* | bus: Don't trigger child_updown() for rekeyed CHILD_SAs | Tobias Brunner | 2017-08-07 | 1 | -1/+4 | |
| | | | | We don't trigger it either when they are deleted individually. | |||||
* | child-sa: Install outbound SA immediately if kernel supports SPIs on policies | Tobias Brunner | 2017-08-07 | 3 | -26/+47 | |
| | ||||||
* | child-sa: Use flags to track installation of outbound SA and policies separately | Tobias Brunner | 2017-08-07 | 3 | -29/+46 | |
| | ||||||
* | kernel-netlink: Set SPI on outbound policy | Tobias Brunner | 2017-08-07 | 1 | -4/+10 | |
| | | | | | This should cause the right SA to get used if there are multiple outbound SAs and the policies are installed properly. | |||||
* | kernel-interface: Not all kernel interfaces support SPIs on policies | Tobias Brunner | 2017-08-07 | 1 | -0/+2 | |
| | ||||||
* | unit-tests: Stringify direction in message asserts early | Tobias Brunner | 2017-07-28 | 1 | -6/+6 | |
| | | | | x86_64-w64-mingw32-gcc on Windows requires this. | |||||
* | peer-cfg: Use an rwlock instead of a mutex to safely access child-cfgs | Tobias Brunner | 2017-07-27 | 1 | -15/+15 | |
| | | | | | | | | | | If multiple threads want to enumerate child-cfgs and potentially lock other locks (e.g. check out IKE_SAs) while doing so a deadlock could be caused (as was the case with VICI configs with start_action=start). It should also improve performance for roadwarrior connections and lots of clients connecting concurrently. Fixes #2374. | |||||
* | ikev2: AES-CMAC-PRF-128 only uses the first 64 bits of each nonce | Tobias Brunner | 2017-07-27 | 1 | -2/+5 | |
| | | | | References #2377. | |||||
* | error-notify: Don't stop sending notifies after removing a disconnected listener | Tobias Brunner | 2017-07-27 | 1 | -2/+1 | |
| | | | | | | | This prevented new listeners from receiving notifies if they joined after another listener disconnected previously, and if they themselves disconnected their old connection would prevent them again from getting notifies. | |||||
* | farp: Only remove one tracked entry | Tobias Brunner | 2017-07-27 | 1 | -0/+1 | |
| | | | | | | | | | Multiple CHILD_SAs sharing the same traffic selectors (e.g. during make-before-break reauthentication) also have the same reqid assigned. If all matching entries are removed we could end up without entry even though an SA exists that still uses these traffic selectors. Fixes #2373. | |||||
* | ike: Trigger CHILD_INSTALLED state change after corresponding log message | Tobias Brunner | 2017-07-27 | 2 | -10/+9 | |
| | | | | | | | | This way we get the log message in stroke and swanctl as last message when establishing a connection. It's already like this for the IKE_SA where IKE_ESTABLISHED is set after the corresponding log message. Fixes #2364. | |||||
* | kernel-pfroute: Make sure there is a netmask when enumerating subnets | Tobias Brunner | 2017-07-05 | 1 | -2/+2 | |
| | ||||||
* | sql: Use qualified names in SQL query statements | Tobias Brunner | 2017-07-05 | 2 | -49/+54 | |
| | | | | | | | VIRTUAL is a new reserved keyword in MySQL 5.7.6 that caused some of these queries to fail. Fixes #2359. | |||||
* | stroke: Don't load configs with invalid proposals | Tobias Brunner | 2017-07-05 | 1 | -7/+20 | |
| | | | | References #2347. | |||||
* | ikev1: Determine transform ID before mapping integrity algorithm ID | Tobias Brunner | 2017-07-05 | 1 | -1/+1 | |
| | | | | | | | | | Due to the lookup based on the mapped algorithm ID the resulting AH proposals were invalid. Fixes #2347. Fixes: 8456d6f5a8e9 ("ikev1: Don't require AH mapping for integrity algorithm when generating proposal") | |||||
* | eap-aka-3gpp: Add plugin that implements 3GPP MILENAGE algorithm in software | Tobias Brunner | 2017-07-05 | 11 | -0/+1382 | |
| | | | | | | | | | | This is similar to the eap-aka-3gpp2 plugin. K (optionally concatenated with OPc) may be configured as binary EAP secret in ipsec.secrets or swanctl.conf. Based on a patch by Thomas Strangert. Fixes #2326. | |||||
* | ikev1: Only delete redundant CHILD_SAs if configured | Tobias Brunner | 2017-06-26 | 1 | -1/+5 | |
| | | | | | | | | | If we find a redundant CHILD_SA (the peer probably rekeyed the SA before us) we might not want to delete the old SA because the peer might still use it (same applies to old CHILD_SAs after rekeyings). So only delete them if configured to do so. Fixes #2358. | |||||
* | ike-cfg: Fix memory leak when matching against ranges | Tobias Brunner | 2017-05-29 | 1 | -1/+1 | |
| | | | | | | | traffic_selector_t::to_subnet() always sets the net/host (unless the address family was invalid). Fixes: 3070697f9f7c ("ike: support multiple addresses, ranges and subnets in IKE address config") | |||||
* | ike: Apply retransmission_limit before applying the jitter | Tobias Brunner | 2017-05-26 | 2 | -8/+8 | |
| | ||||||
* | eap-sim-file: Remove redundant enumerator allocation | Tobias Brunner | 2017-05-26 | 1 | -1/+1 | |
| | ||||||
* | sql: Remove redundant enumerator allocation | Tobias Brunner | 2017-05-26 | 1 | -1/+1 | |
| | | | | | | Interestingly, this doesn't show up in the regression tests because the compiler removes the first assignment (and thus the allocation) due to -O2 that's included in our default CFLAGS. | |||||
* | Fixed some typos, courtesy of codespell | Tobias Brunner | 2017-05-26 | 4 | -5/+5 | |
| | ||||||
* | linked-list: Change return value of find_first() and signature of its callback | Tobias Brunner | 2017-05-26 | 18 | -227/+244 | |
| | | | | This avoids the unportable five pointer hack. | |||||
* | linked-list: Change interface of callback for invoke_function() | Tobias Brunner | 2017-05-26 | 5 | -34/+65 | |
| | | | | This avoids the unportable five pointer hack. | |||||
* | Change interface for enumerator_create_filter() callback | Tobias Brunner | 2017-05-26 | 23 | -393/+551 | |
| | | | | | This avoids the unportable 5 pointer hack, but requires enumerating in the callback. | |||||
* | Migrate all enumerators to venumerate() interface change | Tobias Brunner | 2017-05-26 | 34 | -169/+333 | |
| | ||||||
* | vici: Make 96-bit truncation for SHA-256 configurable | Tobias Brunner | 2017-05-26 | 1 | -0/+11 | |
| | ||||||
* | stroke: Make 96-bit truncation for SHA-256 configurable | Tobias Brunner | 2017-05-26 | 2 | -1/+3 | |
| | ||||||
* | child-cfg: Optionally use 96-bit truncation for HMAC-SHA-256 | Tobias Brunner | 2017-05-26 | 2 | -0/+11 | |
| | | | | | | | | The correct truncation is 128-bit but some implementations insist on using 96-bit truncation. With strongSwan this can be negotiated using an algorithm identifier from a private range. But this doesn't work with third-party implementations. This adds an option to use 96-bit truncation even if the official identifier is used. | |||||
* | android-log: Link against liblog | Tobias Brunner | 2017-05-26 | 1 | -0/+1 | |
| | ||||||
* | unit-tests: Check installed IPsec SAs in child-rekey tests | Tobias Brunner | 2017-05-23 | 1 | -3/+94 | |
| | ||||||
* | unit-tests: Add assert to check for installed IPsec SAs | Tobias Brunner | 2017-05-23 | 2 | -3/+115 | |
| | ||||||
* | unit-tests: Migrate cached IPsec SAs to new IKE_SAs during rekeying | Tobias Brunner | 2017-05-23 | 1 | -0/+42 | |
| | ||||||
* | unit-tests: Keep track of installed IPsec SAs in mock kernel_ipsec_t ↵ | Tobias Brunner | 2017-05-23 | 2 | -4/+136 | |
| | | | | implementation | |||||
* | child-delete: Delay the removal of the inbound SA of rekeyed CHILD_SAs | Tobias Brunner | 2017-05-23 | 3 | -128/+412 | |
| | | | | | | | | After deleting a rekeyed CHILD_SA we uninstall the outbound SA but don't destroy the CHILD_SA (and the inbound SA) immediately. We delay it a few seconds or until the SA expires to allow delayed packets to get processed. The CHILD_SA remains in state CHILD_DELETING until it finally gets destroyed. | |||||
* | delete-child-sa-job: Add new constructor that takes the unique ID of a CHILD_SA | Tobias Brunner | 2017-05-23 | 2 | -13/+69 | |
| | | | | | This makes sure we delete the right SA in case the addresses got updated in the mean time. | |||||
* | child-sa: Remove state to track installation of half the SA again | Tobias Brunner | 2017-05-23 | 6 | -62/+47 | |
| | ||||||
* | unit-tests: Overload helper macro to check for outbound SA state | Tobias Brunner | 2017-05-23 | 1 | -2/+30 | |
| | ||||||
* | child-sa: Expose state of the outbound SA | Tobias Brunner | 2017-05-23 | 2 | -17/+61 | |
| | ||||||
* | child-sa: Add method to remove the outbound SA and policies | Tobias Brunner | 2017-05-23 | 2 | -5/+78 | |
| | ||||||
* | child-sa: Keep track whether the outbound SA has been installed or not | Tobias Brunner | 2017-05-23 | 1 | -8/+13 | |
| | ||||||
* | child-delete: Track flags per individual CHILD_SA | Tobias Brunner | 2017-05-23 | 1 | -47/+78 | |
| | ||||||
* | ikev2: Delay installation of outbound SAs during rekeying on the responder | Tobias Brunner | 2017-05-23 | 4 | -30/+124 | |
| | | | | | | | | The responder has all the information needed to install both SAs before the initiator does. So if the responder immediately installs the outbound SA it might send packets using the new SA which the initiator is not yet able to process. This can be avoided by delaying the installation of the outbound SA until the replaced SA is deleted. | |||||
* | child-sa: Add log message for CHILD_SA state changes | Tobias Brunner | 2017-05-23 | 1 | -0/+4 | |
| | ||||||
* | child-sa: Add method to associate rekeyed CHILD_SAs with their replacement | Tobias Brunner | 2017-05-23 | 2 | -0/+35 | |
| | ||||||
* | child-sa: Add methods that allow partial installation of CHILD_SA | Tobias Brunner | 2017-05-23 | 2 | -5/+144 | |
| | | | | | | | Using install() for the inbound SA and register_outbound() for the outbound SA followed by install_policies(), will delay the installation of the outbound SA as well as the installation of the outbound policies in the kernel until install_outbound() is called later. |