summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2017-05-13 08:58:12 -0400
committerjim-p <jimp@pfsense.org>2017-05-13 08:58:12 -0400
commitf8339acfe2cee4546ae1a7db491a3b54c2f4c5a1 (patch)
tree5c7f3976c1c79ee819ff33c91a44d61ff71a107e /src
parenta84e59a27094e3ccc4f13b596ff1bb80e3ae267a (diff)
downloadpfsense-f8339acfe2cee4546ae1a7db491a3b54c2f4c5a1.zip
pfsense-f8339acfe2cee4546ae1a7db491a3b54c2f4c5a1.tar.gz
Fix active AES-NI test. Ticket #7529
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/includes/functions.inc.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/usr/local/www/includes/functions.inc.php b/src/usr/local/www/includes/functions.inc.php
index de4d95e..8ee4c08 100644
--- a/src/usr/local/www/includes/functions.inc.php
+++ b/src/usr/local/www/includes/functions.inc.php
@@ -250,11 +250,10 @@ function get_cpu_crypto_support() {
exec("/usr/bin/grep -c ' Features.*AESNI' /var/log/dmesg.boot", $cpucrypto_present);
if ($cpucrypto_present[0] > 0) {
$cpucrypto_type .= "Yes ";
- $cpucrypto_type .= ($cpucrypto_active) ? "(active)" : "(inactive)";
+ $cpucrypto_type .= (is_module_loaded('aesni')) ? "(active)" : "(inactive)";
} else {
$cpucrypto_type .= "No";
}
- $cpucrypto_active = is_module_loaded('aesni');
case 'arm':
$armplatform = get_single_sysctl('hw.platform');
if (in_array($armplatform, $accelerated_arm_platforms)) {
OpenPOWER on IntegriCloud