Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gmp: Support of SHA-3 RSA signatures | Andreas Steffen | 2016-09-22 | 1 | -2/+2 |
| | |||||
* | eap-peap: Fix memory leaks when handling tunneled methods | Tobias Brunner | 2016-09-20 | 1 | -1/+3 |
| | |||||
* | ipseckey: Properly free enumerated certificates | Tobias Brunner | 2016-09-20 | 1 | -12/+14 |
| | |||||
* | ipseckey: Properly free public key after creating certificate | Tobias Brunner | 2016-09-20 | 1 | -1/+1 |
| | |||||
* | dnscert: Properly free enumerated certificates | Tobias Brunner | 2016-09-20 | 1 | -8/+11 |
| | |||||
* | vici: Fix indention of flush_certs() method in Python bindings | Tobias Brunner | 2016-09-20 | 1 | -1/+1 |
| | |||||
* | maemo: Remove unused plugin | Tobias Brunner | 2016-09-15 | 7 | -748/+0 |
| | |||||
* | vici: flush-certs command flushes certificate cache | Andreas Steffen | 2016-09-13 | 6 | -0/+68 |
| | | | | | | | | | | When fresh CRLs are released with a high update frequency (e.g. every 24 hours) or OCSP is used then the certificate cache gets quickly filled with stale CRLs or OCSP responses. The new VICI flush-certs command allows to flush e.g. cached CRLs or OCSP responses only. Without the type argument all kind of certificates (e.g. also received end entity and intermediate CA certificates) are purged. | ||||
* | ikev2: (Re-)Queue tasks used to establish an IKE_SA in reset() | Tobias Brunner | 2016-09-06 | 1 | -2/+1 |
| | | | | | | | | | Some tasks might get removed immediately once the IKE_SA_INIT response has been handled even if there were notifies that require a restart of the IKE_SA (e.g. COOKIE or INVALID_KE_PAYLOAD). Such a task is ike_vendor, which caused vendor IDs not to get sent in a retry. This change ensures all required tasks are queued after the reset, which some callers did already anyway. | ||||
* | ikev2: Store proposal on IKE_SA before creating DH object | Tobias Brunner | 2016-09-06 | 1 | -2/+5 |
| | | | | This might be useful for custom implementations of keymat_t. | ||||
* | ikev1: Don't require AH mapping for integrity algorithm when generating proposal | Thomas Egerer | 2016-08-25 | 1 | -6/+9 |
| | | | | Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | ||||
* | ikev1: Ignore the last two bytes of the Cisco Unity vendor ID | Tobias Brunner | 2016-08-24 | 1 | -0/+3 |
| | | | | | | | | | These seem to indicate the major and minor version of the protocol, like e.g. for the DPD vendor ID. Some implementations seem to send versions other than 1.0 so we just ignore these for now when checking for known vendor IDs. Fixes #2088. | ||||
* | ikev1: Accept more than one certificate payload in aggressive mode | Tobias Brunner | 2016-08-17 | 1 | -2/+2 |
| | | | | Fixes #2085. | ||||
* | Created newhope plugin implementing the New Hope key exchange algorithm | Andreas Steffen | 2016-08-10 | 1 | -0/+1 |
| | |||||
* | xof: Defined Extended Output Functions | Andreas Steffen | 2016-07-29 | 2 | -0/+19 |
| | |||||
* | vici: Increased various string buffers to BUF_LEN (512 bytes) | Andreas Steffen | 2016-07-29 | 1 | -4/+4 |
| | |||||
* | libcharon: Add exchange_tests to .gitignore | Tobias Brunner | 2016-07-25 | 1 | -0/+1 |
| | |||||
* | ike1: Flush active queue when queueing a delete of the IKE_SA | Tobias Brunner | 2016-07-19 | 1 | -0/+3 |
| | | | | | | | | | | | By aborting the active task we don't have to wait for potential retransmits if the other peer does not respond to the current task. Since IKEv1 has no sequential message IDs and INFORMATIONALs are no real exchanges this should not be a problem. Fixes #1537 References #429, #1410 Closes strongswan/strongswan#48 | ||||
* | ikev1: Add support for extended sequence numbers | Thomas Egerer | 2016-06-29 | 1 | -3/+17 |
| | | | | Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | ||||
* | unit-tests: Add tests for expires after CHILD_SA rekeying | Tobias Brunner | 2016-06-17 | 1 | -0/+129 |
| | |||||
* | child-rekey: Only rekey installed CHILD_SAs | Tobias Brunner | 2016-06-17 | 1 | -7/+14 |
| | | | | | | | | | | | | Depending on the lifetimes a CHILD_SA we rekeyed as responder might expire shortly afterwards. We don't want to rekey it again. When retrying due to an INVALID_KE_PAYLOAD notify the expected state is CHILD_REKEYING if it is anything else (e.g. due to a collision) we ignore it. We also abort the exchange properly if we don't find the CHILD_SA, no need for an empty INFORMATIONAL exchange anymore. | ||||
* | Report test coverage of libcharon and starter | Tobias Brunner | 2016-06-17 | 1 | -0/+3 |
| | |||||
* | unit-tests: Add test for CHILD_SA rekey if a retry due to an ↵ | Tobias Brunner | 2016-06-17 | 1 | -0/+143 |
| | | | | INVALID_KE_PAYLOAD is delayed | ||||
* | child-rekey: Ignore failed colliding CHILD_SA rekeyings | Tobias Brunner | 2016-06-17 | 1 | -1/+10 |
| | | | | | | | If a passive rekeying fails due to an INVALID_KE_PAYLOAD we don't want to consider this task later when resolving collisions. This previously might have caused the wrong SA to get deleted/installed based on the nonces in the unsuccessful exchange. | ||||
* | unit-tests: Add test for collision between IKE_SA rekey and CHILD_SA creation | Tobias Brunner | 2016-06-17 | 3 | -0/+108 |
| | |||||
* | child-create: Retry creating the CHILD_SA if TEMPORARY_FAILURE is received | Tobias Brunner | 2016-06-17 | 1 | -4/+33 |
| | | | | We queue a delayed task that is initiated after a while. | ||||
* | ikev2: Add possibility to delay initiation of a queued task | Tobias Brunner | 2016-06-17 | 5 | -66/+189 |
| | | | | | | | | | | | Such a task is not initiated unless a certain time has passed. This allows delaying certain tasks but avoids problems if we'd do this via a scheduled job (e.g. if the IKE_SA is rekeyed in the meantime). If the IKE_SA is rekeyed the delay of such tasks is reset when the tasks are adopted i.e. they get executed immediately on the new IKE_SA. This hasn't been implemented for IKEv1 yet. | ||||
* | ike: Reduce RETRY_INTERVAL a bit | Tobias Brunner | 2016-06-17 | 1 | -2/+2 |
| | | | | Retry exchanges between 5 and 15 seconds after a temporary failure. | ||||
* | ike-rekey: Return TEMPORARY_FAILURE when concurrently creating a CHILD_SA | Tobias Brunner | 2016-06-17 | 1 | -14/+35 |
| | |||||
* | unit-tests: Add tests for IKE rekeying if INVALID_KE_PAYLOAD notifies are ↵ | Tobias Brunner | 2016-06-17 | 1 | -0/+470 |
| | | | | received | ||||
* | ike: Add configuration option to switch to preferring supplied proposals ↵ | Tobias Brunner | 2016-06-17 | 5 | -10/+21 |
| | | | | over local ones | ||||
* | child-cfg: Add option to prefer supplied proposals over locally configured ones | Tobias Brunner | 2016-06-17 | 4 | -23/+38 |
| | |||||
* | ike-cfg: Add option to prefer supplied proposals over locally configured ones | Tobias Brunner | 2016-06-17 | 5 | -32/+48 |
| | |||||
* | proposal: Remove MODP_NONE from IKE proposals parsed from strings | Tobias Brunner | 2016-06-17 | 1 | -0/+10 |
| | |||||
* | proposal: Handle MODP_NONE in both directions when selecting proposals | Tobias Brunner | 2016-06-17 | 4 | -6/+97 |
| | |||||
* | ike-rekey: Make sure to ignore task when detecting collisions if ike-init ↵ | Tobias Brunner | 2016-06-17 | 1 | -1/+2 |
| | | | | | | | subtask failed For instance, if INVALID_KE_PAYLOAD is returned we don't want this task to affect any active rekeying (no new SA has been established so far). | ||||
* | unit-tests: Add test for rekey collision if one CREATE_CHILD_SA response is ↵ | Tobias Brunner | 2016-06-17 | 1 | -0/+221 |
| | | | | delayed | ||||
* | unit-tests: Add tests for IKE_SA rekeying if collision is not detected by ↵ | Tobias Brunner | 2016-06-17 | 1 | -0/+340 |
| | | | | one peer | ||||
* | ike-rekey: Handle undetected collisions also if delete is delayed | Tobias Brunner | 2016-06-17 | 1 | -16/+26 |
| | | | | | | | | | | | If the peer does not detect the rekey collision and deletes the old IKE_SA and then receives the colliding rekey request it will respond with TEMPORARY_FAILURE. That notify may arrive before the DELETE does, in which case we may just conclude the rekeying initiated by the peer. Also, since the IKE_SA is destroyed in any case when we receive a delete there is no point in storing the delete task in collide() as process_i() in the ike-rekey task will never be called. | ||||
* | ike-rekey: There is no passive reauth task, so it will never collide with one | Tobias Brunner | 2016-06-17 | 2 | -7/+4 |
| | |||||
* | ike-rekey: Ignore colliding rekey tasks that did not create an IKE_SA | Tobias Brunner | 2016-06-17 | 1 | -56/+64 |
| | | | | | This simplifies collision handling and we don't need to know about these tasks when concluding the rekeying we initiated. | ||||
* | ike-rekey: Properly handle situation if the peer did not notice the rekey ↵ | Tobias Brunner | 2016-06-17 | 1 | -0/+11 |
| | | | | | | | | | | collision We conclude the rekeying before deleting the IKE_SA. Waiting for the potential TEMPORARY_FAILURE notify is no good because if that response does not reach us the peer will not retransmit it upon our retransmits of the rekey request if it already deleted the IKE_SA after receiving our response to the delete. | ||||
* | ike-delete: Handle deletes while rekeying differently if there was a collision | Tobias Brunner | 2016-06-17 | 1 | -2/+40 |
| | | | | | We treat these as if we concluded the rekeying, the active ike-rekey task will handle the collision afterwards. | ||||
* | ike-rekey: Add method to check if there was a rekey collision | Tobias Brunner | 2016-06-17 | 2 | -1/+17 |
| | |||||
* | ikev2: Check for collisions after handling IKE deletion | Tobias Brunner | 2016-06-17 | 1 | -1/+5 |
| | |||||
* | unit-tests: Add tests for IKE/CHILD delete collisions | Tobias Brunner | 2016-06-17 | 1 | -0/+165 |
| | |||||
* | child-delete: Reply as usual when concurrently rekeying the IKE_SA | Tobias Brunner | 2016-06-17 | 1 | -5/+1 |
| | | | | | As per RFC 7296, 2.25.2 (what we did before was the behavior described in RFC 4718). | ||||
* | unit-tests: Add tests for IKE/CHILD rekey collisions | Tobias Brunner | 2016-06-17 | 1 | -0/+170 |
| | |||||
* | child-create: Respond with TEMPORARY_FAILURE while rekeying/deleting IKE_SA | Tobias Brunner | 2016-06-17 | 1 | -2/+2 |
| | |||||
* | ike-rekey: Respond with TEMPORARY_FAILURE if CHILD_SAs are currently ↵ | Tobias Brunner | 2016-06-17 | 1 | -1/+8 |
| | | | | rekeyed/deleted/established |