]> 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)
committerTobias Brunner <tobias@strongswan.org>
Wed, 7 Aug 2024 14:20:18 +0000 (16:20 +0200)
src/libstrongswan/crypto/proposal/proposal.c

index 1ad04db4e467642dd655510a4eb36bf423c7f8bc..5c568a081685d168eaef97905a390b06e06bc0c8 100644 (file)
@@ -411,7 +411,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;
                }
@@ -604,7 +604,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;
                }