mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user