Factories honor charon IKEv1/IKEv2 protocol support flags

This commit is contained in:
Martin Willi
2012-03-20 17:31:26 +01:00
parent e51a28fda8
commit 7d0a3a427d
3 changed files with 24 additions and 2 deletions
+8 -1
View File
@@ -26,12 +26,19 @@ keymat_t *keymat_create(ike_version_t version, bool initiator)
switch (version)
{
case IKEV1:
#ifdef USE_IKEV1
return &keymat_v1_create(initiator)->keymat;
#endif
break;
case IKEV2:
#ifdef USE_IKEV2
return &keymat_v2_create(initiator)->keymat;
#endif
break;
default:
return NULL;
break;
}
return NULL;
}
/**