summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-08-14 08:48:46 -0400
committerjim-p <jimp@pfsense.org>2013-08-14 08:48:46 -0400
commit2a6661305c4f05b312225f42ad931caa9df896b5 (patch)
tree6248fcf28fe55ec48ed7cc6ff580b63f61c3dff2 /etc/inc/openvpn.inc
parent371438339bbcf3e783de03dd61a64c7a21483fc1 (diff)
downloadpfsense-2a6661305c4f05b312225f42ad931caa9df896b5.zip
pfsense-2a6661305c4f05b312225f42ad931caa9df896b5.tar.gz
Remove prior CSC entry when cleaning up. Fixes #3143
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index d66e89f..75eba9e 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -838,6 +838,16 @@ function openvpn_delete($mode, & $settings) {
mwexec("/bin/rm {$g['varetc_path']}/openvpn/{$mode_id}.*");
}
+function openvpn_cleanup_csc($common_name) {
+ global $g, $config;
+ if (empty($common_name))
+ return;
+ $fpath = "{$g['varetc_path']}/openvpn-csc/" . basename($common_name);
+ if (is_file($fpath))
+ unlink_if_exists($fpath);
+ return;
+}
+
function openvpn_resync_csc(& $settings) {
global $g, $config;
OpenPOWER on IntegriCloud