From: Michael Tremer Date: Wed, 20 Mar 2024 10:09:39 +0000 (+0100) Subject: ovpnmain.cgi: Remove more dead code X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dbe0b4ddf9d308c984e98715a91eee064391b1ae;p=people%2Fms%2Fipfire-2.x.git ovpnmain.cgi: Remove more dead code Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 3b9ffcad9..326c34ec1 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -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;