summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_keys_edit.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-14 12:27:48 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-14 12:28:04 +0100
commit10e2acb5f02ec54562d7d8d08ff0be71d5df640d (patch)
tree80480404a1c99261eade18ee091777cf10570700 /usr/local/www/vpn_ipsec_keys_edit.php
parent5526efab3d2c0ae8e4bcf760ffdb98b604a6113a (diff)
downloadpfsense-10e2acb5f02ec54562d7d8d08ff0be71d5df640d.zip
pfsense-10e2acb5f02ec54562d7d8d08ff0be71d5df640d.tar.gz
Add EAP-MSChapv2 implementation for Windows ipsec support as reported here https://forum.pfsense.org/index.php?topic=81657.15
Diffstat (limited to 'usr/local/www/vpn_ipsec_keys_edit.php')
-rw-r--r--usr/local/www/vpn_ipsec_keys_edit.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/vpn_ipsec_keys_edit.php b/usr/local/www/vpn_ipsec_keys_edit.php
index 741f4ed..82ab80c 100644
--- a/usr/local/www/vpn_ipsec_keys_edit.php
+++ b/usr/local/www/vpn_ipsec_keys_edit.php
@@ -55,6 +55,7 @@ if (isset($_POST['id']) && is_numericint($_POST['id']))
if (isset($id) && $a_secret[$id]) {
$pconfig['ident'] = $a_secret[$id]['ident'];
+ $pconfig['type'] = $a_secret[$id]['type'];
$pconfig['psk'] = $a_secret[$id]['pre-shared-key'];
}
@@ -99,6 +100,7 @@ if ($_POST) {
$secretent = $a_secret[$id];
$secretent['ident'] = $_POST['ident'];
+ $secretent['type'] = $_POST['type'];
$secretent['pre-shared-key'] = $_POST['psk'];
$text = "";
@@ -130,6 +132,9 @@ include("head.inc");
<?php if ($input_errors) print_input_errors($input_errors); ?>
<form action="vpn_ipsec_keys_edit.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="vpn ipsec keys edit">
+ <tr>
+ <td colspan="2" valign="top" class="listtopic">Edit pre-shared secret</td>
+ </tr>
<tr>
<td valign="top" class="vncellreq"><?=gettext("Identifier"); ?></td>
<td class="vtable">
@@ -139,6 +144,21 @@ include("head.inc");
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncellreq"><?=gettext("Secret type"); ?></td>
+ <td width="78%" class="vtable">
+ <select name="type" class="formselect">
+ <?php
+ foreach ($ipsec_preshared_key_type as $value => $descr) {
+ echo "<option value='{$value}' ";
+ if ($pconfig['type'] == $value)
+ echo "selected=\"selected\"";
+ echo ">{$descr}</option>";
+ }
+ ?>
+ </select>
+ </td>
+ </tr>
+ <tr>
<td width="22%" valign="top" class="vncellreq"><?=gettext("Pre-Shared Key"); ?></td>
<td width="78%" class="vtable">
<?=$mandfldhtml;?><input name="psk" type="text" class="formfld unknown" id="psk" size="40" value="<?=htmlspecialchars($pconfig['psk']);?>" />
OpenPOWER on IntegriCloud