child-cfg: Generalize get_ke_method() method

This commit is contained in:
Tobias Brunner
2022-06-29 10:28:50 +02:00
parent 093fc1ac63
commit ec350ebb78
4 changed files with 18 additions and 12 deletions
+2 -1
View File
@@ -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;
+2 -1
View File
@@ -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: