proposal: Accept NONE for additional key exchanges also for IKE proposals

This commit is contained in:
Tobias Brunner
2024-08-07 16:20:19 +02:00
parent 33e421320a
commit 882ff93bfd
+2 -1
View File
@@ -324,7 +324,8 @@ static bool select_algo(private_proposal_t *this, proposal_t *other,
if (is_ke_transform(type))
{
optional = this->protocol == PROTO_ESP || this->protocol == PROTO_AH;
optional = this->protocol == PROTO_ESP || this->protocol == PROTO_AH ||
type != KEY_EXCHANGE_METHOD;
}
e1 = create_enumerator(this, type);