mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 04:49:44 +01:00
- only numbers for hsts (thx to Olivier)
This commit is contained in:
parent
fb40dad089
commit
455cd2fe62
@ -292,8 +292,7 @@ hsts() {
|
||||
bold " HSTS "
|
||||
grep -i '^Strict-Transport-Security' $HEADERFILE >$TMPFILE
|
||||
if [ $? -eq 0 ]; then
|
||||
# fix Markus Manzke:
|
||||
AGE_SEC=`sed -e 's/\r//g' -e 's/^.*max-age=//' -e 's/;.*//' $TMPFILE`
|
||||
AGE_SEC=`sed -e 's/[^0-9]*//g' $TMPFILE`
|
||||
AGE_DAYS=`expr $AGE_SEC \/ 86400`
|
||||
if [ $AGE_DAYS -gt $HSTS_MIN ]; then
|
||||
litegreen "$AGE_DAYS days \c" ; outln "($AGE_SEC s)"
|
||||
@ -652,7 +651,7 @@ runprotocols() {
|
||||
blue "--> Testing Protocols"; outln "\n"
|
||||
# e.g. ubuntu's 12.04 openssl binary + soon others don't want sslv2 anymore: bugs.launchpad.net/ubuntu/+source/openssl/+bug/955675
|
||||
# Sonderlocke hier #FIXME kann woanders auch auftauchen!
|
||||
testprotohelper -ssl2 " SSLv2 "
|
||||
testprotohelper "-ssl2" " SSLv2 "
|
||||
ret=$?;
|
||||
if [ $ret -ne 7 ]; then
|
||||
if [ $ret -eq 0 ]; then
|
||||
@ -662,7 +661,7 @@ runprotocols() {
|
||||
fi
|
||||
fi
|
||||
|
||||
if testprotohelper -ssl3 " SSLv3 " ; then
|
||||
if testprotohelper "-ssl3" " SSLv3 " ; then
|
||||
ok 3 0 # brown "offered"
|
||||
else
|
||||
ok 0 1 # green "not offered (ok)"
|
||||
|
Loading…
Reference in New Issue
Block a user