child-cfg: Generalize get_ke_method() method
This commit is contained in:
@@ -866,7 +866,8 @@ METHOD(task_t, build_i, status_t,
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
group = this->config->get_ke_method(this->config);
|
||||
group = this->config->get_algorithm(this->config,
|
||||
KEY_EXCHANGE_METHOD);
|
||||
if (group != KE_NONE)
|
||||
{
|
||||
proposal_t *proposal;
|
||||
|
||||
@@ -1160,7 +1160,8 @@ METHOD(task_t, build_i, status_t,
|
||||
}
|
||||
if (!this->retry && this->dh_group == KE_NONE)
|
||||
{ /* during a rekeying the group might already be set */
|
||||
this->dh_group = this->config->get_ke_method(this->config);
|
||||
this->dh_group = this->config->get_algorithm(this->config,
|
||||
KEY_EXCHANGE_METHOD);
|
||||
}
|
||||
break;
|
||||
case IKE_AUTH:
|
||||
|
||||
Reference in New Issue
Block a user