Respect IKE version while selecting an ike_cfg as responder

This commit is contained in:
Martin Willi
2012-10-24 10:19:33 +02:00
parent 1fdd62ffce
commit 7910116384
4 changed files with 38 additions and 13 deletions
+2 -1
View File
@@ -1202,7 +1202,8 @@ METHOD(task_manager_t, process_message, status_t,
ike_cfg_t *ike_cfg;
job_t *job;
ike_cfg = charon->backends->get_ike_cfg(charon->backends, me, other);
ike_cfg = charon->backends->get_ike_cfg(charon->backends,
me, other, IKEV1);
if (ike_cfg == NULL)
{
/* no config found for these hosts, destroy */
+2 -1
View File
@@ -1077,7 +1077,8 @@ METHOD(task_manager_t, process_message, status_t,
ike_sa_id_t *ike_sa_id;
ike_cfg_t *ike_cfg;
job_t *job;
ike_cfg = charon->backends->get_ike_cfg(charon->backends, me, other);
ike_cfg = charon->backends->get_ike_cfg(charon->backends,
me, other, IKEV2);
if (ike_cfg == NULL)
{
/* no config found for these hosts, destroy */