diff options
author | jim-p <jimp@pfsense.org> | 2011-07-27 12:05:06 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-07-27 12:05:48 -0400 |
commit | 94efbf8b2a61426395c902e7980f16c87dc0a168 (patch) | |
tree | 9e3f2458dcbd58ff3249d8c3ae2093be4a010390 /usr | |
parent | e6af6518c1940310548d0c6e94283caf76084f1c (diff) | |
download | pfsense-94efbf8b2a61426395c902e7980f16c87dc0a168.zip pfsense-94efbf8b2a61426395c902e7980f16c87dc0a168.tar.gz |
Shift OpenVPN require, it was causing CRLs to not save changes properly.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_crlmanager.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/system_crlmanager.php b/usr/local/www/system_crlmanager.php index 201d8ab..8d975db 100644 --- a/usr/local/www/system_crlmanager.php +++ b/usr/local/www/system_crlmanager.php @@ -39,6 +39,7 @@ require("guiconfig.inc"); require_once("certs.inc"); +require_once('openvpn.inc'); global $openssl_crl_status; @@ -145,7 +146,6 @@ if ($act == "addcert") { if (!$input_errors) { $reason = (empty($pconfig['crlreason'])) ? OCSP_REVOKED_STATUS_UNSPECIFIED : $pconfig['crlreason']; cert_revoke($cert, $crl, $reason); - require_once('openvpn.inc'); openvpn_refresh_crls(); write_config("Revoked cert {$cert['descr']} in CRL {$crl['descr']}."); pfSenseHeader("system_crlmanager.php"); @@ -173,7 +173,6 @@ if ($act == "delcert") { $name = $thiscert['descr']; if (cert_unrevoke($thiscert, $thiscrl)) { $savemsg = sprintf(gettext("Deleted Certificate %s from CRL %s"), $name, $thiscrl['descr']) . "<br/>"; - require_once('openvpn.inc'); openvpn_refresh_crls(); write_config(sprintf(gettext("Deleted Certificate %s from CRL %s"), $name, $thiscrl['descr'])); } else { |