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:
parent
d57f305a10
commit
0ebb271d1e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue