]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
vpnmain.cgi: Fix prefix for elliptic curve algorithms
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Apr 2015 11:22:00 +0000 (13:22 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 28 Apr 2015 11:22:00 +0000 (13:22 +0200)
html/cgi-bin/vpnmain.cgi

index 381974902eb12242691b98210dde0dc0762152b6..1d75356406ffc81e741979a711d1ba87c026aaa8 100644 (file)
@@ -3030,8 +3030,8 @@ sub make_algos($$$$$) {
                                                push(@algo, $int);
                                        }
 
                                                push(@algo, $int);
                                        }
 
-                                       if ($grp =~ m/^e\d+/) {
-                                               push(@algo, $grp);
+                                       if ($grp =~ m/^e(\d+)/) {
+                                               push(@algo, "ecp$1");
                                        } else {
                                                push(@algo, "modp$grp");
                                        }
                                        } else {
                                                push(@algo, "modp$grp");
                                        }