ovpnmain.cgi: Fix return code of legacy check function

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>
This commit is contained in:
Michael Tremer 2023-06-12 13:55:37 +00:00
parent d57f305a10
commit 0ebb271d1e
1 changed files with 2 additions and 2 deletions

View File

@ -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