]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
ovpnmain.cgi: Use SHA512 for hashing by default
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 19 Mar 2024 17:37:24 +0000 (18:37 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 23 Sep 2024 11:08:42 +0000 (13:08 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index b87c1287c83c3ead63c89b891fcc88f9ab2341f3..52e91c8c5b1e43f24c35c3f76a992796eaf26ea0 100755 (executable)
@@ -2480,16 +2480,7 @@ END
 #    }
 ADV_ERROR:
        if ($cgiparams{'DAUTH'} eq '') {
-               if (-z "${General::swroot}/ovpn/ovpnconfig") {
-                       $cgiparams{'DAUTH'} = 'SHA512';
-               }
-               foreach my $key (keys %confighash) {
-                       if ($confighash{$key}[3] ne 'host') {
-                               $cgiparams{'DAUTH'} = 'SHA512';
-                       } else {
-                               $cgiparams{'DAUTH'} = 'SHA1';
-                       }
-               }
+               $cgiparams{'DAUTH'} = 'SHA512';
        }
     if ($cgiparams{'MAX_CLIENTS'} eq '') {
                $cgiparams{'MAX_CLIENTS'} =  '100';