summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-08-14 08:41:14 -0400
committerjim-p <jimp@pfsense.org>2013-08-14 08:41:14 -0400
commit371438339bbcf3e783de03dd61a64c7a21483fc1 (patch)
tree8c08bfd5a45cd8233644b5be3d3e05e6bf3bee4c /etc
parent90bc28cc9d75c59efc06a3aa319239bf7aafa259 (diff)
downloadpfsense-371438339bbcf3e783de03dd61a64c7a21483fc1.zip
pfsense-371438339bbcf3e783de03dd61a64c7a21483fc1.tar.gz
Declare globals as global before defining them in openvpn.inc
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/openvpn.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 41b0ce2..d66e89f 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -49,8 +49,10 @@ require_once("certs.inc");
require_once('pfsense-utils.inc');
require_once("auth.inc");
+global $openvpn_prots;
$openvpn_prots = array("UDP", "UDP6", "TCP", "TCP6");
+global $openvpn_dev_mode;
$openvpn_dev_mode = array("tun", "tap");
/*
@@ -66,9 +68,11 @@ $openvpn_dev_mode = array("tun", "tap");
* -mgrooms
*/
+global $openvpn_dh_lengths;
$openvpn_dh_lengths = array(
1024, 2048, 4096 );
+global $openvpn_cert_depths;
$openvpn_cert_depths = array(
1 => "One (Client+Server)",
2 => "Two (Client+Intermediate+Server)",
@@ -77,6 +81,7 @@ $openvpn_cert_depths = array(
5 => "Five (Client+4xIntermediate+Server)"
);
+global $openvpn_server_modes;
$openvpn_server_modes = array(
'p2p_tls' => gettext("Peer to Peer ( SSL/TLS )"),
'p2p_shared_key' => gettext("Peer to Peer ( Shared Key )"),
@@ -84,6 +89,7 @@ $openvpn_server_modes = array(
'server_user' => gettext("Remote Access ( User Auth )"),
'server_tls_user' => gettext("Remote Access ( SSL/TLS + User Auth )"));
+global $openvpn_client_modes;
$openvpn_client_modes = array(
'p2p_tls' => gettext("Peer to Peer ( SSL/TLS )"),
'p2p_shared_key' => gettext("Peer to Peer ( Shared Key )") );
OpenPOWER on IntegriCloud