From 2a3e0a782b04cf1d30c457771a3d64eecf4b18c7 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 13 Mar 2024 21:43:30 +0100 Subject: [PATCH] mvc: style sweep --- .../controllers/OPNsense/Trust/Api/CrlController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/opnsense/mvc/app/controllers/OPNsense/Trust/Api/CrlController.php b/src/opnsense/mvc/app/controllers/OPNsense/Trust/Api/CrlController.php index 14176a2f8..c575360cf 100644 --- a/src/opnsense/mvc/app/controllers/OPNsense/Trust/Api/CrlController.php +++ b/src/opnsense/mvc/app/controllers/OPNsense/Trust/Api/CrlController.php @@ -244,13 +244,13 @@ class CrlController extends ApiControllerBase $x509_crl->loadCRL($x509_crl->saveCRL($x509_crl->signCRL($ca_cert, $x509_crl))); /* Now validate the CRL to see if everything went well */ - try { - if (!$x509_crl->validateSignature(false)) { - $validations['crl.caref'] = gettext('Cert revocation error: CRL signature invalid'); - } - } catch (Exception $e) { - $validations['crl.caref'] = gettext('Cert revocation error: CRL signature invalid') . " " . $e; + try { + if (!$x509_crl->validateSignature(false)) { + $validations['crl.caref'] = gettext('Cert revocation error: CRL signature invalid'); } + } catch (Exception $e) { + $validations['crl.caref'] = gettext('Cert revocation error: CRL signature invalid') . " " . $e; + } } if (!empty($validations)) {