2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-09-29 08:03:42 +02:00

Style fix

This commit is contained in:
Olivier Paroz 2014-09-21 16:08:50 +02:00
parent 4bc2539f44
commit ad88f047e6

View File

@ -15,7 +15,7 @@ DOBENCHMARK=0
BENCHMARKITER=30 BENCHMARKITER=30
TIMEOUTBIN=timeout TIMEOUTBIN=timeout
if [ "${OS}" = "FreeBSD" ]; then if [ "${OS}" = "FreeBSD" ]; then
TIMEOUTBIN=gtimeout TIMEOUTBIN=gtimeout
fi fi
OPENSSLBIN="$(dirname $0)/openssl" OPENSSLBIN="$(dirname $0)/openssl"
if [ -z "$CACERTS" ]; then if [ -z "$CACERTS" ]; then
@ -66,7 +66,7 @@ Use one of the options below:
-h | --help Shows this help text. -h | --help Shows this help text.
-j | --json Output results in JSON format. -j | --json Output results in JSON format.
-o | --openssl path/to/your/openssl binary you want to use. -o | --openssl path/to/your/openssl binary you want to use.
-s | --sni Activates SNI -s | --sni Activates SNI
-v | --verbose Increase verbosity. -v | --verbose Increase verbosity.
The rest of the arguments will be interpreted as openssl s_client argument. The rest of the arguments will be interpreted as openssl s_client argument.
@ -340,7 +340,7 @@ do
OPENSSLBIN=$2 # You might want to check if you really got FILE OPENSSLBIN=$2 # You might want to check if you really got FILE
shift 2 shift 2
;; ;;
-s | --sni) -s | --sni)
SNISCAN=1 SNISCAN=1
shift shift
;; ;;
@ -409,7 +409,7 @@ debug "target: $TARGET"
SNIPARAM="" SNIPARAM=""
if [ $SNISCAN -gt 0 ]; then if [ $SNISCAN -gt 0 ]; then
SNIPARAM="-servername ${HOST}" SNIPARAM="-servername ${HOST}"
fi fi
SCLIENTARGS="$SNIPARAM $(sed -e s,${TEMPTARGET},,<<<"${@}")" SCLIENTARGS="$SNIPARAM $(sed -e s,${TEMPTARGET},,<<<"${@}")"
debug "sclientargs: $SCLIENTARGS" debug "sclientargs: $SCLIENTARGS"