mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 08:09:42 +00:00
system: remove /dev/crypto GUI support #4896
This commit is contained in:
parent
31a0c40e3f
commit
6c96038ced
@ -922,11 +922,6 @@ function system_kernel_configure($verbose = false)
|
||||
$mods[] = $config['system']['crypto_hardware'];
|
||||
}
|
||||
|
||||
if (!empty($config['system']['cryptodev_enable'])) {
|
||||
log_error('Loading cryptodev kernel module.');
|
||||
$mods[] = 'cryptodev';
|
||||
}
|
||||
|
||||
if (!empty($config['system']['thermal_hardware'])) {
|
||||
log_error(sprintf('Loading %s thermal monitor module.', $config['system']['thermal_hardware']));
|
||||
$mods[] = $config['system']['thermal_hardware'];
|
||||
|
||||
@ -77,7 +77,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$pconfig = array();
|
||||
$pconfig['powerd_enable'] = isset($config['system']['powerd_enable']);
|
||||
$pconfig['crypto_hardware'] = !empty($config['system']['crypto_hardware']) ? $config['system']['crypto_hardware'] : null;
|
||||
$pconfig['cryptodev_enable'] = isset($config['system']['cryptodev_enable']);
|
||||
$pconfig['thermal_hardware'] = !empty($config['system']['thermal_hardware']) ? $config['system']['thermal_hardware'] : null;
|
||||
$pconfig['use_mfs_var'] = isset($config['system']['use_mfs_var']);
|
||||
$pconfig['use_mfs_tmp'] = isset($config['system']['use_mfs_tmp']);
|
||||
@ -130,12 +129,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
unset($config['system']['crypto_hardware']);
|
||||
}
|
||||
|
||||
if (!empty($pconfig['cryptodev_enable'])) {
|
||||
$config['system']['cryptodev_enable'] = true;
|
||||
} elseif (isset($config['system']['cryptodev_enable'])) {
|
||||
unset($config['system']['cryptodev_enable']);
|
||||
}
|
||||
|
||||
if (!empty($pconfig['thermal_hardware'])) {
|
||||
$config['system']['thermal_hardware'] = $pconfig['thermal_hardware'];
|
||||
} elseif (isset($config['system']['thermal_hardware'])) {
|
||||
@ -275,29 +268,13 @@ include("head.inc");
|
||||
"cryptographic functions on systems which have the chip. Do not enable this " .
|
||||
"option if you have a Hifn cryptographic acceleration card, as this will take " .
|
||||
"precedence and the Hifn card will not be used. Acceleration should be automatic " .
|
||||
"for IPsec when using a cipher supported by your chip, such as AES-128. OpenVPN " .
|
||||
"should be set for AES-128-CBC and have cryptodev enabled for hardware " .
|
||||
"acceleration."); ?>
|
||||
"for IPsec when using a cipher supported by your chip, such as AES-128.") ?>
|
||||
<br /><br />
|
||||
<?=gettext("If you do not have a crypto chip in your system, this option will have no " .
|
||||
"effect. To unload the selected module, set this option to 'none' and then reboot."); ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a id="help_for_cryptodev_enable" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Use /dev/crypto");?> </td>
|
||||
<td>
|
||||
<input name="cryptodev_enable" type="checkbox" id="cryptodev_enable" value="yes" <?= !empty($pconfig['cryptodev_enable']) ? "checked=\"checked\"" : "";?> />
|
||||
<?= gettext('Enable old userland device for cryptographic acceleration') ?>
|
||||
<div class="hidden" data-for="help_for_cryptodev_enable">
|
||||
<?=gettext("Old hardware accelerators like 'safe', 'hifn' or 'ubsec' may only provide userland acceleration to e.g. " .
|
||||
"OpenVPN by means of the /dev/crypto interface, which can be accessed via the OpenSSL " .
|
||||
"engine framework. Note that LibreSSL does not have support for this device and " .
|
||||
"instead solely relies on embedded acceleration methods e.g. AES-NI. The default is " .
|
||||
"to disable this device as it is likely not needed on modern systems."); ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="content-box tab-content table-responsive __mb">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user