vpnmain.cgi: Fix wrong cipher suite generation when PFS is disabled

Fixes: #12091
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-06-05 10:22:53 +01:00
parent 01320a141d
commit 745915d82c

View File

@@ -3331,14 +3331,14 @@ sub make_algos($$$$$) {
push(@algo, "modp$grp");
}
} elsif ($mode eq "esp" && $pfs) {
} elsif ($mode eq "esp") {
my $is_aead = ($enc =~ m/[cg]cm/);
if (!$is_aead) {
push(@algo, $int);
}
if ($grp eq "none") {
if ($pfs || $grp eq "none") {
# noop
} elsif ($grp =~ m/^e(.*)$/) {
push(@algo, "ecp$1");