From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] correct default hash and DH params settings Date: Sun, 07 Jan 2018 11:34:50 +0100 Message-ID: <20180107113450.03a62842.peter.mueller@link38.eu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1804137005691824992==" List-Id: --===============1804137005691824992== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Default hash algorithm is now SHA512 instead of SHA1, but the description text has not been updated, yet. Further, make sure that 1024 bit DH parameters are always marked as weak. Signed-off-by: Peter M=C3=BCller --- html/cgi-bin/ovpnmain.cgi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 638e8ef0f..71fd6f06b 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -2002,7 +2002,7 @@ END $Lang::tr{'ovpn dh'}: - $Lang::tr{'openvpn default'}: SHA1 (160 $Lang::tr= {'bit'}) + $Lang::tr{'openvpn default'}: SHA2 (512 $Lang::tr= {'bit'}) =20 @@ -4567,10 +4567,9 @@ if ($cgiparams{'TYPE'} eq 'net') { $selected{'DAUTH'}{'SHA384'} =3D ''; $selected{'DAUTH'}{'SHA256'} =3D ''; $selected{'DAUTH'}{'SHA1'} =3D ''; - # If no hash algorythm has been choosen yet, select - # the old default value (SHA1) for compatiblity reasons. + # Use SHA512 as default. if ($cgiparams{'DAUTH'} eq '') { - $cgiparams{'DAUTH'} =3D 'SHA1'; + $cgiparams{'DAUTH'} =3D 'SHA512'; } $selected{'DAUTH'}{$cgiparams{'DAUTH'}} =3D 'SELECTED'; =20 --=20 2.13.6 --===============1804137005691824992==--