diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-04-28 03:01:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-04-28 03:01:11 +0000 |
commit | d6e01cdb3dfe66ee4e52364d73dbb856f6f15ee9 (patch) | |
tree | 5bc6b21292a8802a58dc8b7e50b447c1abc283b0 | |
parent | bcc3e19b2c5d560e34db80cce84774f7add0ff1b (diff) | |
download | pfsense-d6e01cdb3dfe66ee4e52364d73dbb856f6f15ee9.zip pfsense-d6e01cdb3dfe66ee4e52364d73dbb856f6f15ee9.tar.gz |
move variable assignment more near to the code it is used in
-rw-r--r-- | etc/inc/openvpn.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 70291e2..c1366ad 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -509,8 +509,6 @@ EOD; $openvpn_conf .= "route $ip $mask\n"; } - $caname = $settings['cipherpki']; - // Write the settings for the keys // Set the keys up $base_file = $g['varetc_path'] . "/openvpn/certificates/"; @@ -518,6 +516,7 @@ EOD; if ($settings['auth_method'] == 'shared_key') $keys[] = array('field' => 'shared.key', 'ext' => 'secret', 'directive' => 'secret'); else { + $caname = $settings['cipherpki']; $keys[] = array('field' => 'ca.crt', 'directive' => 'ca'); $keys[] = array('field' => "{$caname}.crt", 'directive' => 'cert'); $keys[] = array('field' => "{$caname}.key", 'directive' => 'key'); |