mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
mvc: style sweep
This commit is contained in:
parent
288dd9cb7f
commit
2a3e0a782b
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user