mediation extension adapted to the naming convention of the current version of the draft. note: the external interface (config, autotools) has not yet been changed
This commit is contained in:
@@ -38,8 +38,8 @@
|
||||
#include <encoding/payloads/delete_payload.h>
|
||||
#include <processing/jobs/retransmit_job.h>
|
||||
|
||||
#ifdef P2P
|
||||
#include <sa/tasks/ike_p2p.h>
|
||||
#ifdef ME
|
||||
#include <sa/tasks/ike_me.h>
|
||||
#endif
|
||||
|
||||
typedef struct exchange_t exchange_t;
|
||||
@@ -325,13 +325,13 @@ static status_t build_request(private_task_manager_t *this)
|
||||
exchange = IKE_SA_INIT;
|
||||
activate_task(this, IKE_NATD);
|
||||
activate_task(this, IKE_CERT_PRE);
|
||||
#ifdef P2P
|
||||
#ifdef ME
|
||||
/* this task has to be activated before the IKE_AUTHENTICATE
|
||||
* task, because that task pregenerates the packet after
|
||||
* which no payloads can be added to the message anymore.
|
||||
*/
|
||||
activate_task(this, IKE_P2P);
|
||||
#endif /* P2P */
|
||||
activate_task(this, IKE_ME);
|
||||
#endif /* ME */
|
||||
activate_task(this, IKE_AUTHENTICATE);
|
||||
activate_task(this, IKE_CERT_POST);
|
||||
activate_task(this, IKE_CONFIG);
|
||||
@@ -381,13 +381,13 @@ static status_t build_request(private_task_manager_t *this)
|
||||
exchange = INFORMATIONAL;
|
||||
break;
|
||||
}
|
||||
#ifdef P2P
|
||||
if (activate_task(this, IKE_P2P))
|
||||
#ifdef ME
|
||||
if (activate_task(this, IKE_ME))
|
||||
{
|
||||
exchange = P2P_CONNECT;
|
||||
exchange = ME_CONNECT;
|
||||
break;
|
||||
}
|
||||
#endif /* P2P */
|
||||
#endif /* ME */
|
||||
case IKE_REKEYING:
|
||||
if (activate_task(this, IKE_DELETE))
|
||||
{
|
||||
@@ -686,10 +686,10 @@ static status_t process_request(private_task_manager_t *this,
|
||||
this->passive_tasks->insert_last(this->passive_tasks, task);
|
||||
task = (task_t*)ike_cert_pre_create(this->ike_sa, FALSE);
|
||||
this->passive_tasks->insert_last(this->passive_tasks, task);
|
||||
#ifdef P2P
|
||||
task = (task_t*)ike_p2p_create(this->ike_sa, FALSE);
|
||||
#ifdef ME
|
||||
task = (task_t*)ike_me_create(this->ike_sa, FALSE);
|
||||
this->passive_tasks->insert_last(this->passive_tasks, task);
|
||||
#endif /* P2P */
|
||||
#endif /* ME */
|
||||
task = (task_t*)ike_auth_create(this->ike_sa, FALSE);
|
||||
this->passive_tasks->insert_last(this->passive_tasks, task);
|
||||
task = (task_t*)ike_cert_post_create(this->ike_sa, FALSE);
|
||||
@@ -817,13 +817,13 @@ static status_t process_request(private_task_manager_t *this,
|
||||
this->passive_tasks->insert_last(this->passive_tasks, task);
|
||||
break;
|
||||
}
|
||||
#ifdef P2P
|
||||
case P2P_CONNECT:
|
||||
#ifdef ME
|
||||
case ME_CONNECT:
|
||||
{
|
||||
task = (task_t*)ike_p2p_create(this->ike_sa, FALSE);
|
||||
task = (task_t*)ike_me_create(this->ike_sa, FALSE);
|
||||
this->passive_tasks->insert_last(this->passive_tasks, task);
|
||||
}
|
||||
#endif /* P2P */
|
||||
#endif /* ME */
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user