Commit 03e59623 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: do not offer external CA for selection; closes #1467

parent 0a3db659
......@@ -312,6 +312,7 @@
</field>
<field>
<type>certca_selection</type>
<internal>1</internal>
<name>certca</name>
<displayname>Certificate Authority</displayname>
<bindstofield>ovpnserver->step6->authcertca</bindstofield>
......
......@@ -596,6 +596,9 @@ function showchange() {
echo "<option value='" . $field['add_to_certca_selection'] . "'" . $SELECTED . ">" . $field['add_to_certca_selection'] . "</option>\n";
}
foreach($config['ca'] as $ca) {
if (!empty($field['internal']) && empty($ca['prv'])) {
continue;
}
$name = htmlspecialchars($ca['descr']);
$SELECTED = "";
if ($value == $name) $SELECTED = " selected=\"selected\"";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment