diff --git a/testssl.sh b/testssl.sh index 53192f5..93ae68b 100755 --- a/testssl.sh +++ b/testssl.sh @@ -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)"