From 7834cd07484b086da015a5cfd6ba3675f184eb8a Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Wed, 20 Jul 2016 20:45:15 +0200 Subject: [PATCH] fold some long lines long lines hard to read, make Hulk sad --- cipherscan | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cipherscan b/cipherscan index 461d1f8..9040cc6 100755 --- a/cipherscan +++ b/cipherscan @@ -564,7 +564,8 @@ test_cipher_on_target() { # signed ones) local saved="False" if ${OPENSSLBIN} verify "${trust_source[@]}" \ - -untrusted <(printf "%s" "${current_raw_certificates[@]}") <(echo "$cert") 2>/dev/null | \ + -untrusted <(printf "%s" "${current_raw_certificates[@]}") \ + <(echo "$cert") 2>/dev/null | \ grep ': OK$' >/dev/null; then # if the certificate is an intermediate CA it may be useful @@ -661,7 +662,8 @@ test_cipher_on_target() { # Calculate the average handshake time for a specific ciphersuite bench_cipher() { local ciphersuite="$1" - local sslcommand="$TIMEOUTBIN $TIMEOUT $OPENSSLBIN s_client $SCLIENTARGS -connect $TARGET -cipher $ciphersuite" + local sslcommand="$TIMEOUTBIN $TIMEOUT $OPENSSLBIN s_client $SCLIENTARGS" + sslcommand+=" -connect $TARGET -cipher $ciphersuite" local t="$(date +%s%N)" verbose "Benchmarking handshake on '$TARGET' with ciphersuite '$ciphersuite'" for i in $(seq 1 $BENCHMARKITER); do