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 3819749..1d75356 100644 (file)
@@ -3030,8 +3030,8 @@ sub make_algos($$$$$) {
                                                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");
                                        }