summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
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