fix for wrong # of HttpOnly cookie

This commit is contained in:
Dirk 2015-01-23 15:09:35 +01:00
parent 84caf9ffd1
commit d35e2f95b8

View File

@ -531,12 +531,12 @@ cookieflags() { # ARG1: Path, ARG2: path
nr_secure=`grep -iac secure $TMPFILE` nr_secure=`grep -iac secure $TMPFILE`
case $nr_secure in case $nr_secure in
0) out "$negative_word secure, " ;; 0) out "$negative_word secure, " ;;
[123456789]) litegreen "$nr_secure/$nr_cookies secure" ; out ", ";; [123456789]) litegreen "$nr_secure/$nr_cookies"; out "secure, ";;
esac esac
nr_httponly=`grep -cai httponly $TMPFILE` nr_httponly=`grep -cai httponly $TMPFILE`
case $nr_httponly in case $nr_httponly in
0) out "$negative_word HttpOnly" ;; 0) out "$negative_word HttpOnly" ;;
[123456789]) litegreen "$nr_secure/$nr_cookies HttpOnly" ;; [123456789]) litegreen "$nr_httponly/$nr_cookies"; out "HttpOnly" ;;
esac esac
else else
out "none issued at \"$url\"" out "none issued at \"$url\""
@ -2391,6 +2391,6 @@ case "$1" in
exit $ret ;; exit $ret ;;
esac esac
# $Id: testssl.sh,v 1.172 2015/01/23 11:17:26 dirkw Exp $ # $Id: testssl.sh,v 1.173 2015/01/23 14:09:34 dirkw Exp $
# vim:ts=5:sw=5 # vim:ts=5:sw=5