Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
5c3b0750
Commit
5c3b0750
authored
Aug 29, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipsec: "pre shared key" display on main page annoys me
parent
5585e109
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
ipsec.inc
src/etc/inc/ipsec.inc
+10
-1
vpn_ipsec.php
src/www/vpn_ipsec.php
+1
-1
vpn_ipsec_phase1.php
src/www/vpn_ipsec_phase1.php
+0
-8
No files found.
src/etc/inc/ipsec.inc
View file @
5c3b0750
...
...
@@ -29,7 +29,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
/* IPsec defines */
$ipsec_loglevels
=
array
(
"dmn"
=>
"Daemon"
,
"mgr"
=>
"SA Manager"
,
"ike"
=>
"IKE SA"
,
"chd"
=>
"IKE Child SA"
,
"job"
=>
"Job Processing"
,
"cfg"
=>
"Configuration backend"
,
"knl"
=>
"Kernel Interface"
,
"net"
=>
"Networking"
,
"asn"
=>
"ASN encoding"
,
"enc"
=>
"Message encoding"
,
...
...
@@ -45,6 +44,16 @@ $p1_ealgos = array(
'des'
=>
array
(
'name'
=>
'DES'
)
);
$p1_authentication_methods
=
array
(
'hybrid_rsa_server'
=>
array
(
'name'
=>
'Hybrid RSA + Xauth'
,
'mobile'
=>
true
),
'xauth_rsa_server'
=>
array
(
'name'
=>
'Mutual RSA + Xauth'
,
'mobile'
=>
true
),
'xauth_psk_server'
=>
array
(
'name'
=>
'Mutual PSK + Xauth'
,
'mobile'
=>
true
),
'eap-tls'
=>
array
(
'name'
=>
'EAP-TLS'
,
'mobile'
=>
true
),
'eap-mschapv2'
=>
array
(
'name'
=>
'EAP-MSCHAPV2'
,
'mobile'
=>
true
),
'rsasig'
=>
array
(
'name'
=>
'Mutual RSA'
,
'mobile'
=>
false
),
'pre_shared_key'
=>
array
(
'name'
=>
'Mutual PSK'
,
'mobile'
=>
false
),
);
$p2_ealgos
=
array
(
'aes'
=>
array
(
'name'
=>
'AES'
,
'keysel'
=>
array
(
'lo'
=>
128
,
'hi'
=>
256
,
'step'
=>
64
)
),
'blowfish'
=>
array
(
'name'
=>
'Blowfish'
,
'keysel'
=>
array
(
'lo'
=>
128
,
'hi'
=>
256
,
'step'
=>
64
)
),
...
...
src/www/vpn_ipsec.php
View file @
5c3b0750
...
...
@@ -428,7 +428,7 @@ $( document ).ready(function() {
<?=
gettext
(
"DH Group"
);
?>
<?=
$p1_dhgroups
[
$ph1ent
[
'dhgroup'
]];
?>
</td>
<td
class=
"hidden-xs"
>
<?=
str_replace
(
'_'
,
' '
,
$ph1ent
[
'authentication_method'
]);
?>
<?=
html_safe
(
$p1_authentication_methods
[
$ph1ent
[
'authentication_method'
]][
'name'
])
?>
</td>
<td>
<?=
$ph1ent
[
'descr'
];
?>
...
...
src/www/vpn_ipsec_phase1.php
View file @
5c3b0750
...
...
@@ -651,14 +651,6 @@ include("head.inc");
<td>
<select
name=
"authentication_method"
id=
"authentication_method"
class=
"formselect"
>
<?php
$p1_authentication_methods
=
array
(
'hybrid_rsa_server'
=>
array
(
'name'
=>
'Hybrid RSA + Xauth'
,
'mobile'
=>
true
),
'xauth_rsa_server'
=>
array
(
'name'
=>
'Mutual RSA + Xauth'
,
'mobile'
=>
true
),
'xauth_psk_server'
=>
array
(
'name'
=>
'Mutual PSK + Xauth'
,
'mobile'
=>
true
),
'eap-tls'
=>
array
(
'name'
=>
'EAP-TLS'
,
'mobile'
=>
true
),
'eap-mschapv2'
=>
array
(
'name'
=>
'EAP-MSCHAPV2'
,
'mobile'
=>
true
),
'rsasig'
=>
array
(
'name'
=>
'Mutual RSA'
,
'mobile'
=>
false
),
'pre_shared_key'
=>
array
(
'name'
=>
'Mutual PSK'
,
'mobile'
=>
false
)
);
foreach
(
$p1_authentication_methods
as
$method_type
=>
$method_params
)
:
if
(
empty
(
$pconfig
[
'mobile'
])
&&
$method_params
[
'mobile'
])
{
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment