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
b41fc618
Commit
b41fc618
authored
Mar 17, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system: modularise crypto devices
Suggested by: @oparoz
parent
ff6f2341
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
pfsense-utils.inc
src/etc/inc/pfsense-utils.inc
+2
-8
system_advanced_misc.php
src/www/system_advanced_misc.php
+10
-6
No files found.
src/etc/inc/pfsense-utils.inc
View file @
b41fc618
...
...
@@ -382,15 +382,9 @@ function load_crypto()
{
global
$config
;
$crypto_modules
=
array
(
'glxsb'
,
'aesni'
);
if
(
!
isset
(
$config
[
'system'
][
'crypto_hardware'
])
||
!
in_array
(
$config
[
'system'
][
'crypto_hardware'
],
$crypto_modules
))
{
return
false
;
}
if
(
!
empty
(
$config
[
'system'
][
'crypto_hardware'
])
&&
!
is_module_loaded
(
$config
[
'system'
][
'crypto_hardware'
]))
{
log_error
(
"Loading
{
$config
[
'system'
][
'crypto_hardware'
]
}
cryptographic accelerator module."
);
mwexec
(
"/sbin/kldload
{
$config
[
'system'
][
'crypto_hardware'
]
}
"
);
log_error
(
sprintf
(
gettext
(
'Loading %s cryptographic accelerator module.'
),
$config
[
'system'
][
'crypto_hardware'
])
);
mwexec
f
(
'/sbin/kldload %s'
,
$config
[
'system'
][
'crypto_hardware'
]
);
}
}
...
...
src/www/system_advanced_misc.php
View file @
b41fc618
...
...
@@ -38,16 +38,20 @@ require_once("pfsense-utils.inc");
require_once
(
"services.inc"
);
require_once
(
"interfaces.inc"
);
$crypto_modules
=
array
(
'glxsb'
=>
gettext
(
"AMD Geode LX Security Block"
),
'aesni'
=>
gettext
(
"AES-NI CPU-based Acceleration"
)
$crypto_modules
=
array
(
'aesni'
=>
gettext
(
'AES-NI CPU-based Acceleration'
),
'glxsb'
=>
gettext
(
'AMD Geode LX Security Block'
),
'hifn'
=>
gettext
(
'Hifn 7751/7951/7811/7955/7956 Crypto Accelerator'
),
'padlock'
=>
gettext
(
'Crypto and RNG in VIA C3, C7 and Eden Processors'
),
'save'
=>
gettext
(
'SafeNet Crypto Accelerator'
),
'ubsec'
=>
gettext
(
'Broadcom and BlueSteel uBsec 5x0x crypto accelerator'
),
);
$thermal_hardware_modules
=
array
(
'coretemp'
=>
gettext
(
"Intel Core* CPU on-die thermal sensor"
),
'amdtemp'
=>
gettext
(
"AMD K8, K10 and K11 CPU on-die thermal sensor"
)
$thermal_hardware_modules
=
array
(
'coretemp'
=>
gettext
(
'Intel Core* CPU on-die thermal sensor'
),
'amdtemp'
=>
gettext
(
'AMD K8, K10 and K11 CPU on-die thermal sensor'
),
);
if
(
$_SERVER
[
'REQUEST_METHOD'
]
===
'GET'
)
{
$pconfig
=
array
();
$pconfig
[
'proxyurl'
]
=
!
empty
(
$config
[
'system'
][
'proxyurl'
])
?
$config
[
'system'
][
'proxyurl'
]
:
null
;
...
...
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