Project

General

Profile

« Previous | Next » 

Revision c3555734

Added by Jim Pingle about 14 years ago

Shift OpenVPN require, it was causing CRLs to not save changes properly.

View differences:

usr/local/www/system_crlmanager.php
39 39

  
40 40
require("guiconfig.inc");
41 41
require_once("certs.inc");
42
require_once('openvpn.inc');
42 43

  
43 44
global $openssl_crl_status;
44 45

  
......
145 146
		if (!$input_errors) {
146 147
			$reason = (empty($pconfig['crlreason'])) ? OCSP_REVOKED_STATUS_UNSPECIFIED : $pconfig['crlreason'];
147 148
			cert_revoke($cert, $crl, $reason);
148
			require_once('openvpn.inc');
149 149
			openvpn_refresh_crls();
150 150
			write_config("Revoked cert {$cert['descr']} in CRL {$crl['descr']}.");
151 151
			pfSenseHeader("system_crlmanager.php");
......
173 173
	$name = $thiscert['descr'];
174 174
	if (cert_unrevoke($thiscert, $thiscrl)) {
175 175
		$savemsg = sprintf(gettext("Deleted Certificate %s from CRL %s"), $name, $thiscrl['descr']) . "<br/>";
176
		require_once('openvpn.inc');
177 176
		openvpn_refresh_crls();
178 177
		write_config(sprintf(gettext("Deleted Certificate %s from CRL %s"), $name, $thiscrl['descr']));
179 178
	} else {

Also available in: Unified diff