- output polising in curves

- fix for jail #258
This commit is contained in:
Dirk 2016-07-16 20:48:56 +02:00
parent bda62ec715
commit 0c22ea9a0e
1 changed files with 9 additions and 4 deletions

View File

@ -4525,7 +4525,7 @@ run_pfs() {
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"
@ -4589,6 +4589,7 @@ 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
"$WIDE" && outln
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
@ -6765,7 +6766,11 @@ check4openssl_oldfarts() {
# FreeBSD needs to have /dev/fd mounted. This is a friendly hint, see #258 # FreeBSD needs to have /dev/fd mounted. This is a friendly hint, see #258
check_bsd_mount() { check_bsd_mount() {
if [[ "$(uname)" == FreeBSD ]]; then if [[ "$(uname)" == FreeBSD ]]; then
if ! mount | grep '/dev/fd' | grep -q fdescfs; then if ! mount | grep -q "^devfs"; then
outln "you seem to run $PROG_NAME= in a jail. Hopefully you're did \"mount -t fdescfs fdesc /dev/fd\""
elif mount | grep '/dev/fd' | grep -q fdescfs; then
:
else
fatal "You need to mount fdescfs on FreeBSD: \"mount -t fdescfs fdesc /dev/fd\"" -3 fatal "You need to mount fdescfs on FreeBSD: \"mount -t fdescfs fdesc /dev/fd\"" -3
fi fi
fi fi
@ -8286,4 +8291,4 @@ fi
exit $? exit $?
# $Id: testssl.sh,v 1.525 2016/07/11 17:41:32 dirkw Exp $ # $Id: testssl.sh,v 1.526 2016/07/16 18:48:55 dirkw Exp $