summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_openvpn_certs.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-03-06 19:03:56 +0000
committerErmal Luçi <eri@pfsense.org>2008-03-06 19:03:56 +0000
commit8be2d6d3dd8c134c850aec37a58e923a68f3ef3f (patch)
tree2a4cfc856b2d5f6cf494b1123e5dddf721be3c0b /usr/local/www/vpn_openvpn_certs.php
parent6300a53dff5b577aff77797fd84214856b654b6a (diff)
downloadpfsense-8be2d6d3dd8c134c850aec37a58e923a68f3ef3f.zip
pfsense-8be2d6d3dd8c134c850aec37a58e923a68f3ef3f.tar.gz
Remove ugly hacks and use propper method for dispalying generated ciphers.
Diffstat (limited to 'usr/local/www/vpn_openvpn_certs.php')
-rw-r--r--usr/local/www/vpn_openvpn_certs.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/usr/local/www/vpn_openvpn_certs.php b/usr/local/www/vpn_openvpn_certs.php
index dd0154c..5bbbb3f 100644
--- a/usr/local/www/vpn_openvpn_certs.php
+++ b/usr/local/www/vpn_openvpn_certs.php
@@ -51,29 +51,6 @@ if ($_GET['delete']) {
write_config();
}
}
- /* XXX: Lets do some hacking now! This implies we are not on embedded platform!!! */
- $pkg_config = parse_xml_config_pkg("/usr/local/pkg/openvpn.xml", "packagegui");
- $options =& $pkg_config['fields']['field'][11]['options']['option'];
- if (is_array($options)) {
- for ($i = 0; $i < count($options); $i++) {
- if ($options[$i]['name'] == $caname) {
- unset($options[$i]);
- break;
- }
- }
-
- conf_mount_rw();
-
- $xmlcf = dump_xml_config_pkg($pkg_config, "packagegui");
- /* write new configuration */
- $fd = fopen("/usr/local/pkg/openvpn.xml", "w");
- if (!$fd)
- die("Unable to open openvpn.xml for writing in write_config()\n");
- fwrite($fd, $xmlcf);
- fclose($fd);
-
- conf_mount_ro();
- }
}
exec("cd ".$g['varetc_path']."/openvpn/certificates && /usr/bin/find . -type d -name \"[a-zA-Z0-9_]*\"", $certificates);
OpenPOWER on IntegriCloud