ike-cfg: Add option to prefer supplied proposals over locally configured ones
This commit is contained in:
@@ -402,7 +402,7 @@ METHOD(task_t, process_r, status_t,
|
||||
|
||||
list = sa_payload->get_proposals(sa_payload);
|
||||
this->proposal = this->ike_cfg->select_proposal(this->ike_cfg,
|
||||
list, FALSE);
|
||||
list, FALSE, TRUE);
|
||||
list->destroy_offset(list, offsetof(proposal_t, destroy));
|
||||
if (!this->proposal)
|
||||
{
|
||||
@@ -640,7 +640,7 @@ METHOD(task_t, process_i, status_t,
|
||||
}
|
||||
list = sa_payload->get_proposals(sa_payload);
|
||||
this->proposal = this->ike_cfg->select_proposal(this->ike_cfg,
|
||||
list, FALSE);
|
||||
list, FALSE, TRUE);
|
||||
list->destroy_offset(list, offsetof(proposal_t, destroy));
|
||||
if (!this->proposal)
|
||||
{
|
||||
|
||||
@@ -394,7 +394,7 @@ METHOD(task_t, process_r, status_t,
|
||||
private = this->ike_sa->supports_extension(this->ike_sa,
|
||||
EXT_STRONGSWAN);
|
||||
this->proposal = this->ike_cfg->select_proposal(this->ike_cfg,
|
||||
list, private);
|
||||
list, private, TRUE);
|
||||
list->destroy_offset(list, offsetof(proposal_t, destroy));
|
||||
if (!this->proposal)
|
||||
{
|
||||
@@ -641,7 +641,7 @@ METHOD(task_t, process_i, status_t,
|
||||
private = this->ike_sa->supports_extension(this->ike_sa,
|
||||
EXT_STRONGSWAN);
|
||||
this->proposal = this->ike_cfg->select_proposal(this->ike_cfg,
|
||||
list, private);
|
||||
list, private, TRUE);
|
||||
list->destroy_offset(list, offsetof(proposal_t, destroy));
|
||||
if (!this->proposal)
|
||||
{
|
||||
|
||||
@@ -379,7 +379,7 @@ static void process_payloads(private_ike_init_t *this, message_t *message)
|
||||
private = this->ike_sa->supports_extension(this->ike_sa,
|
||||
EXT_STRONGSWAN);
|
||||
this->proposal = this->config->select_proposal(this->config,
|
||||
proposal_list, private);
|
||||
proposal_list, private, TRUE);
|
||||
if (!this->proposal)
|
||||
{
|
||||
charon->bus->alert(charon->bus, ALERT_PROPOSAL_MISMATCH_IKE,
|
||||
|
||||
Reference in New Issue
Block a user