]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
proposal: Skip all KE transforms if PROPOSAL_SKIP_KE given
authorTobias Brunner <tobias@strongswan.org>
Tue, 29 Oct 2019 10:50:00 +0000 (11:50 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 29 Mar 2020 11:44:23 +0000 (13:44 +0200)
src/libstrongswan/crypto/proposal/proposal.c

index 95bbaf9c20ce5ff1fc0ff462986ba6a21a37c96a..83a8be689d00e5fe6bfcaf86fff035cd65b14060 100644 (file)
@@ -407,7 +407,7 @@ static bool select_algos(private_proposal_t *this, proposal_t *other,
                {
                        continue;
                }
-               if (type == KEY_EXCHANGE_METHOD && (flags & PROPOSAL_SKIP_KE))
+               if (is_ke_transform(type) && (flags & PROPOSAL_SKIP_KE))
                {
                        continue;
                }
@@ -600,7 +600,7 @@ METHOD(proposal_t, clone_, proposal_t*,
                {
                        continue;
                }
-               if (entry->type == KEY_EXCHANGE_METHOD && (flags & PROPOSAL_SKIP_KE))
+               if (is_ke_transform(entry->type) && (flags & PROPOSAL_SKIP_KE))
                {
                        continue;
                }