mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
polishing output for #413
This commit is contained in:
parent
400e969585
commit
5f47359291
12
testssl.sh
12
testssl.sh
@ -4519,13 +4519,13 @@ run_pfs() {
|
|||||||
sclient_connect_successful $? $TMPFILE
|
sclient_connect_successful $? $TMPFILE
|
||||||
if [[ $? -ne 0 ]] || [[ $(grep -ac "BEGIN CERTIFICATE" $TMPFILE) -eq 0 ]]; then
|
if [[ $? -ne 0 ]] || [[ $(grep -ac "BEGIN CERTIFICATE" $TMPFILE) -eq 0 ]]; then
|
||||||
outln
|
outln
|
||||||
pr_svrty_mediumln "No ciphers supporting Forward Secrecy offered"
|
pr_svrty_mediumln " No ciphers supporting Forward Secrecy offered"
|
||||||
fileout "pfs" "MEDIUM" "(Perfect) Forward Secrecy : No ciphers supporting Forward Secrecy offered"
|
fileout "pfs" "MEDIUM" "(Perfect) Forward Secrecy : No ciphers supporting Forward Secrecy offered"
|
||||||
else
|
else
|
||||||
outln
|
outln
|
||||||
pfs_offered=true
|
pfs_offered=true
|
||||||
pfs_ciphers=""
|
pfs_ciphers=""
|
||||||
pr_done_good " PFS is offered (OK)"
|
pr_done_good " PFS is offered (OK) "
|
||||||
fileout "pfs" "OK" "(Perfect) Forward Secrecy : PFS is offered (OK)"
|
fileout "pfs" "OK" "(Perfect) Forward Secrecy : PFS is offered (OK)"
|
||||||
if "$WIDE"; then
|
if "$WIDE"; then
|
||||||
outln ", ciphers follow (client/browser support is important here) \n"
|
outln ", ciphers follow (client/browser support is important here) \n"
|
||||||
@ -4579,7 +4579,7 @@ run_pfs() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $ecdhe_offered; then
|
if "$ecdhe_offered"; then
|
||||||
# find out what elliptic curves are supported.
|
# find out what elliptic curves are supported.
|
||||||
curves_offered=""
|
curves_offered=""
|
||||||
for curve in "${curves[@]}"; do
|
for curve in "${curves[@]}"; do
|
||||||
@ -4589,8 +4589,8 @@ run_pfs() {
|
|||||||
[[ "$sclient_success" -eq 0 ]] && curves_offered+="$curve "
|
[[ "$sclient_success" -eq 0 ]] && curves_offered+="$curve "
|
||||||
done
|
done
|
||||||
if [[ -n "$curves_offered" ]]; then
|
if [[ -n "$curves_offered" ]]; then
|
||||||
pr_bold " Elliptic curves offered: "; outln "$curves_offered"
|
pr_bold " Elliptic curves offered: "; outln "$curves_offered"
|
||||||
fileout "ecdhe_curves" "INFO" "Elliptic curves offered: $curves_offered"
|
fileout "ecdhe_curves" "INFO" "Elliptic curves offered $curves_offered"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
outln
|
outln
|
||||||
@ -8286,4 +8286,4 @@ fi
|
|||||||
exit $?
|
exit $?
|
||||||
|
|
||||||
|
|
||||||
# $Id: testssl.sh,v 1.523 2016/07/11 14:20:35 dirkw Exp $
|
# $Id: testssl.sh,v 1.524 2016/07/11 16:44:27 dirkw Exp $
|
||||||
|
Loading…
Reference in New Issue
Block a user