global-functions: $CertificateAvailable: drop version check

This commit is contained in:
Christian Hesse 2021-09-02 08:55:34 +02:00
parent 832e899cda
commit 150c228197

View file

@ -68,7 +68,6 @@
:global CertificateDownload;
:global LogPrintExit2;
:global ParseKeyValueStore;
:global RequiredRouterOS;
:if ([ / system resource get free-hdd-space ] < 8388608 && \
[ / certificate settings get crl-download ] = true && \
@ -84,10 +83,6 @@
}
}
:if ([ $RequiredRouterOS $0 "6.47" true ] = false) do={
:return true;
}
:local CertVal [ / certificate get [ find where common-name=$CommonName ] ];
:while (($CertVal->"akid") != "" && ($CertVal->"akid") != ($CertVal->"skid")) do={
:if ([ :len [ / certificate find where skid=($CertVal->"akid") ] ] = 0) do={