mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 23:12:59 +02:00
add missing check for Curve25519 in vpnmain.cgi
This fixes bug #11501 which causes IPsec connections to crash if Curve25519 has been enabled. Signed-off-by: Peter Müller <peter.mueller@link38.eu> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
bfa0f1dfc0
commit
e34e72b6e1
@@ -3125,6 +3125,8 @@ sub make_algos($$$$$) {
|
||||
|
||||
if ($grp =~ m/^e(.*)$/) {
|
||||
push(@algo, "ecp$1");
|
||||
} elsif ($grp =~ m/curve25519/) {
|
||||
push(@algo, "$grp");
|
||||
} else {
|
||||
push(@algo, "modp$grp");
|
||||
}
|
||||
@@ -3140,6 +3142,8 @@ sub make_algos($$$$$) {
|
||||
# noop
|
||||
} elsif ($grp =~ m/^e(.*)$/) {
|
||||
push(@algo, "ecp$1");
|
||||
} elsif ($grp =~ m/curve25519/) {
|
||||
push(@algo, "$grp");
|
||||
} else {
|
||||
push(@algo, "modp$grp");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user