Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2016-04-27 17:09:29 +0300
committermboelen <michael@cisofy.com>2016-04-27 17:09:29 +0300
commitf4691536eebfa1b91b2367f24b0758937c814da6 (patch)
tree224ccf505cd33aa2364456ea68d574bcad1c871f /include/functions
parent2cab82f71fb52bc6088f1066e68d56e5b7e95314 (diff)
Add nginx ssl_protocol values to report, minor adjustments to ReportDetails function
Diffstat (limited to 'include/functions')
-rw-r--r--include/functions18
1 files changed, 16 insertions, 2 deletions
diff --git a/include/functions b/include/functions
index e27c3eb9..c0a56b9a 100644
--- a/include/functions
+++ b/include/functions
@@ -1413,7 +1413,11 @@
;;
ssl_protocols)
NGINX_SSL_PROTOCOLS=1
- #Report "nginx_ssl_protocols=${VALUE}"
+ VALUE=`echo ${VALUE} | sed 's/;$//' | tr '[:upper:]' '[:lower:]'`
+ for ITEM in ${VALUE}; do
+ Report "ssl_tls_protocol_enabled[]=${ITEM}"
+ ReportDetails --service nginx --field protocol --value "${ITEM}"
+ done
;;
ssl_session_cache)
;;
@@ -1724,11 +1728,21 @@
# Description : Adds specific details to the report, in particular when many
# smaller atomic tests are performed. For example sysctl keys,
# and SSH settings.
- # Returns : nothing
+ # Returns : Nothing
+ # Notes : Need to check for values (strip out semicolons from values)
+ # Only add fields which are filled in
################################################################################
ReportDetails() {
while [ $# -ge 1 ]; do
+ local TEST_DESCRIPTION=""
+ local TEST_FIELD=""
+ local TEST_ID=""
+ local TEST_OTHER=""
+ local TEST_PREFERRED_VALUE=""
+ local TEST_SERVICE=""
+ local TEST_VALUE=""
+
case $1 in
--description)
shift