]> 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, 2 Jun 2025 19:45:31 +0000 (19:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index d2d199a6294cbd4a4ef22db4218d0b07f75ded70..9dd438a6b9e292b6a016476ca5252e4cb1cd5edf 100644 (file)
@@ -2481,16 +2481,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';