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>2015-12-21 23:17:15 +0300
committermboelen <michael@cisofy.com>2015-12-21 23:17:15 +0300
commitd16b38eff83a8dca405e21e1c34205289f3d0832 (patch)
treed9db1eac3d4ead003f0e1b4fbfbabf0ddeb66c1e /include/tests_crypto
parent83a44827e03543146e39c37c33f14ebca6f40a29 (diff)
Rename of logtext and report functions, upcoming year change
Diffstat (limited to 'include/tests_crypto')
-rw-r--r--include/tests_crypto22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/tests_crypto b/include/tests_crypto
index 7a08962b..84fa86c4 100644
--- a/include/tests_crypto
+++ b/include/tests_crypto
@@ -5,7 +5,7 @@
# Lynis
# ------------------
#
-# Copyright 2007-2015, Michael Boelen (michael.boelen@cisofy.com), CISOfy
+# Copyright 2007-2016, Michael Boelen (michael.boelen@cisofy.com), CISOfy
# Web site: https://cisofy.com
#
# Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
@@ -34,32 +34,32 @@
if [ -d ${I} ]; then
FileIsReadable ${I}
if [ ${CANREAD} -eq 1 ]; then
- logtext "Result: found directory ${I}"
+ LogText "Result: found directory ${I}"
# Search for CRT files
sFINDCRTS=`find ${I} -name "*.crt" -type f -print 2> /dev/null`
for J in ${sFINDCRTS}; do
FileIsReadable ${J}
if [ ${CANREAD} -eq 1 ]; then
- logtext "Test: checking certificate ${J}"
+ LogText "Test: checking certificate ${J}"
# Check certificate where 'end date' has been expired
FIND=`${OPENSSLBINARY} x509 -noout -checkend 0 -in ${J} -enddate > /dev/null ; echo $?`
if [ "${FIND}" = "0" ]; then
- logtext "Result: certificate ${J} seems to be correct and still valid"
- report "valid_certificate[]=${J}|unknown entity|"
+ LogText "Result: certificate ${J} seems to be correct and still valid"
+ Report "valid_certificate[]=${J}|unknown entity|"
else
FOUNDPROBLEM=1
- logtext "Result: certificate ${J} has been expired"
- report "expired_certificate[]=${J}|unknown entity|"
+ LogText "Result: certificate ${J} has been expired"
+ Report "expired_certificate[]=${J}|unknown entity|"
fi
else
- logtext "Result: can not read file ${J} (no permission)"
+ LogText "Result: can not read file ${J} (no permission)"
fi
done
else
- logtext "Result: can not read path ${I} (no permission)"
+ LogText "Result: can not read path ${I} (no permission)"
fi
else
- logtext "Result: SSL path ${I} does not exist"
+ LogText "Result: SSL path ${I} does not exist"
fi
done
@@ -78,4 +78,4 @@ wait_for_keypress
#
#================================================================================
-# Lynis - Copyright 2007-2015, Michael Boelen, CISOfy - https://cisofy.com
+# Lynis - Copyright 2007-2016, Michael Boelen, CISOfy - https://cisofy.com