mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-11 03:00:57 +01:00
FIX #697 in 2.8 (bash hiccup @ tolower)
This commit is contained in:
parent
3fba2564df
commit
1345a088ef
16
testssl.sh
16
testssl.sh
@ -519,12 +519,12 @@ strip_trailing_space() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if [[ $(uname) == "Linux" ]] ; then
|
toupper() { echo -n "${1^^}" ; }
|
||||||
toupper() { echo -n "${1^^}" ; }
|
tolower() { echo -n "${1,,}" ; }
|
||||||
tolower() { echo -n "${1,,}" ; }
|
if ! toupper aaa 2>/dev/null; then
|
||||||
else
|
# older bash can't do this (MacOS X), even SLES 11, see #697
|
||||||
toupper() { echo -n "$1" | tr 'a-z' 'A-Z'; }
|
toupper() { tr 'a-z' 'A-Z' <<< "$1"; }
|
||||||
tolower() { echo -n "$1" | tr 'A-Z' 'a-z' ; }
|
tolower() { tr 'A-Z' 'a-z' <<< "$1"; }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
is_number() {
|
is_number() {
|
||||||
@ -1379,7 +1379,7 @@ run_hpkp() {
|
|||||||
if ! "$has_backup_spki"; then
|
if ! "$has_backup_spki"; then
|
||||||
pr_svrty_highln " No backup keys found. Loss/compromise of the currently pinned key(s) will lead to bricked site. "
|
pr_svrty_highln " No backup keys found. Loss/compromise of the currently pinned key(s) will lead to bricked site. "
|
||||||
fileout "hpkp_backup" "HIGH" "No backup keys found. Loss/compromise of the currently pinned key(s) will lead to bricked site."
|
fileout "hpkp_backup" "HIGH" "No backup keys found. Loss/compromise of the currently pinned key(s) will lead to bricked site."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
outln "--"
|
outln "--"
|
||||||
fileout "hpkp" "INFO" "No support for HTTP Public Key Pinning"
|
fileout "hpkp" "INFO" "No support for HTTP Public Key Pinning"
|
||||||
@ -9205,4 +9205,4 @@ fi
|
|||||||
exit $?
|
exit $?
|
||||||
|
|
||||||
|
|
||||||
# $Id: testssl.sh,v 1.577 2017/04/05 12:56:17 dirkw Exp $
|
# $Id: testssl.sh,v 1.578 2017/04/05 15:34:04 dirkw Exp $
|
||||||
|
Loading…
Reference in New Issue
Block a user