mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 08:52:58 +02:00
vpnmain.cgi: Fix ECP regex again for Brainpool curves
The regular expression did not take into account that there could be characters like "bp" in case of the Brainpool curves (ecp512bp).
This commit is contained in:
@@ -3017,7 +3017,7 @@ sub make_algos($$$$$) {
|
||||
if ($mode eq "ike") {
|
||||
push(@algo, $int);
|
||||
|
||||
if ($grp =~ m/^e(\d+)/) {
|
||||
if ($grp =~ m/^e(.*)$/) {
|
||||
push(@algo, "ecp$1");
|
||||
} else {
|
||||
push(@algo, "modp$grp");
|
||||
@@ -3030,7 +3030,7 @@ sub make_algos($$$$$) {
|
||||
push(@algo, $int);
|
||||
}
|
||||
|
||||
if ($grp =~ m/^e(\d+)/) {
|
||||
if ($grp =~ m/^e(.*)$/) {
|
||||
push(@algo, "ecp$1");
|
||||
} else {
|
||||
push(@algo, "modp$grp");
|
||||
|
||||
Reference in New Issue
Block a user