From 0ebb271d1ec8b68f73dbd396b0f3a0aa4a50a501 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 12 Jun 2023 13:55:37 +0000 Subject: [PATCH] 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 --- html/cgi-bin/ovpnmain.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5