IKEv1 XAuth: Changed the xauth_request task to use the new MIGRATE status.
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#include <sa/tasks/ike_vendor.h>
|
#include <sa/tasks/ike_vendor.h>
|
||||||
#include <sa/tasks/main_mode.h>
|
#include <sa/tasks/main_mode.h>
|
||||||
#include <sa/tasks/quick_mode.h>
|
#include <sa/tasks/quick_mode.h>
|
||||||
|
#include <sa/tasks/xauth_request.h>
|
||||||
#include <processing/jobs/retransmit_job.h>
|
#include <processing/jobs/retransmit_job.h>
|
||||||
|
|
||||||
typedef struct exchange_t exchange_t;
|
typedef struct exchange_t exchange_t;
|
||||||
@@ -536,6 +537,8 @@ static status_t process_request(private_task_manager_t *this,
|
|||||||
this->passive_tasks->insert_last(this->passive_tasks, task);
|
this->passive_tasks->insert_last(this->passive_tasks, task);
|
||||||
task = (task_t *)main_mode_create(this->ike_sa, FALSE);
|
task = (task_t *)main_mode_create(this->ike_sa, FALSE);
|
||||||
this->passive_tasks->insert_last(this->passive_tasks, task);
|
this->passive_tasks->insert_last(this->passive_tasks, task);
|
||||||
|
task = (task_t *)xauth_request_create(this->ike_sa, FALSE);
|
||||||
|
this->passive_tasks->insert_last(this->passive_tasks, task);
|
||||||
break;
|
break;
|
||||||
case AGGRESSIVE:
|
case AGGRESSIVE:
|
||||||
/* TODO-IKEv1: agressive mode */
|
/* TODO-IKEv1: agressive mode */
|
||||||
|
|||||||
@@ -624,7 +624,7 @@ METHOD(task_t, build_r, status_t,
|
|||||||
/* TODO-IKEv1: Check the proposal for XAuthInit* auth modes */
|
/* TODO-IKEv1: Check the proposal for XAuthInit* auth modes */
|
||||||
/* TODO-IKEv1: check for XAUTH rounds, queue them */
|
/* TODO-IKEv1: check for XAUTH rounds, queue them */
|
||||||
if(0) /* TODO-IKEv1: Change to 1 if XAUTH is desired. */
|
if(0) /* TODO-IKEv1: Change to 1 if XAUTH is desired. */
|
||||||
this->ike_sa->initiate_xauth(this->ike_sa);
|
return MIGRATE;
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user