]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnmain.cgi: Fix return code of legacy check function core175 v2.27-core175
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 12 Jun 2023 13:55:37 +0000 (13:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 12 Jun 2023 13:55:37 +0000 (13:55 +0000)
https://lists.ipfire.org/pipermail/development/2023-June/016042.html

Reported-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ovpnmain.cgi

index a210e0509bff65d868aea485df92656736bb232e..efc85b77b6589459a2e5fa3358a9fb5ed1a74fd2 100755 (executable)
@@ -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