]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
proposal: Accept NONE for additional key exchanges also for IKE proposals
authorTobias Brunner <tobias@strongswan.org>
Thu, 22 Oct 2020 11:13:00 +0000 (13:13 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 7 Aug 2024 14:20:19 +0000 (16:20 +0200)
src/libstrongswan/crypto/proposal/proposal.c

index ff7884d9a336619f534646693e5879a03c48d30d..b8c74906ea98256c770153091631a3b5341ae556 100644 (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);