From 85bdf99766d2ce15ecc8247644747fe91fa08bfa Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 30 Oct 2013 16:01:39 -0400 Subject: Add Auth Digest to OpenVPN wizard also. --- usr/local/www/wizards/openvpn_wizard.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'usr/local/www/wizards/openvpn_wizard.inc') diff --git a/usr/local/www/wizards/openvpn_wizard.inc b/usr/local/www/wizards/openvpn_wizard.inc index 0637639..62549d9 100644 --- a/usr/local/www/wizards/openvpn_wizard.inc +++ b/usr/local/www/wizards/openvpn_wizard.inc @@ -326,6 +326,15 @@ function step10_stepbeforeformdisplay() { $opt['value'] = $name; $pkg['step'][$stepid]['fields']['field'][$idx]['options']['option'][] = $opt; } + } else if ($field['name'] == "digest") { + $pkg['step'][$stepid]['fields']['field'][$idx]['options']['option'] = array(); + $digestlist = openvpn_get_digestlist(); + foreach ($digestlist as $name => $desc) { + $opt = array(); + $opt['name'] = $desc; + $opt['value'] = $name; + $pkg['step'][$stepid]['fields']['field'][$idx]['options']['option'][] = $opt; + } } else if ($field['name'] == "engine") { $pkg['step'][$stepid]['fields']['field'][$idx]['options']['option'] = array(); $engines = openvpn_get_engines(); @@ -595,6 +604,7 @@ function step12_submitphpaction() { $server['netbios_enable'] = $pconfig['step10']['nbtenable']; } $server['crypto'] = $pconfig['step10']['crypto']; + $server['digest'] = $pconfig['step10']['digest']; $server['engine'] = $pconfig['step10']['engine']; if (isset($pconfig['step11']['ovpnrule'])) { -- cgit v1.1