Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | testing: Update tkm to version 0.1.2 | Reto Buerki | 2015-05-05 | 1 | -1/+1 | |
| | ||||||
* | testing: Update tkm-rpc to version 0.2 | Reto Buerki | 2015-05-05 | 1 | -1/+1 | |
| | ||||||
* | child-create: Destroy nonceg in migrate() | Tobias Brunner | 2015-05-05 | 1 | -1/+2 | |
| | | | | | Since another nonce gets allocated later (if any was allocated already) this would have resulted in a leaked nonce context ID when used in charon-tkm. | |||||
* | child-create: Fix error handling if nonceg can't be created | Tobias Brunner | 2015-05-05 | 1 | -14/+12 | |
| | | | | As with ike-init we can't return NULL in the task constructor. | |||||
* | ike-init: Fix error handling if nonceg can't be created | Tobias Brunner | 2015-05-05 | 1 | -13/+21 | |
| | | | | | | Returning FAILED in the constructor is wrong, but returning NULL doesn't work either as it's currently assumed tasks always can be created. Therefore, delay this check until we actually try to allocate a nonce. | |||||
* | ike-init: Fix compiler warning | Tobias Brunner | 2015-05-05 | 1 | -2/+0 | |
| | ||||||
* | swanctl: Fix --uri option | Martin Willi | 2015-05-05 | 1 | -9/+36 | |
| | | | | | | | As we now pass the vici connection to the command dispatcher callback, we can't parse the --uri option to create the connection from the same callback. Instead pre-process the common command options in a separate loop, and ignore the same options while processing the actual command. | |||||
* | Merge branch 'tkm-fixes' | Tobias Brunner | 2015-05-04 | 13 | -96/+230 | |
|\ | | | | | | | | | This fixes several issues with charon-tkm (e.g. nonce context ID leaks during rekey collisions). | |||||
| * | charon-tkm: Also store local SPI in SAD | Adrian-Ken Rueegsegger | 2015-05-04 | 4 | -27/+36 | |
| | | ||||||
| * | ike-init: Make nonceg a member of ike_init struct | Reto Buerki | 2015-05-04 | 1 | -20/+17 | |
| | | | | | | | | | | | | | | This allows to control the life-cycle of a nonce in the context of the ike init task. In the TKM use-case the nonce generator cannot be destroyed before the ike init task is finalized, otherwise the created nonce is detected as stale. | |||||
| * | child-create: Make nonceg a member of child_create struct | Reto Buerki | 2015-05-04 | 1 | -12/+16 | |
| | | | | | | | | | | | | | | | | This allows to control the life-cycle of a nonce in the context of the child create task. In the TKM use-case, it is required to reset the nonce context if the created nonce is not consumed. This happens if the child SA negotiation fails and it is detected before the SA is established via the TKM kernel plugin (i.e. rekey collision). | |||||
| * | charon-tkm: Reset stale nonce contexts | Reto Buerki | 2015-05-04 | 2 | -18/+30 | |
| | | | | | | | | | | | | | | | | | | | | | | If the nonce generator detects a stale nonce upon destroy(), it resets the context in the TKM and releases associated resources in the ID manager and chunk map. Also, do not acquire the nonce context ID in tkm_nonceg_create function but rather when the nonce is actually created by get_nonce(). The nonces created with get_nonce must also be registered in the chunk map. | |||||
| * | charon-tkm: Drop unneeded nonceg get_id function | Reto Buerki | 2015-05-04 | 3 | -16/+0 | |
| | | ||||||
| * | charon-tkm: Remove ESA nonce mappings from chunk map | Adrian-Ken Rueegsegger | 2015-05-04 | 1 | -0/+2 | |
| | | ||||||
| * | charon-tkm: Drop obsolete TKM_LIMIT define | Reto Buerki | 2015-05-04 | 1 | -2/+0 | |
| | | ||||||
| * | charon-tkm: Select other ESA if any is present upon deletion | Adrian-Ken Rueegsegger | 2015-05-04 | 1 | -1/+12 | |
| | | | | | | | | | | In the case that multiple ESAs exist (e.g. rekey collision) for a security policy, make sure to select one of the remaining ESAs. | |||||
| * | charon-tkm: Add get_other_esa_id function to TKM kernel SAD | Adrian-Ken Rueegsegger | 2015-05-04 | 3 | -0/+103 | |
| | | | | | | | | | | The function gets the ESA id for another entry associated with the same security policy as the specified ESA. | |||||
| * | charon-tkm: Only skip creation of first child SA | Adrian-Ken Rueegsegger | 2015-05-04 | 1 | -0/+9 | |
| | | | | | | | | | | | | Use the new is_first boolean parameter of the ALERT_KEEP_ON_CHILD_SA_FAILURE alert to determine if the failure was caused by the first CHILD SA. | |||||
| * | Add bool param to ALERT_KEEP_ON_CHILD_SA_FAILURE alert | Adrian-Ken Rueegsegger | 2015-05-04 | 2 | -3/+8 | |
| | | | | | | | | | | The parameter indicates if the alert is raised upon failure to establish the first CHILD SA of an IKE SA. | |||||
| * | charon-tkm: Fix SAD insertion when adding ESA | Adrian-Ken Rueegsegger | 2015-05-04 | 1 | -1/+1 | |
|/ | | | | | Commit f5fc592 added the reqid to the SAD. The insert call swapped the order of the esa_id and reqid parameters. | |||||
* | vici: Default to certificate subject for identity | Timo Teräs | 2015-05-04 | 1 | -0/+37 | |
| | | | | | | | | If id is not specified and certificate authentication is used, use the certificate subject name as identity. Simplifies configuration as in most cases this is the right thing to do. Signed-off-by: Timo Teräs <timo.teras@iki.fi> | |||||
* | swanctl: Implement monitoring of IKE_SA and CHILD_SA changes | Timo Teräs | 2015-05-04 | 2 | -2/+84 | |
| | | | | Signed-off-by: Timo Teräs <timo.teras@iki.fi> | |||||
* | vici: Add support for ike_sa and child_sa updown notifications | Timo Teräs | 2015-05-04 | 3 | -0/+137 | |
| | | | | | | Useful for monitoring and management purposes. Signed-off-by: Timo Teräs <timo.teras@iki.fi> | |||||
* | vici: Add function to test if an event should be generated | Timo Teräs | 2015-05-04 | 2 | -0/+74 | |
| | | | | | | | Useful to avoid generating vici messages if they are not needed and their generation is heavy operation. Signed-off-by: Timo Teräs <timo.teras@iki.fi> | |||||
* | swanctl: Add missing unit in install-time log | Romain Francoise | 2015-05-04 | 1 | -1/+1 | |
| | ||||||
* | init: Don't build/install legacy systemd service if charon isn't built | Romain Francoise | 2015-05-04 | 1 | -0/+2 | |
| | | | | | | If the user configures the build to only include charon-systemd the "legacy" systemd service isn't useful, so skip its generation and installation. | |||||
* | crypt-burn: free() associated data after test | Martin Willi | 2015-05-04 | 1 | -0/+1 | |
| | ||||||
* | testing: Updated carol's certificate from research CA and dave's certificate ↵5.3.1dr1 | Andreas Steffen | 2015-04-26 | 52 | -846/+898 | |
| | | | | from sales CA | |||||
* | testing: Wait for DH crypto tests to complete | Andreas Steffen | 2015-04-26 | 8 | -8/+8 | |
| | ||||||
* | imv_policy_manager: Added capability to execute an allow or block shell ↵ | Andreas Steffen | 2015-04-26 | 10 | -3/+59 | |
| | | | | command string | |||||
* | testing: Migration of KVM framework to Linux 4.x kernel | Andreas Steffen | 2015-04-25 | 3 | -5/+2207 | |
| | ||||||
* | Version bump to 5.3.1dr1 | Andreas Steffen | 2015-04-24 | 1 | -1/+1 | |
| | ||||||
* | Fixed PB-TNC directionality debug message | Andreas Steffen | 2015-04-24 | 1 | -1/+1 | |
| | ||||||
* | ike-vendor: Add some Microsoft vendor IDs | Tobias Brunner | 2015-04-21 | 1 | -0/+10 | |
| | ||||||
* | apidoc: Fix rebuild in out-of-tree builds | Tobias Brunner | 2015-04-20 | 1 | -1/+1 | |
| | ||||||
* | leak-detective: Use passed callback to report leaks | Tobias Brunner | 2015-04-20 | 1 | -2/+2 | |
| | | | | | | | | This prevented `stroke memusage` from reporting the leaks on the console. Instead, they were sent to the callbacks set up by libstrongswan. Fixes a426851f6362 ("leak-detective: Use callback functions to report leaks and usage information"). | |||||
* | openssl: Don't refer to EVP_des_ecb() if OpenSSL is built without DES support | Tobias Brunner | 2015-04-17 | 1 | -0/+2 | |
| | | | | | | While DES-ECB is not registered by the plugin in this case (so the function will never actually be called), the compiler still warns about the implicitly declared function. | |||||
* | apidoc: Fix make target dependency find precedence | Martin Willi | 2015-04-16 | 1 | -1/+1 | |
| | ||||||
* | Merge branch 'utils-split' | Martin Willi | 2015-04-16 | 26 | -1757/+2180 | |
|\ | | | | | | | | | | | | | | | Split up the almighty utils.[ch] to separate files in the utils/utils subfolder. These are not meant to include manually, but bring back some order to all this functionality included through utils.h. Additionally give some love to apidoc generation. | |||||
| * | apidoc: Conditionally run doxygen if any header/Markdown files have changed | Martin Willi | 2015-04-16 | 1 | -2/+4 | |
| | | ||||||
| * | apidoc: Set QUIET to YES, suppressing any parsing/generating status output | Martin Willi | 2015-04-16 | 1 | -1/+1 | |
| | | | | | | | | | | As WARNING messages still get printed, this makes spotting any warnings much simpler. | |||||
| * | apidoc: Enable documentation of static functions | Martin Willi | 2015-04-16 | 1 | -1/+1 | |
| | | | | | | | | | | As we scan for header files only, this does not affect any local functions, but documents any static inlines we define in header files. | |||||
| * | strerror: Move to its own Doxygen subgroup | Martin Willi | 2015-04-16 | 1 | -1/+2 | |
| | | ||||||
| * | utils: Clean up includes | Martin Willi | 2015-04-16 | 2 | -36/+31 | |
| | | ||||||
| * | align: Move min/max/padding/alignment functions to separate files | Martin Willi | 2015-04-16 | 6 | -109/+154 | |
| | | ||||||
| * | time: Move time related functions to separate files | Martin Willi | 2015-04-16 | 6 | -191/+238 | |
| | | ||||||
| * | object: Move OO programming helper macros to a separate header file | Martin Willi | 2015-04-16 | 3 | -107/+128 | |
| | | ||||||
| * | status: Move status_t type and functions to separate files | Martin Willi | 2015-04-16 | 6 | -116/+125 | |
| | | ||||||
| * | path: Move path related utility functions to separate files | Martin Willi | 2015-04-16 | 6 | -201/+249 | |
| | | ||||||
| * | tty: Move tty related functions to separate files | Martin Willi | 2015-04-16 | 6 | -110/+157 | |
| | |