b03c700d08
IKEv1 XAuth: Changed the xauth_request task to use the new MIGRATE status.
Clavister OpenSource2011-11-24 16:57:10 +01:00
b94f248ea9
IKEv1 XAuth: Added new MIGRATE status type to status_t. When a task returns this status from a build or process method, it is a signal to the task manager that it should treat it as if the task returned SUCCESS. Additionally it will migrate all remaining tasks from the current queue to a different one, calling swap_initiator for each applicable task. Finally, the task manager will call "initiate", if applicable, to kick off tasks in the "queued_tasks" queue. Task queue relocation mapping: passive_tasks moves to queued_tasks (which is then fed to active by the initiate call). active_tasks moves to passive_tasks
Clavister OpenSource2011-11-24 16:48:41 +01:00
46897273d7
IKEv1 XAuth: Added new "swap_initiator" method to the standard task_t interface. This is needed for when we move a task from the passive queue to the active one. I'm not a huge fan of this method of doing things. Perhaps we should change task_t to have build_i, build_r, process_i, and process_r methods, and call the appropriate one from the task manager, since we have these methods for most tasks anyways.
Clavister OpenSource2011-11-24 16:35:22 +01:00
cc50df9e6c
IKEv1 XAuth: XAuthInitPreShared working for XAuth initiator (Main Mode responder). Creates USER/PASS request, retrieves the result and sends status.
Clavister OpenSource2011-11-24 11:46:02 +01:00
2d97ec0d35
IKEv1 XAuth: Added ability to initiate the XAuth transactions under a flag, default not to initiate XAuth.
Clavister OpenSource2011-11-24 11:40:55 +01:00
8b30286fcf
IKEv1 XAuth: Add XAUTH authentication types to the enum. Added the ability to switch between hardcoded PSK and XAUTH_INIT_PSK authentications using a flag, default to PSK.
Clavister OpenSource2011-11-24 11:37:36 +01:00
ece4ed3fcd
IKEv1 ConfigMode: Fix configuration_attribute encoding rules for IKEv1 to use the attribute type instead of the internal only payload type.
Clavister OpenSource2011-11-24 11:33:38 +01:00
0b6811b4a7
IKEv1 ConfigMode: Fixed cp_payload to use CONFIGURATION_ATTRIBUTE_V1 in all appropriate places, so the parsing is done correctly.
Clavister OpenSource2011-11-24 11:30:19 +01:00
01685247b0
IKEv1 XAuth: Added ike_vendor task to the ID_PROT exchange type processing. We need to process vendor payloads to check to see if our peer understands XAuth before using any of these payload types.
Clavister OpenSource2011-11-24 11:26:04 +01:00
e3bb68841a
IKEv1 XAuth: Added temporary "initiate_xauth" public method to ike_sa_t. This allows us to initiate an XAuth password authentication exchange after responding to the final message of Main Mode. This change should be reverted once we have a better method to initiate this exchange.
Clavister OpenSource2011-11-24 11:21:43 +01:00
adf7b76f4c
IKEv1 XAuth: Temporarilty add an "initiate_later" flag to the task manager. When set to TRUE it will cause "initiate" to be called when the current process_response call is finished. This change should be reverted once we have a better method in place.
Clavister OpenSource2011-11-24 11:12:59 +01:00
9cc38c8efb
Use quick mode task initiator flag instead of passing it as parameter
Martin Willi2011-11-24 10:33:43 +01:00
4e0bc9af22
Add quick mode ID payloads only if establishing a non-host2host tunnel
Martin Willi2011-11-24 10:28:49 +01:00
c4b8539f93
Refactored traffic selector handling in quick mode
Martin Willi2011-11-24 10:20:59 +01:00
818330aafe
Refactored NONCE payload handling in quick mode
Martin Willi2011-11-24 09:51:40 +01:00
78f7728c30
No need to build a HASH payload in XAUTH task.
Tobias Brunner2011-11-23 16:08:40 +01:00
c4c5950458
Create host-to-host traffic selectors if quick mode identities missing
Martin Willi2011-11-23 15:55:00 +01:00
97265a8927
Removed redundant '=>' when logging binary data in parser and generator.
Tobias Brunner2011-11-23 15:30:41 +01:00
23f4e4b42d
IKEv1 XAUTH: Added ability to configure XAUTH+PSK. Added task to handle XAUTH requests. Modified task_manager_v1 to enable it to initiate new tasks immediately after finishing a response.
Clavister OpenSource2011-11-23 08:55:59 +01:00
79e9f776dc
Updates ike_cert_post task with modifications needed for dealing with updated cert_payload class.
Clavister OpenSource2011-11-23 08:40:18 +01:00
c71760570e
IKEv1 ConfigMode: Added the payload handlers for attribute_payload and data_attribute payload types.
Clavister OpenSource2011-11-23 08:36:22 +01:00
54a8a94fa9
IKEv1 ConfigMode: Added TRANSACTION exchange type. Added attribute_payload (IKEv2 equiv cp_payload) and data_attribute (IKEv2 equiv configuration_attribute) payload types. Did not combine with IKEv2 because it wasn't trivial to do so. This might be a task worth investigating in the future, because there is a decent amount of shared code here.
Clavister OpenSource2011-11-23 08:29:54 +01:00