global-functions: $CertificateAvailable: drop the old builtin-trust-anchors

This commit is contained in:
Christian Hesse 2026-01-21 06:49:06 +01:00
parent 6af2c82c3e
commit cafae19330
2 changed files with 3 additions and 4 deletions

View file

@ -3,7 +3,7 @@
# Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de> # Copyright (c) 2013-2026 Christian Hesse <mail@eworm.de>
# https://rsc.eworm.de/COPYING.md # https://rsc.eworm.de/COPYING.md
# #
# requires RouterOS, version=7.17 # requires RouterOS, version=7.21
# #
# deprecated global functions # deprecated global functions
# https://rsc.eworm.de/ # https://rsc.eworm.de/

View file

@ -4,7 +4,7 @@
# Michael Gisbers <michael@gisbers.de> # Michael Gisbers <michael@gisbers.de>
# https://rsc.eworm.de/COPYING.md # https://rsc.eworm.de/COPYING.md
# #
# requires RouterOS, version=7.19 # requires RouterOS, version=7.21
# requires device-mode, fetch, scheduler # requires device-mode, fetch, scheduler
# #
# global functions # global functions
@ -130,8 +130,7 @@
} }
:local CertSettings [ /certificate/settings/get ]; :local CertSettings [ /certificate/settings/get ];
:if ((($CertSettings->"builtin-trust-anchors") = "trusted" || \ :if ((($CertSettings->"builtin-trust-store") ~ $UseFor || \
($CertSettings->"builtin-trust-store") ~ $UseFor || \
($CertSettings->"builtin-trust-store") = "all") && \ ($CertSettings->"builtin-trust-store") = "all") && \
[ :len [ /certificate/builtin/find where common-name=$CommonName ] ] > 0) do={ [ :len [ /certificate/builtin/find where common-name=$CommonName ] ] > 0) do={
:return true; :return true;