]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
ovpnmain.cgi: Remove more dead code
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 20 Mar 2024 10:09:39 +0000 (11:09 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 6 Dec 2024 19:59:04 +0000 (19:59 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index 21d7391d4ae8aac696fea8cffe064a8aae8ff8b9..9b993445fd6e64d211a68608989f8875f541191c 100755 (executable)
@@ -3892,11 +3892,6 @@ if ($cgiparams{'TYPE'} eq 'net') {
        }
 }
 
-#      if (($cgiparams{'TYPE'} eq 'net') && ($cgiparams{'SIDE'} !~ /^(left|right)$/)) {
-#          $errormessage = $Lang::tr{'ipfire side is invalid'};
-#          goto VPNCONF_ERROR;
-#      }
-
        # Check if there is no other entry with this name
        if (! $cgiparams{'KEY'}) {
            foreach my $key (keys %confighash) {
@@ -3987,17 +3982,7 @@ if ($cgiparams{'TYPE'} eq 'net') {
            goto VPNCONF_ERROR;
        }
 
-#fixplausi
-       if ($cgiparams{'AUTH'} eq 'psk')  {
-#          if (! length($cgiparams{'PSK'}) ) {
-#              $errormessage = $Lang::tr{'pre-shared key is too short'};
-#              goto VPNCONF_ERROR;
-#          }
-#          if ($cgiparams{'PSK'} =~ /['",&]/) {
-#              $errormessage = $Lang::tr{'invalid characters found in pre-shared key'};
-#              goto VPNCONF_ERROR;
-#          }
-       } elsif ($cgiparams{'AUTH'} eq 'certreq') {
+       if ($cgiparams{'AUTH'} eq 'certreq') {
            if ($cgiparams{'KEY'}) {
                $errormessage = $Lang::tr{'cant change certificates'};
                goto VPNCONF_ERROR;