mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
- check whether openssl is executable
- spaces to tabs - adding hint to "aha" in help
This commit is contained in:
parent
263535520f
commit
c159af7f42
15
testssl.sh
15
testssl.sh
@ -2366,6 +2366,12 @@ find_openssl_binary() {
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! $OPENSSL version -a 2>&1 >/dev/null; then
|
||||
outln
|
||||
pr_magentaln "FATAL: cannot exec $OPENSSL"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
# http://www.openssl.org/news/openssl-notes.html
|
||||
OSSL_VER=$($OPENSSL version | awk -F' ' '{ print $2 }')
|
||||
OSSL_VER_MAJOR=$(echo "$OSSL_VER" | sed 's/\..*$//')
|
||||
@ -2489,6 +2495,11 @@ partly mandatory parameters:
|
||||
protocol is one of ftp,smtp,pop3,imap,xmpp,telnet,ldap (for the latter two you need e.g. the supplied openssl)
|
||||
|
||||
|
||||
For HTML output you need to pipe through "aha" (Ansi HTML Adapter: github.com/theZiz/aha) like
|
||||
|
||||
"$PRG <options> <URI> | aha >output.html"
|
||||
|
||||
|
||||
EOF
|
||||
return $?
|
||||
}
|
||||
@ -3014,6 +3025,6 @@ case "$1" in
|
||||
exit $ret ;;
|
||||
esac
|
||||
|
||||
# $Id: testssl.sh,v 1.210 2015/03/17 11:22:20 dirkw Exp $
|
||||
# vim:ts=5:sw=5
|
||||
|
||||
# $Id: testssl.sh,v 1.211 2015/03/17 14:14:57 dirkw Exp $
|
||||
# vim:ts=5:sw=5
|
||||
|
Loading…
Reference in New Issue
Block a user