From 6c96038cedc4e09101bfd5801952da5518f21142 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 6 Apr 2021 07:08:58 +0200 Subject: [PATCH] system: remove /dev/crypto GUI support #4896 --- src/etc/inc/system.inc | 5 ----- src/www/system_advanced_misc.php | 25 +------------------------ 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index dd522b675..7a202de72 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -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']; diff --git a/src/www/system_advanced_misc.php b/src/www/system_advanced_misc.php index d0b51d745..e8eed60e1 100644 --- a/src/www/system_advanced_misc.php +++ b/src/www/system_advanced_misc.php @@ -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.") ?>

- - - - /> - - - -