Commit c26cb800 authored by Ad Schellevis's avatar Ad Schellevis
parent 89a83459
...@@ -350,10 +350,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -350,10 +350,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (!isset($pconfig['encryption-algorithm']) || !is_array($pconfig['encryption-algorithm'])) { if (!isset($pconfig['encryption-algorithm']) || !is_array($pconfig['encryption-algorithm'])) {
$pconfig['encryption-algorithm'] = array(); $pconfig['encryption-algorithm'] = array();
} }
$pconfig['encryption-algorithm']['name'] = $_POST['encryption-algorithm']; $pconfig['encryption-algorithm']['name'] = $pconfig['ealgo'];
if ($pconfig['ealgo_keylen']) { $pconfig['encryption-algorithm']['keylen'] = $pconfig['ealgo_keylen'];
$pconfig['ealgo']['keylen'] = $_POST['ealgo_keylen'];
}
if (count($input_errors) == 0) { if (count($input_errors) == 0) {
$copy_fields = "ikeid,iketype,interface,mode,protocol,myid_type,myid_data $copy_fields = "ikeid,iketype,interface,mode,protocol,myid_type,myid_data
...@@ -890,7 +888,7 @@ endforeach; ?> ...@@ -890,7 +888,7 @@ endforeach; ?>
<tr> <tr>
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Encryption algorithm"); ?></td> <td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Encryption algorithm"); ?></td>
<td> <td>
<select name="encryption-algorithm" id="ealgo" class="formselect" onchange="ealgosel_change()"> <select name="ealgo" id="ealgo" class="formselect" onchange="ealgosel_change()">
<?php <?php
foreach ($p1_ealgos as $algo => $algodata) : foreach ($p1_ealgos as $algo => $algodata) :
?> ?>
......
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