Add nginx ssl_protocol values to report, minor adjustments to ReportDetails function

This commit is contained in:
mboelen 2016-04-27 16:09:29 +02:00
parent 2cab82f71f
commit f4691536ee
1 changed files with 16 additions and 2 deletions

View File

@ -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