mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
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:
@@ -144,9 +144,9 @@ sub iscertlegacy
|
|||||||
my @certinfo = &General::system_output("/usr/bin/openssl", "pkcs12", "-info", "-nodes",
|
my @certinfo = &General::system_output("/usr/bin/openssl", "pkcs12", "-info", "-nodes",
|
||||||
"-in", "$file.p12", "-noout", "-passin", "pass:''");
|
"-in", "$file.p12", "-noout", "-passin", "pass:''");
|
||||||
if (index ($certinfo[0], "MAC: sha1") != -1) {
|
if (index ($certinfo[0], "MAC: sha1") != -1) {
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub haveOrangeNet
|
sub haveOrangeNet
|
||||||
|
|||||||
Reference in New Issue
Block a user