From: Michael Tremer Date: Mon, 12 Jun 2023 13:55:37 +0000 (+0000) Subject: ovpnmain.cgi: Fix return code of legacy check function X-Git-Tag: v2.27-core175 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fcore175;p=ipfire-2.x.git ovpnmain.cgi: Fix return code of legacy check function https://lists.ipfire.org/pipermail/development/2023-June/016042.html Reported-by: Adolf Belka Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index a210e0509b..efc85b77b6 100755 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -144,9 +144,9 @@ sub iscertlegacy my @certinfo = &General::system_output("/usr/bin/openssl", "pkcs12", "-info", "-nodes", "-in", "$file.p12", "-noout", "-passin", "pass:''"); if (index ($certinfo[0], "MAC: sha1") != -1) { - return 0; + return 1; } - return 1; + return 0; } sub haveOrangeNet